I am using the Google App Engine for Java, and I am trying to write JUnit tests for my code that deals with blob. How can I put a blob in a blobstore for use during testing (after it is configured to store everything in memory using LocalBlobstoreServiceTestConfig )? It seems that the solution should be very simple and simple, but for some reason I can not find it.
I suppose this was possible using the API files, but I got rid of it because it was terminated (next week).
The only way I know to get blobs in a blobstore outside of tests is to upload a multi-part form. However, I do not know how to do this in the context of the JUnit test.
You can also interact with Google Cloud Storage objects through the blobstore API, but I decided to use vanob blobstore, so I donβt need to loop another service (and its client libraries) in my application.
So, I ask, how do I get blob so that I can check the code that uses it?
source share