[FIR-TEST] Move stdlib tests for delegates to separate directory

This commit is contained in:
Dmitriy Novozhilov
2020-03-06 11:24:22 +03:00
parent 3655f0c499
commit 2a58fc238f
12 changed files with 38 additions and 25 deletions
@@ -33,11 +33,6 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/resolve/testData/resolveWithStdlib"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@TestMetadata("anonymousInDelegate.kt")
public void testAnonymousInDelegate() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/anonymousInDelegate.kt");
}
@TestMetadata("arrayFilterCapturedType.kt")
public void testArrayFilterCapturedType() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/arrayFilterCapturedType.kt");
@@ -88,16 +83,6 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
runTest("compiler/fir/resolve/testData/resolveWithStdlib/concurrentMapOfAliases.kt");
}
@TestMetadata("delegateTypeMismatch.kt")
public void testDelegateTypeMismatch() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegateTypeMismatch.kt");
}
@TestMetadata("delegateWithAnonymousObject.kt")
public void testDelegateWithAnonymousObject() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegateWithAnonymousObject.kt");
}
@TestMetadata("emptyArray.kt")
public void testEmptyArray() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/emptyArray.kt");
@@ -238,16 +223,6 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
runTest("compiler/fir/resolve/testData/resolveWithStdlib/runOnIntegerLiteral.kt");
}
@TestMetadata("simpleDelegateProvider.kt")
public void testSimpleDelegateProvider() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/simpleDelegateProvider.kt");
}
@TestMetadata("simpleDelegatedToMap.kt")
public void testSimpleDelegatedToMap() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/simpleDelegatedToMap.kt");
}
@TestMetadata("simpleLazy.kt")
public void testSimpleLazy() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/simpleLazy.kt");
@@ -517,6 +492,44 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
}
}
@TestMetadata("compiler/fir/resolve/testData/resolveWithStdlib/delegates")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Delegates extends AbstractFirDiagnosticsWithStdlibTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInDelegates() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/resolve/testData/resolveWithStdlib/delegates"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@TestMetadata("anonymousInDelegate.kt")
public void testAnonymousInDelegate() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegates/anonymousInDelegate.kt");
}
@TestMetadata("delegateTypeMismatch.kt")
public void testDelegateTypeMismatch() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegates/delegateTypeMismatch.kt");
}
@TestMetadata("delegateWithAnonymousObject.kt")
public void testDelegateWithAnonymousObject() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegates/delegateWithAnonymousObject.kt");
}
@TestMetadata("simpleDelegateProvider.kt")
public void testSimpleDelegateProvider() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegates/simpleDelegateProvider.kt");
}
@TestMetadata("simpleDelegatedToMap.kt")
public void testSimpleDelegatedToMap() throws Exception {
runTest("compiler/fir/resolve/testData/resolveWithStdlib/delegates/simpleDelegatedToMap.kt");
}
}
@TestMetadata("compiler/fir/resolve/testData/resolveWithStdlib/inference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)