File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
spar-wings-dynamodb-json-patch/src/test/java/jp/xet/sparwings/dynamodb/patch Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 2323import org .slf4j .Logger ;
2424import org .slf4j .LoggerFactory ;
2525
26+ import org .junit .AssumptionViolatedException ;
2627import org .junit .Before ;
2728import org .junit .Test ;
28- import org .junit .internal .AssumptionViolatedException ;
2929
3030import com .amazonaws .AmazonClientException ;
3131import com .amazonaws .AmazonServiceException ;
32- import com .amazonaws .regions .Region ;
3332import com .amazonaws .regions .Regions ;
3433import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
3534import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClient ;
@@ -65,10 +64,10 @@ public class JsonPatchToExpressionSpecBuilderRemoveIT {
6564
6665
6766 @ Before
68- public void setUp () throws Exception {
67+ public void setUp () {
6968 try {
70- AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient ();
71- amazonDynamoDB . setRegion ( Region . getRegion ( Regions .AP_NORTHEAST_1 ));
69+ AmazonDynamoDB amazonDynamoDB = AmazonDynamoDBClient . builder ()
70+ . withRegion ( Regions .AP_NORTHEAST_1 ). build ( );
7271 table = new Table (amazonDynamoDB , "json_patch_test" );
7372 table .deleteItem (PK );
7473 } catch (AmazonClientException e ) {
Original file line number Diff line number Diff line change 2424import org .slf4j .Logger ;
2525import org .slf4j .LoggerFactory ;
2626
27+ import org .junit .AssumptionViolatedException ;
2728import org .junit .Before ;
2829import org .junit .Test ;
29- import org .junit .internal .AssumptionViolatedException ;
3030
3131import com .amazonaws .AmazonClientException ;
3232import com .amazonaws .AmazonServiceException ;
33- import com .amazonaws .regions .Region ;
3433import com .amazonaws .regions .Regions ;
3534import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
3635import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClient ;
@@ -68,10 +67,10 @@ public class JsonPatchToExpressionSpecBuilderReplaceIT {
6867
6968
7069 @ Before
71- public void setUp () throws Exception {
70+ public void setUp () {
7271 try {
73- AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient ();
74- amazonDynamoDB . setRegion ( Region . getRegion ( Regions .AP_NORTHEAST_1 ));
72+ AmazonDynamoDB amazonDynamoDB = AmazonDynamoDBClient . builder ()
73+ . withRegion ( Regions .AP_NORTHEAST_1 ). build ( );
7574 table = new Table (amazonDynamoDB , "json_patch_test" );
7675 table .deleteItem (PK );
7776 } catch (AmazonClientException e ) {
You can’t perform that action at this time.
0 commit comments