Skip to content

Commit 0ce264a

Browse files
committed
Support to flatten a Map into top level attributes of the object
1 parent 6389bd2 commit 0ce264a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services-custom/dynamodb-enhanced/src/it/java/software/amazon/awssdk/enhanced/dynamodb/ScanQueryWithFlattenMapIntegrationTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,24 @@ public void queryWithFlattenMapRecord_correctlyRetrievesProjectedAttributes() {
138138
Page<Record> page2 = results.next();
139139
assertThat(results.hasNext(), is(false));
140140

141-
Map<String, String> exepctedAttributesMap = new HashMap<>();
142-
exepctedAttributesMap.put("mapAttribute1", "mapValue1");
143-
exepctedAttributesMap.put("mapAttribute2", "mapValue2");
141+
Map<String, String> expectedAttributesMap = new HashMap<>();
142+
expectedAttributesMap.put("mapAttribute1", "mapValue1");
143+
expectedAttributesMap.put("mapAttribute2", "mapValue2");
144144

145145
List<Record> page1Items = page1.items();
146146
assertThat(page1Items.size(), is(3));
147-
assertThat(page1Items.get(0).getAttributesMap(), is(exepctedAttributesMap));
148-
assertThat(page1Items.get(1).getAttributesMap(), is(exepctedAttributesMap));
149-
assertThat(page1Items.get(2).getAttributesMap(), is(exepctedAttributesMap));
147+
assertThat(page1Items.get(0).getAttributesMap(), is(expectedAttributesMap));
148+
assertThat(page1Items.get(1).getAttributesMap(), is(expectedAttributesMap));
149+
assertThat(page1Items.get(2).getAttributesMap(), is(expectedAttributesMap));
150150
assertThat(page1.consumedCapacity(), is(nullValue()));
151151
assertThat(page1.lastEvaluatedKey(), is(getKeyMap(4)));
152152
assertThat(page1.count(), equalTo(3));
153153
assertThat(page1.scannedCount(), equalTo(3));
154154

155155
List<Record> page2Items = page2.items();
156156
assertThat(page2Items.size(), is(2));
157-
assertThat(page2Items.get(0).getAttributesMap(), is(exepctedAttributesMap));
158-
assertThat(page2Items.get(1).getAttributesMap(), is(exepctedAttributesMap));
157+
assertThat(page2Items.get(0).getAttributesMap(), is(expectedAttributesMap));
158+
assertThat(page2Items.get(1).getAttributesMap(), is(expectedAttributesMap));
159159
assertThat(page2.lastEvaluatedKey(), is(nullValue()));
160160
assertThat(page2.count(), equalTo(2));
161161
assertThat(page2.scannedCount(), equalTo(2));

0 commit comments

Comments
 (0)