More validation checks for field annotations
This commit is contained in:
@@ -308,6 +308,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.jvm.compiler.AbstractLoadJavaTest", new File("compiler/testData/loadJava/kotlinSignature/error"), "java", true);
|
||||
}
|
||||
|
||||
@TestMetadata("ExplicitFieldGettersAndSetters.java")
|
||||
public void testExplicitFieldGettersAndSetters() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtraUpperBound.java")
|
||||
public void testExtraUpperBound() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/ExtraUpperBound.java");
|
||||
@@ -318,6 +323,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/MissingUpperBound.java");
|
||||
}
|
||||
|
||||
@TestMetadata("NoFieldTypeRef.java")
|
||||
public void testNoFieldTypeRef() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/NoFieldTypeRef.java");
|
||||
}
|
||||
|
||||
@TestMetadata("NotVarargReplacedWithVararg.java")
|
||||
public void testNotVarargReplacedWithVararg() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/NotVarargReplacedWithVararg.java");
|
||||
@@ -338,6 +348,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/VarargReplacedWithNotVararg.java");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongFieldMutability.java")
|
||||
public void testWrongFieldMutability() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/WrongFieldMutability.java");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongFieldName.java")
|
||||
public void testWrongFieldName() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/error/WrongFieldName.java");
|
||||
|
||||
+15
@@ -1193,6 +1193,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.lang.resolve.lazy.AbstractLazyResolveNamespaceComparingTest", new File("compiler/testData/loadJava/kotlinSignature/error"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("ExplicitFieldGettersAndSetters.kt")
|
||||
public void testExplicitFieldGettersAndSetters() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtraUpperBound.kt")
|
||||
public void testExtraUpperBound() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/ExtraUpperBound.kt");
|
||||
@@ -1203,6 +1208,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/MissingUpperBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NoFieldTypeRef.kt")
|
||||
public void testNoFieldTypeRef() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/NoFieldTypeRef.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("NotVarargReplacedWithVararg.kt")
|
||||
public void testNotVarargReplacedWithVararg() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt");
|
||||
@@ -1223,6 +1233,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongFieldMutability.kt")
|
||||
public void testWrongFieldMutability() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/WrongFieldMutability.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("WrongFieldName.kt")
|
||||
public void testWrongFieldName() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/error/WrongFieldName.kt");
|
||||
|
||||
Reference in New Issue
Block a user