javaamazon-s3integration-testingjets3t

Fake S3 Service for testing


I have built a swing application that will upload a user's data onto S3. I am using the jets3t library to upload and interact with the S3 service. In order for me to do my testing, is there any way for me to stub out calls to S3 and make the jets3t library hit the stubs?


Solution

  • Since S3 does not charge you too heftily, its just easier to test against the real thing. There isn't any library out there that does all the things that s3 does and to write such a thing would take a while.

    So we decided to test directly, and changed our test cases to use S3 sparingly, but yet try out all the combinations.