Skip to content

Commit b325822

Browse files
committed
Refactor
1 parent 385f72f commit b325822

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sdk1/src/test/java/com/amazonaws/services/dynamodbv2/datamodeling/internal/AttributeValueMarshallerTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ public void testSimpleMapWithNull() {
266266
marshall(av);
267267
Assert.fail("Unexpected success");
268268
} catch (final NullPointerException npe) {
269-
// Map entries may permute under nondeterministic JAVA API
269+
// Map entries may permute under nondeterministic Java API
270270
String npeMessage = npe.getMessage();
271-
String common = "Encountered null map value for key NullKeyValue while marshalling attribute value";
272-
String case1 = common + " {M: {KeyValue={S: ValueValue,}, NullKeyValue=null},}";
273-
String case2 = common + " {M: {NullKeyValue=null, KeyValue={S: ValueValue,}},}";
274-
Assert.assertTrue((case1.equals(npeMessage)) || (case2.equals(npeMessage)));
271+
String common = "Encountered null map value for key NullKeyValue while marshalling attribute value ";
272+
String case1 = common + "{M: {KeyValue={S: ValueValue,}, NullKeyValue=null},}";
273+
String case2 = common + "{M: {NullKeyValue=null, KeyValue={S: ValueValue,}},}";
274+
Assert.assertTrue(case1.equals(npeMessage) || case2.equals(npeMessage));
275275
}
276276
}
277277

0 commit comments

Comments
 (0)