Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
BoundKMapperのダミーコンストラクタ利用を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Jul 23, 2020
1 parent ebb0cbc commit e8a6f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/kotlin/com/mapk/kmapper/ConversionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<NumberSrc, Dst>().map(NumberSrc(it))
assertEquals(0, BigDecimal.valueOf(it.toDouble()).compareTo(actual.number))
}
}
Expand All @@ -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<StringSrc, Dst>().map(StringSrc(str))
assertEquals(0, BigDecimal(str).compareTo(actual.number))
}
}
Expand Down

0 comments on commit e8a6f7c

Please sign in to comment.