Raise deprecation level for org.junit.Test in stdlib for common and JS
#KT-21703
This commit is contained in:
@@ -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
@@ -1,7 +1,6 @@
|
||||
package org.jetbrains
|
||||
|
||||
import kotlin.test.*
|
||||
import org.junit.Test
|
||||
|
||||
open class SharedTest {
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user