mboudreau / Alternator

A mock DynamoDB that runs locally for testing purposes - DEPRECATED, PLEASE USE DYNAMODB LOCAL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Apache License 2.0
78 stars 39 forks source link

AWS 1.10.5.1 AmazonServiceException #97

Closed rrutt closed 9 years ago

rrutt commented 9 years ago

The AWS SDK for DynamoDB in this version has slightly changed its exception behavior for certain operations. Several operations now throw AmazonServiceException instead of a specific exception. The .getErrorCode() for the AmazonServiceException is the string name of the original specific exception.

This revision updates the JUnit tests to adapt to this change.

Also the maven-surefire-plugin setting was recently changed to skipTests = true. This is handy for performing compile and install to local .m2 repository without running the full test suite. Based on this link:

http://stackoverflow.com/questions/18734211/cannot-overwrite-pom-maven-surefire-plugin-from-command-line

An override property is now defined to allow the tests to be run using this command:

mvn verify -DskipUnitTests=false

The README.md file contains a new note about this.

rrutt commented 9 years ago

This Pull Request is based on https://github.com/mboudreau/Alternator/pull/96 and can be merged after that one.