Move FullJdk tests to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 21:51:43 +04:00
committed by Alexander Udalov
parent d23f82177f
commit f994c9924f
8 changed files with 40 additions and 52 deletions
@@ -1,51 +0,0 @@
/*
* Copyright 2010-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.jet.codegen;
import org.jetbrains.jet.JetTestUtils;
public class FullJdkCodegenTest extends CodegenTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
myEnvironment = JetTestUtils.createEnvironmentWithFullJdk(getTestRootDisposable());
}
public void testKt434() {
blackBoxFile("regressions/kt434.kt");
}
public void testSynchronized() {
blackBoxFile("controlStructures/sync.kt");
}
public void testIfInWhile() {
blackBoxFile("controlStructures/ifInWhile.kt");
}
public void testKt2423() {
blackBoxFile("regressions/kt2423.kt");
}
public void testKt2509() {
blackBoxFile("regressions/kt2509.kt");
}
public void testIntCountDownLatchExtension() {
blackBoxFile("extensionFunctions/intCountDownLatchExtension.kt");
}
}
@@ -31,7 +31,7 @@ import org.jetbrains.jet.codegen.generated.AbstractBlackBoxWithStdlibCodegenTest
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/codegen/boxWithStdlib")
@InnerTestClasses({BlackBoxWithStdlibCodegenTestGenerated.DataClasses.class, BlackBoxWithStdlibCodegenTestGenerated.Ranges.class, BlackBoxWithStdlibCodegenTestGenerated.Regressions.class})
@InnerTestClasses({BlackBoxWithStdlibCodegenTestGenerated.DataClasses.class, BlackBoxWithStdlibCodegenTestGenerated.FullJdk.class, BlackBoxWithStdlibCodegenTestGenerated.Ranges.class, BlackBoxWithStdlibCodegenTestGenerated.Regressions.class})
public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxWithStdlibCodegenTest {
public void testAllFilesPresentInBoxWithStdlib() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/boxWithStdlib"), Pattern.compile("^(.+)\\.kt$"), true);
@@ -317,6 +317,44 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxWith
}
}
@TestMetadata("compiler/testData/codegen/boxWithStdlib/fullJdk")
public static class FullJdk extends AbstractBlackBoxWithStdlibCodegenTest {
public void testAllFilesPresentInFullJdk() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/boxWithStdlib/fullJdk"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("ifInWhile.kt")
public void testIfInWhile() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/ifInWhile.kt");
}
@TestMetadata("intCountDownLatchExtension.kt")
public void testIntCountDownLatchExtension() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/intCountDownLatchExtension.kt");
}
@TestMetadata("kt2423.kt")
public void testKt2423() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/kt2423.kt");
}
@TestMetadata("kt2509.kt")
public void testKt2509() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/kt2509.kt");
}
@TestMetadata("kt434.kt")
public void testKt434() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/kt434.kt");
}
@TestMetadata("sync.kt")
public void testSync() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/boxWithStdlib/fullJdk/sync.kt");
}
}
@TestMetadata("compiler/testData/codegen/boxWithStdlib/ranges")
@InnerTestClasses({Ranges.Expression.class, Ranges.Literal.class})
public static class Ranges extends AbstractBlackBoxWithStdlibCodegenTest {
@@ -631,6 +669,7 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxWith
TestSuite suite = new TestSuite("BlackBoxWithStdlibCodegenTestGenerated");
suite.addTestSuite(BlackBoxWithStdlibCodegenTestGenerated.class);
suite.addTest(DataClasses.innerSuite());
suite.addTestSuite(FullJdk.class);
suite.addTest(Ranges.innerSuite());
suite.addTestSuite(Regressions.class);
return suite;