Fixed test data to use only annotation syntax with @
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
@java.lang.Deprecated class TestClass2 {}
|
||||
|
||||
java.lang.Deprecated class TestClass3 {}
|
||||
@java.lang.Deprecated class TestClass3 {}
|
||||
|
||||
java.lang.Deprecated class TestClass4 {}
|
||||
@java.lang.Deprecated class TestClass4 {}
|
||||
|
||||
class TestClass5 {
|
||||
java.lang.Deprecated class innerTestClass5() {}
|
||||
@java.lang.Deprecated class innerTestClass5() {}
|
||||
}
|
||||
|
||||
// ANNOTATION: java.lang.Deprecated
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
java.lang.Deprecated fun test1() {}
|
||||
@java.lang.Deprecated fun test1() {}
|
||||
|
||||
java.lang.Deprecated fun test2() {}
|
||||
@java.lang.Deprecated fun test2() {}
|
||||
|
||||
fun test3() {
|
||||
java.lang.Deprecated fun test3inner() {}
|
||||
@java.lang.Deprecated fun test3inner() {}
|
||||
}
|
||||
|
||||
class Test4() {
|
||||
java.lang.Deprecated fun test4() {}
|
||||
@java.lang.Deprecated fun test4() {}
|
||||
}
|
||||
|
||||
class Test5() {
|
||||
fun test5() {
|
||||
java.lang.Deprecated fun test5inner() {}
|
||||
@java.lang.Deprecated fun test5inner() {}
|
||||
}
|
||||
}
|
||||
|
||||
class Test6() {
|
||||
companion object {
|
||||
java.lang.Deprecated fun test6() {}
|
||||
@java.lang.Deprecated fun test6() {}
|
||||
}
|
||||
}
|
||||
|
||||
object Test7 {
|
||||
java.lang.Deprecated fun test7() {}
|
||||
@java.lang.Deprecated fun test7() {}
|
||||
}
|
||||
|
||||
// ANNOTATION: java.lang.Deprecated
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
MyAnnotation("f", "s") fun test1() {}
|
||||
@MyAnnotation("f", "s") fun test1() {}
|
||||
|
||||
MyAnnotation("f", "s") class Test1() {}
|
||||
@MyAnnotation("f", "s") class Test1() {}
|
||||
|
||||
MyAnnotation("f", "s") val test3 = 1
|
||||
@MyAnnotation("f", "s") val test3 = 1
|
||||
|
||||
annotation class MyAnnotation(val first: String, val second: String)
|
||||
|
||||
|
||||
+2
-2
@@ -3,11 +3,11 @@ import org.junit.Test
|
||||
class MyTestClass {
|
||||
@org.junit.Test fun test1() {}
|
||||
|
||||
org.junit.Test fun test2() {}
|
||||
@org.junit.Test fun test2() {}
|
||||
|
||||
@Test fun test3() {}
|
||||
|
||||
Test fun test4() {}
|
||||
@Test fun test4() {}
|
||||
|
||||
@Deprecated @org.junit.Test fun test5() {}
|
||||
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@ import org.junit.Test as test
|
||||
import org.junit.Test
|
||||
|
||||
class MyTestClass {
|
||||
test fun test1() {}
|
||||
@test fun test1() {}
|
||||
|
||||
@Deprecated @test fun test2() {}
|
||||
|
||||
Test fun test3() {}
|
||||
@Test fun test3() {}
|
||||
}
|
||||
|
||||
// ANNOTATION: org.junit.Test
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@ import org.junit.Test as unittest
|
||||
import org.junit.Test
|
||||
|
||||
class MyTestClass {
|
||||
unittest fun test1() {}
|
||||
@unittest fun test1() {}
|
||||
|
||||
@Deprecated @unittest fun test2() {}
|
||||
|
||||
Test fun test3() {}
|
||||
@Test fun test3() {}
|
||||
}
|
||||
|
||||
// ANNOTATION: org.junit.Test
|
||||
|
||||
Reference in New Issue
Block a user