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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top