kotlin-test: migrate multiplatform integration test to use common test module
This commit is contained in:
committed by
Ilya Gorbunov
parent
e500eba59f
commit
66de78e82a
-5
@@ -1,5 +0,0 @@
|
||||
package org.jetbrains
|
||||
|
||||
impl fun assertEquals(a: String, b: String) {
|
||||
kotlin.test.assertEquals(a, b)
|
||||
}
|
||||
@@ -24,6 +24,12 @@
|
||||
<artifactId>test-multimodule-shared</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-test-junit</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package org.jetbrains
|
||||
|
||||
import org.junit.*
|
||||
|
||||
impl fun assertEquals(a: String, b: String) {
|
||||
Assert.assertEquals(a, b)
|
||||
}
|
||||
@@ -19,6 +19,12 @@
|
||||
<artifactId>kotlin-stdlib-common</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-test-common</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
package org.jetbrains
|
||||
|
||||
import org.junit.*
|
||||
import kotlin.test.*
|
||||
|
||||
open class SharedTest {
|
||||
@Test
|
||||
fun test0() {
|
||||
assertEquals("Hello, World!", getGreeting())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
package org.jetbrains
|
||||
|
||||
header fun assertEquals(a: String, b: String)
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package org.junit
|
||||
|
||||
@Suppress("HEADER_WITHOUT_IMPLEMENTATION")
|
||||
header annotation class Test
|
||||
Reference in New Issue
Block a user