File tree Expand file tree Collapse file tree
crystal-map-connector/src/test/kotlin/ch/ergon/dope Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import org.junit.jupiter.api.assertThrows
3535import java.util.*
3636import kotlin.test.Test
3737import kotlin.test.assertEquals
38+ import kotlin.test.assertNull
3839
3940class CrystalMapAdapterTest {
4041 @Test
@@ -122,11 +123,12 @@ class CrystalMapAdapterTest {
122123 @Test
123124 fun `should convert CMType without specific overload` () {
124125 val cmField: com.schwarz.crystalapi.schema.CMType = someCMConverterNumberField()
125- val expected: IField <ValidType > = Field (cmField.name, UnaliasedBucket (cmField.path) )
126+ val expected: IField <ValidType > = Field (cmField.name, null )
126127
127128 val actual: IField <ValidType > = cmField.toDopeType()
128129
129- assertEquals(expected, actual)
130+ assertEquals(expected.name, actual.name)
131+ assertNull(actual.bucket)
130132 }
131133
132134 @Test
You can’t perform that action at this time.
0 commit comments