Organized compiledJava test data.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
package test;
|
||||
|
||||
//TODO: move to LoadJavaTestGenerated when possible
|
||||
public enum MyEnum {
|
||||
public enum JavaEnum {
|
||||
ENTRY,
|
||||
ANOTHER;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
public final enum class JavaEnum : jet.Enum<test.JavaEnum> {
|
||||
private constructor JavaEnum()
|
||||
public final override /*1*/ /*fake_override*/ fun name() : jet.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal() : jet.Int
|
||||
|
||||
public class object <class-object-for-JavaEnum> {
|
||||
private constructor <class-object-for-JavaEnum>()
|
||||
public final val ANOTHER : test.JavaEnum
|
||||
public final val ENTRY : test.JavaEnum
|
||||
public final fun valueOf(/*0*/ value : jet.String) : test.JavaEnum
|
||||
public final fun values() : jet.Array<test.JavaEnum>
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package test
|
||||
|
||||
public final enum class MyEnum : jet.Enum<test.MyEnum> {
|
||||
private constructor MyEnum()
|
||||
public final override /*1*/ /*fake_override*/ fun name() : jet.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal() : jet.Int
|
||||
|
||||
public class object <class-object-for-MyEnum> {
|
||||
private constructor <class-object-for-MyEnum>()
|
||||
public final val ANOTHER : test.MyEnum
|
||||
public final val ENTRY : test.MyEnum
|
||||
public final fun valueOf(/*0*/ value : jet.String) : test.MyEnum
|
||||
public final fun values() : jet.Array<test.MyEnum>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test;
|
||||
|
||||
public class inner implements B.C {
|
||||
public class SubclassFromNested implements B.C {
|
||||
}
|
||||
|
||||
class B {
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class SubclassFromNested : test.B.C {
|
||||
public constructor SubclassFromNested()
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
public open class inner : test.B.C {
|
||||
public constructor inner()
|
||||
}
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
public class test {
|
||||
package test;
|
||||
|
||||
public class StaticFinal {
|
||||
public static final String foo = "aaa";
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
public open class StaticFinal : java.lang.Object {
|
||||
public constructor StaticFinal()
|
||||
}
|
||||
|
||||
package StaticFinal {
|
||||
public val foo : jet.String
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package test
|
||||
|
||||
public val foo : jet.String
|
||||
@@ -971,20 +971,20 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava")
|
||||
@InnerTestClasses({CompiledJava.ProtectedPackage.class, CompiledJava.ProtectedStatic.class, CompiledJava.SignaturePropagation.class, CompiledJava.StaticFinal.class})
|
||||
@InnerTestClasses({CompiledJava.ProtectedPackage.class, CompiledJava.ProtectedStatic.class, CompiledJava.SignaturePropagation.class, CompiledJava.Static.class})
|
||||
public static class CompiledJava extends AbstractLoadJavaTest {
|
||||
public void testAllFilesPresentInCompiledJava() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/compiledJava"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("inner.java")
|
||||
public void testInner() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/inner.java");
|
||||
@TestMetadata("JavaEnum.java")
|
||||
public void testJavaEnum() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/JavaEnum.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MyEnum.java")
|
||||
public void testMyEnum() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/MyEnum.java");
|
||||
@TestMetadata("SubclassFromNested.java")
|
||||
public void testSubclassFromNested() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/SubclassFromNested.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava/protectedPackage")
|
||||
@@ -1066,15 +1066,15 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava/staticFinal")
|
||||
public static class StaticFinal extends AbstractLoadJavaTest {
|
||||
public void testAllFilesPresentInStaticFinal() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/compiledJava/staticFinal"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava/static")
|
||||
public static class Static extends AbstractLoadJavaTest {
|
||||
public void testAllFilesPresentInStatic() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/compiledJava/static"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("test.java")
|
||||
public void testTest() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/staticFinal/test.java");
|
||||
@TestMetadata("StaticFinal.java")
|
||||
public void testStaticFinal() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/static/StaticFinal.java");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1085,7 +1085,7 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
suite.addTestSuite(ProtectedPackage.class);
|
||||
suite.addTestSuite(ProtectedStatic.class);
|
||||
suite.addTestSuite(SignaturePropagation.class);
|
||||
suite.addTestSuite(StaticFinal.class);
|
||||
suite.addTestSuite(Static.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user