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?
Asked
Active
Viewed 1,782 times
1 Answers
0
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.

sethu
- 8,181
- 7
- 39
- 65
-
4Hitting S3 in tests implies that those tests will be flaky and/or slow. – Noel Yap Aug 26 '13 at 23:18
-
1
-
Ideally tests should be able to be run in isolation and not be dependent on external resources. – Willem van Ketwich Oct 21 '19 at 03:54