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

Commit 4b1d777

Browse files
committed
フォーマッティング
ついでにjava.langのExceptionを参照していたため削除
1 parent 126eb33 commit 4b1d777

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

src/main/kotlin/com/mapk/core/KFunctionForCall.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import com.mapk.core.internal.ParameterNameConverter
77
import com.mapk.core.internal.getAliasOrName
88
import com.mapk.core.internal.getKConstructor
99
import com.mapk.core.internal.isUseDefaultArgument
10+
import org.jetbrains.annotations.TestOnly
1011
import kotlin.reflect.KClass
1112
import kotlin.reflect.KFunction
1213
import kotlin.reflect.KParameter
1314
import kotlin.reflect.full.findAnnotation
1415
import kotlin.reflect.jvm.isAccessible
15-
import org.jetbrains.annotations.TestOnly
1616

1717
class KFunctionForCall<T> internal constructor(
1818
@TestOnly

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.mapk.core
22

33
import com.mapk.annotations.KConstructor
4-
import kotlin.reflect.full.companionObjectInstance
54
import org.junit.jupiter.api.Assertions.assertEquals
65
import org.junit.jupiter.api.Assertions.assertNull
76
import org.junit.jupiter.api.Assertions.assertTrue
87
import org.junit.jupiter.api.DisplayName
98
import org.junit.jupiter.api.Nested
109
import org.junit.jupiter.api.Test
10+
import kotlin.reflect.full.companionObjectInstance
1111

1212
@DisplayName("共通利用関数関連のテスト")
1313
class FunctionsTest {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ package com.mapk.core
22

33
import io.mockk.spyk
44
import io.mockk.verify
5-
import kotlin.reflect.KParameter
6-
import kotlin.reflect.full.functions
75
import org.junit.jupiter.api.Assertions.assertEquals
86
import org.junit.jupiter.api.DisplayName
97
import org.junit.jupiter.api.Nested
108
import org.junit.jupiter.api.Test
119
import org.junit.jupiter.api.TestInstance
1210
import org.junit.jupiter.api.assertDoesNotThrow
1311
import org.junit.jupiter.api.assertThrows
12+
import kotlin.reflect.KParameter
13+
import kotlin.reflect.full.functions
1414

1515
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
1616
class KFunctionForCallTest {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package com.mapk.core
22

33
import com.mapk.annotations.KConstructor
4-
import kotlin.reflect.KFunction
5-
import kotlin.reflect.full.memberProperties
6-
import kotlin.reflect.full.primaryConstructor
7-
import kotlin.reflect.jvm.isAccessible
84
import org.junit.jupiter.api.Assertions
95
import org.junit.jupiter.api.DisplayName
106
import org.junit.jupiter.api.Test
117
import org.junit.jupiter.api.assertThrows
8+
import kotlin.reflect.KFunction
9+
import kotlin.reflect.full.memberProperties
10+
import kotlin.reflect.full.primaryConstructor
11+
import kotlin.reflect.jvm.isAccessible
1212

1313
@Suppress("UNCHECKED_CAST", "unused")
1414
@DisplayName("クラスからのコンストラクタ抽出関連テスト")

src/test/kotlin/com/mapk/core/internal/FunctionsTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import com.mapk.annotations.KParameterAlias
44
import com.mapk.annotations.KUseDefaultArgument
55
import io.mockk.every
66
import io.mockk.mockk
7-
import java.lang.IllegalArgumentException
8-
import kotlin.reflect.KParameter
97
import org.junit.jupiter.api.Assertions.assertEquals
108
import org.junit.jupiter.api.Assertions.assertFalse
119
import org.junit.jupiter.api.Assertions.assertTrue
@@ -14,6 +12,7 @@ import org.junit.jupiter.api.DisplayName
1412
import org.junit.jupiter.api.Nested
1513
import org.junit.jupiter.api.Test
1614
import org.junit.jupiter.api.assertThrows
15+
import kotlin.reflect.KParameter
1716

1817
@DisplayName("関数類のテスト")
1918
class FunctionsTest {

0 commit comments

Comments
 (0)