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

Commit c06b8af

Browse files
committed
テスト修正
1 parent b786b9c commit c06b8af

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test/kotlin/com/mapk/core/KParameterFlattenTest.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package com.mapk.core
22

33
import com.mapk.annotations.KConstructor
44
import com.mapk.annotations.KParameterFlatten
5-
import io.mockk.spyk
6-
import io.mockk.verify
75
import org.junit.jupiter.api.Assertions.assertEquals
86
import org.junit.jupiter.api.Assertions.assertTrue
97
import org.junit.jupiter.api.DisplayName
@@ -44,8 +42,7 @@ class KParameterFlattenTest {
4442

4543
@Test
4644
fun test() {
47-
val spiedFunction = spyk(::Dst)
48-
val function = KFunctionForCall(spiedFunction, { it })
45+
val function = KFunctionForCall(::Dst, { it })
4946

5047
function.requiredParameters.forEach {
5148
assertTrue(expectedParams.contains(it.name))
@@ -59,6 +56,5 @@ class KParameterFlattenTest {
5956

6057
val actual = function.call(adaptor)
6158
assertEquals(expected, actual)
62-
verify(exactly = 1) { spiedFunction.call(*anyVararg()) }
6359
}
6460
}

0 commit comments

Comments
 (0)