Skip to content

Commit 4ab303d

Browse files
committed
Moved Mokkery units under test to the main source set.
1 parent ab88a36 commit 4ab303d

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.sdkotlin.testing.mokkery
2+
3+
@Suppress("unused") // Not mockable by Mokkery unless all-opened.
4+
data class DataClass(
5+
override val v: ValueClassSuperType,
6+
) : DataClassSuperType
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package org.sdkotlin.testing.mokkery
2+
3+
interface DataClassSuperType {
4+
val v: ValueClassSuperType
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.sdkotlin.testing.mokkery
2+
3+
@JvmInline
4+
value class ValueClass(val s: String) : ValueClassSuperType
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package org.sdkotlin.testing.mokkery
2+
3+
interface ValueClassSuperType

subprojects/testing-with-mokkery/src/test/kotlin/org/sdkotlin/testing/mokkery/MokkeryValueClassParameterTest.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@ import dev.mokkery.mock
66
import org.assertj.core.api.Assertions.assertThat
77
import org.junit.jupiter.api.Test
88

9-
interface ValueClassSuperType
10-
11-
@JvmInline
12-
value class ValueClass(val s: String) : ValueClassSuperType
13-
14-
interface DataClassSuperType {
15-
val v: ValueClassSuperType
16-
}
17-
18-
@Suppress("unused") // Not mockable by Mokkery unless all-opened.
19-
data class DataClass(
20-
override val v: ValueClassSuperType,
21-
) : DataClassSuperType
22-
239
class MokkeryValueClassParameterTest {
2410

2511
@Test

0 commit comments

Comments
 (0)