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

Commit e5ae7a2

Browse files
committed
テスト修正
1 parent a71e323 commit e5ae7a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/kotlin/com/mapk/fastkfunction/fastkfunction/FullInitializedCallTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private class FullInitializedCallTest {
4949
@ParameterizedTest
5050
@MethodSource("argumentsProvider")
5151
fun callByArgumentBucket(target: KFunction<Dst>, instance: Any?, message: String) {
52-
val sut = FastKFunction(target, instance)
52+
val sut = FastKFunction.of(target, instance)
5353
val bucket = sut.generateBucket().apply {
5454
val params = target.parameters.filter { it.kind == KParameter.Kind.VALUE }
5555

@@ -65,7 +65,7 @@ private class FullInitializedCallTest {
6565
@ParameterizedTest
6666
@MethodSource("argumentsProvider")
6767
fun callByCollection(target: KFunction<Dst>, instance: Any?, message: String) {
68-
val sut = FastKFunction(target, instance)
68+
val sut = FastKFunction.of(target, instance)
6969
assertDoesNotThrow("Fail $message") {
7070
assertEquals(Dst(100, "txt"), sut.callByCollection(listOf(100, "txt")), message)
7171
}
@@ -74,7 +74,7 @@ private class FullInitializedCallTest {
7474
@ParameterizedTest
7575
@MethodSource("argumentsProvider")
7676
fun callByVarargs(target: KFunction<Dst>, instance: Any?, message: String) {
77-
val sut = FastKFunction(target, instance)
77+
val sut = FastKFunction.of(target, instance)
7878
assertDoesNotThrow("Fail $message") {
7979
assertEquals(Dst(100, "txt"), sut.call(100, "txt"), message)
8080
}

src/test/kotlin/com/mapk/fastkfunction/fastkfunction/UseDefaultValueCallTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private class UseDefaultValueCallTest {
107107
@ParameterizedTest
108108
@MethodSource("argumentsProvider")
109109
fun test(target: KFunction<Dst>, instance: Any?, default: DefaultValues) {
110-
val sut = FastKFunction(target, instance)
110+
val sut = FastKFunction.of(target, instance)
111111
val bucket = sut.generateBucket().apply {
112112
val params = target.parameters.filter { it.kind == KParameter.Kind.VALUE && !it.isOptional }
113113

0 commit comments

Comments
 (0)