Regenerate tests

After recent changes to Printer and TestGenerator
This commit is contained in:
Alexander Udalov
2014-10-20 18:39:31 +04:00
parent b9836afb49
commit f8be39b26b
106 changed files with 13412 additions and 14698 deletions
@@ -17,13 +17,11 @@
package org.jetbrains.jet.codegen;
import com.intellij.testFramework.TestDataPath;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.junit.runner.RunWith;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
@@ -32,52 +30,51 @@ import java.util.regex.Pattern;
@SuppressWarnings("all")
@TestMetadata("compiler/testData/codegen/topLevelMemberInvocation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(org.jetbrains.jet.JUnit3RunnerWithInners.class)
@RunWith(JUnit3RunnerWithInners.class)
public class TopLevelMembersInvocationTestGenerated extends AbstractTopLevelMembersInvocationTest {
public void testAllFilesPresentInTopLevelMemberInvocation() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/topLevelMemberInvocation"), Pattern.compile("^([^\\.]+)$"), false);
}
@TestMetadata("extensionFunction")
public void testExtensionFunction() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/extensionFunction/");
doTest(fileName);
}
@TestMetadata("functionDifferentPackage")
public void testFunctionDifferentPackage() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/functionDifferentPackage/");
doTest(fileName);
}
@TestMetadata("functionInMultiFilePackage")
public void testFunctionInMultiFilePackage() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/functionInMultiFilePackage/");
doTest(fileName);
}
@TestMetadata("functionSamePackage")
public void testFunctionSamePackage() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/functionSamePackage/");
doTest(fileName);
}
@TestMetadata("property")
public void testProperty() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/property/");
doTest(fileName);
}
@TestMetadata("propertyWithGetter")
public void testPropertyWithGetter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/propertyWithGetter/");
doTest(fileName);
}
@TestMetadata("twoModules")
public void testTwoModules() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/topLevelMemberInvocation/twoModules/");
doTest(fileName);
}
}