Added tests for 'super' resolved calls
This commit is contained in:
@@ -31,7 +31,7 @@ import org.jetbrains.jet.resolve.calls.AbstractResolvedCallsTest;
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/resolvedCalls")
|
||||
@InnerTestClasses({ResolvedCallsTestGenerated.Arguments.class, ResolvedCallsTestGenerated.FunctionTypes.class, ResolvedCallsTestGenerated.Invoke.class, ResolvedCallsTestGenerated.RealExamples.class, ResolvedCallsTestGenerated.This.class})
|
||||
@InnerTestClasses({ResolvedCallsTestGenerated.Arguments.class, ResolvedCallsTestGenerated.FunctionTypes.class, ResolvedCallsTestGenerated.Invoke.class, ResolvedCallsTestGenerated.RealExamples.class, ResolvedCallsTestGenerated.ThisOrSuper.class})
|
||||
public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
public void testAllFilesPresentInResolvedCalls() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/resolvedCalls"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@@ -319,25 +319,35 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/this")
|
||||
public static class This extends AbstractResolvedCallsTest {
|
||||
public void testAllFilesPresentInThis() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/resolvedCalls/this"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@TestMetadata("compiler/testData/resolvedCalls/thisOrSuper")
|
||||
public static class ThisOrSuper extends AbstractResolvedCallsTest {
|
||||
public void testAllFilesPresentInThisOrSuper() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/resolvedCalls/thisOrSuper"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("labeledSuper.kt")
|
||||
public void testLabeledSuper() throws Exception {
|
||||
doTest("compiler/testData/resolvedCalls/thisOrSuper/labeledSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("labeledThis.kt")
|
||||
public void testLabeledThis() throws Exception {
|
||||
doTest("compiler/testData/resolvedCalls/this/labeledThis.kt");
|
||||
doTest("compiler/testData/resolvedCalls/thisOrSuper/labeledThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleSuper.kt")
|
||||
public void testSimpleSuper() throws Exception {
|
||||
doTest("compiler/testData/resolvedCalls/thisOrSuper/simpleSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleThis.kt")
|
||||
public void testSimpleThis() throws Exception {
|
||||
doTest("compiler/testData/resolvedCalls/this/simpleThis.kt");
|
||||
doTest("compiler/testData/resolvedCalls/thisOrSuper/simpleThis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisInExtensionFunction.kt")
|
||||
public void testThisInExtensionFunction() throws Exception {
|
||||
doTest("compiler/testData/resolvedCalls/this/thisInExtensionFunction.kt");
|
||||
doTest("compiler/testData/resolvedCalls/thisOrSuper/thisInExtensionFunction.kt");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -349,7 +359,7 @@ public class ResolvedCallsTestGenerated extends AbstractResolvedCallsTest {
|
||||
suite.addTestSuite(FunctionTypes.class);
|
||||
suite.addTestSuite(Invoke.class);
|
||||
suite.addTestSuite(RealExamples.class);
|
||||
suite.addTestSuite(This.class);
|
||||
suite.addTestSuite(ThisOrSuper.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user