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

Commit 7f48e5d

Browse files
committed
ダミーコンストラクタを用いる方式に修正
1 parent 63c96be commit 7f48e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/kotlin/com/mapk/kmapper/ParameterNameConverterTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ParameterNameConverterTest {
2020
val expected = "snakeCase"
2121
val src = mapOf("camel_case" to expected)
2222

23-
val mapper = KMapper(CamelCaseDst::class) {
23+
val mapper = KMapper<CamelCaseDst> {
2424
CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, it)
2525
}
2626
val result = mapper.map(src)
@@ -38,7 +38,7 @@ class ParameterNameConverterTest {
3838
val expected = "snakeCase"
3939
val src = mapOf("camel_case" to expected)
4040

41-
val mapper = PlainKMapper(CamelCaseDst::class) {
41+
val mapper = PlainKMapper<CamelCaseDst> {
4242
CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, it)
4343
}
4444
val result = mapper.map(src)
@@ -54,7 +54,7 @@ class ParameterNameConverterTest {
5454
@DisplayName("スネークケースsrc -> キャメルケースdst")
5555
fun test() {
5656

57-
val mapper = BoundKMapper(::CamelCaseDst, BoundSrc::class) {
57+
val mapper = BoundKMapper<BoundSrc, CamelCaseDst> {
5858
CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, it)
5959
}
6060
val result = mapper.map(BoundSrc("snakeCase"))

0 commit comments

Comments
 (0)