|
38 | 38 | import software.amazon.awssdk.enhanced.dynamodb.functionaltests.LocalDynamoDbSyncTestBase;
|
39 | 39 | import software.amazon.awssdk.enhanced.dynamodb.functionaltests.document.converter.CustomAttributeConverterProvider;
|
40 | 40 | import software.amazon.awssdk.enhanced.dynamodb.functionaltests.document.converter.CustomClass;
|
41 |
| -import software.amazon.awssdk.enhanced.dynamodb.internal.document.Default2EnhancedDocument; |
42 | 41 | import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
|
43 | 42 | import software.amazon.awssdk.services.dynamodb.model.DynamoDbException;
|
44 | 43 |
|
@@ -122,56 +121,6 @@ void putCustomClass_with_NoConverterInDoc(){
|
122 | 121 |
|
123 | 122 | }
|
124 | 123 |
|
125 |
| - @Test |
126 |
| - void putListValues() { |
127 |
| - |
128 |
| - EnhancedDocument.Builder builder = Default2EnhancedDocument.builder() |
129 |
| - .addString(HASH_KEY, "first_hash") |
130 |
| - .addString(SORT_KEY, "1_sort") |
131 |
| - |
132 |
| - // Combination of different Types |
133 |
| - .addList("numberList", |
134 |
| - Stream.of(BigDecimal.valueOf(1), "word").collect(Collectors.toList())) |
135 |
| - |
136 |
| - |
137 |
| - .addList("customClass", |
138 |
| - Arrays.asList(CustomClass.builder().foo("value").build(), |
139 |
| - CustomClass.builder().foo("value_2").build())) |
140 |
| - .attributeConverterProviders( |
141 |
| - CustomAttributeConverterProvider.create(), |
142 |
| - AttributeConverterProvider.defaultProvider()) |
143 |
| - ; |
144 |
| - |
145 |
| - ; |
146 |
| - |
147 |
| - String s = builder.build().toJson(); |
148 |
| - System.out.println(s); |
149 |
| - |
150 |
| - table.putItem(EnhancedDocument.builder() |
151 |
| - .addString(HASH_KEY, "first_hash") |
152 |
| - .addString(SORT_KEY, "1_sort") |
153 |
| - // Combination of different Types |
154 |
| - .addList("numberList", |
155 |
| - Stream.of(BigDecimal.valueOf(1), "word").collect(Collectors.toList())) |
156 |
| - |
157 |
| - .addList("customClass", Collections.singletonList(CustomClass.builder().foo("value").build())) |
158 |
| - |
159 |
| - .attributeConverterProviders(AttributeConverterProvider.defaultProvider(), |
160 |
| - CustomAttributeConverterProvider.create()) |
161 |
| - |
162 |
| - .build()); |
163 |
| - |
164 |
| - |
165 |
| - System.out.println(EnhancedDocument.builder() |
166 |
| - .addString(HASH_KEY, "first_hash") |
167 |
| - .addString(SORT_KEY, "1_sort") |
168 |
| - .addList("numberList", |
169 |
| - Stream.of(BigDecimal.valueOf(1), "word").collect(Collectors.toList())) |
170 |
| - |
171 |
| - .build().toJson()); |
172 |
| - |
173 |
| - |
174 |
| - } |
175 | 124 |
|
176 | 125 |
|
177 | 126 | @Test
|
|
0 commit comments