Raise deprecation level for org.junit.Test in stdlib for common and JS

#KT-21703
This commit is contained in:
Ilya Gorbunov
2018-09-06 05:02:10 +03:00
parent 1a8b258d86
commit ad76edd7b7
5 changed files with 9 additions and 5 deletions
@@ -1,8 +1,7 @@
package test.sample
import sample.Hello
import org.junit.Test
import kotlin.test.Test
class SampleTest {
@Test
@@ -10,6 +10,6 @@ package org.junit
@Deprecated(
"Use 'Test' from kotlin.test package",
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
level = DeprecationLevel.WARNING
level = DeprecationLevel.ERROR
)
expect annotation class Test()
@@ -8,6 +8,6 @@ package org.junit
@Deprecated(
"Use 'Test' from kotlin.test package",
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
level = DeprecationLevel.WARNING
level = DeprecationLevel.ERROR
)
actual typealias Test = kotlin.test.Test
@@ -25,6 +25,12 @@
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-annotations-common</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@@ -1,7 +1,6 @@
package org.jetbrains
import kotlin.test.*
import org.junit.Test
open class SharedTest {
@Test