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 package test.sample
import sample.Hello import sample.Hello
import kotlin.test.Test
import org.junit.Test
class SampleTest { class SampleTest {
@Test @Test
@@ -10,6 +10,6 @@ package org.junit
@Deprecated( @Deprecated(
"Use 'Test' from kotlin.test package", "Use 'Test' from kotlin.test package",
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"), replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
level = DeprecationLevel.WARNING level = DeprecationLevel.ERROR
) )
expect annotation class Test() expect annotation class Test()
@@ -8,6 +8,6 @@ package org.junit
@Deprecated( @Deprecated(
"Use 'Test' from kotlin.test package", "Use 'Test' from kotlin.test package",
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"), replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
level = DeprecationLevel.WARNING level = DeprecationLevel.ERROR
) )
actual typealias Test = kotlin.test.Test actual typealias Test = kotlin.test.Test
@@ -25,6 +25,12 @@
<version>${kotlin.version}</version> <version>${kotlin.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-annotations-common</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
@@ -1,7 +1,6 @@
package org.jetbrains package org.jetbrains
import kotlin.test.* import kotlin.test.*
import org.junit.Test
open class SharedTest { open class SharedTest {
@Test @Test