From e8a6f7c5779b73f0c690ff7ffdfd2318a8596420 Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Thu, 23 Jul 2020 17:35:42 +0900 Subject: [PATCH] =?UTF-8?q?BoundKMapper=E3=81=AE=E3=83=80=E3=83=9F?= =?UTF-8?q?=E3=83=BC=E3=82=B3=E3=83=B3=E3=82=B9=E3=83=88=E3=83=A9=E3=82=AF?= =?UTF-8?q?=E3=82=BF=E5=88=A9=E7=94=A8=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/kotlin/com/mapk/kmapper/ConversionTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/com/mapk/kmapper/ConversionTest.kt b/src/test/kotlin/com/mapk/kmapper/ConversionTest.kt index 817bb1a..bd717be 100644 --- a/src/test/kotlin/com/mapk/kmapper/ConversionTest.kt +++ b/src/test/kotlin/com/mapk/kmapper/ConversionTest.kt @@ -121,7 +121,7 @@ class ConversionTest { @DisplayName("Numberソース") fun fromNumber(numbers: NumberSource) { numbers.values.forEach { - val actual = BoundKMapper(::Dst, NumberSrc::class).map(NumberSrc(it)) + val actual = BoundKMapper().map(NumberSrc(it)) assertEquals(0, BigDecimal.valueOf(it.toDouble()).compareTo(actual.number)) } } @@ -130,7 +130,7 @@ class ConversionTest { @ValueSource(strings = ["100", "2.0", "-500"]) @DisplayName("Stringソース") fun fromString(str: String) { - val actual = BoundKMapper(::Dst, StringSrc::class).map(StringSrc(str)) + val actual = BoundKMapper().map(StringSrc(str)) assertEquals(0, BigDecimal(str).compareTo(actual.number)) } }