Skip to content

Commit e5c1117

Browse files
committed
Add nullable set test
1 parent 7df2902 commit e5c1117

File tree

2 files changed

+4
-0
lines changed
  • hll/dynamodb-mapper/dynamodb-mapper-schema-generator-plugin/src/test/resources/standard-item-converters

2 files changed

+4
-0
lines changed

hll/dynamodb-mapper/dynamodb-mapper-schema-generator-plugin/src/test/resources/standard-item-converters/src/Sets.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public data class Sets(
2828
var setUInt: Set<UInt>,
2929
var setULong: Set<ULong>,
3030
var setUShort: Set<UShort>,
31+
var nullableSet: Set<String>?,
3132
) {
3233
override fun equals(other: Any?): Boolean {
3334
if (this === other) return true
@@ -49,6 +50,8 @@ public data class Sets(
4950
if (setULong != other.setULong) return false
5051
if (setUShort != other.setUShort) return false
5152

53+
if (nullableSet != other.nullableSet) return false
54+
5255
return true
5356
}
5457
}

hll/dynamodb-mapper/dynamodb-mapper-schema-generator-plugin/src/test/resources/standard-item-converters/test/SetsTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class SetsTest {
2828
setUInt = setOf(100u, 200u, 300u),
2929
setULong = setOf(1000uL, 2000uL, 3000uL),
3030
setUShort = setOf(1000u.toUShort(), 2000u.toUShort(), 3000u.toUShort()),
31+
nullableSet = null,
3132
)
3233

3334
val item = SetsConverter.convertTo(sets)

0 commit comments

Comments
 (0)