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
|
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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user