AWS S3 Java Embedded Mock for Integration Tests

Question:

After searching the internet for a good solution to an embedded Java AWS S3 mock it seemed that S3Ninja and S3Proxy seemed to be the most popular solutions.

However there doesn’t seem to be an easy way to fire these up programmatically. After giving up with S3Ninja, I tried to do it with S3Proxy but it’s not quite working.

Maven Dependencies

Code

Exception

Any help is truly appreciated. I’m sure this is a big requirement for many Java Integration Tests that interact with AWS S3.

Answer:

Just to comment the reason is because your project is using a conflicting version of gson. S3Proxy’s dep requires gson 2.5.

Leave a Reply