Pull Up: Move Kotlin -> Kotlin tests to separate directory

This commit is contained in:
Alexey Sedunov
2015-08-04 14:52:23 +03:00
committed by Alexey Sedunov
parent a695202846
commit ffc56a7c31
63 changed files with 96 additions and 96 deletions
@@ -31,193 +31,193 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class PullUpTestGenerated extends AbstractPullUpTest { public class PullUpTestGenerated extends AbstractPullUpTest {
@TestMetadata("accidentalOverrides.kt")
public void testAccidentalOverrides() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/accidentalOverrides.kt");
doTest(fileName);
}
public void testAllFilesPresentInPullUp() throws Exception { public void testAllFilesPresentInPullUp() throws Exception {
JetTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("idea/testData/refactoring/pullUp"), Pattern.compile("^(.+)\\.kt$")); JetTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("idea/testData/refactoring/pullUp"), Pattern.compile("^(.+)\\.kt$"));
} }
@TestMetadata("clashWithSuper.kt") @TestMetadata("k2k/accidentalOverrides.kt")
public void testClashWithSuper() throws Exception { public void testK2k_AccidentalOverrides() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/clashWithSuper.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/accidentalOverrides.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fromClassToClass.kt") @TestMetadata("k2k/clashWithSuper.kt")
public void testFromClassToClass() throws Exception { public void testK2k_ClashWithSuper() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/fromClassToClass.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/clashWithSuper.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fromClassToClassMakeAbstract.kt") @TestMetadata("k2k/fromClassToClass.kt")
public void testFromClassToClassMakeAbstract() throws Exception { public void testK2k_FromClassToClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/fromClassToClassMakeAbstract.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/fromClassToClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fromClassToClassWithGenerics.kt") @TestMetadata("k2k/fromClassToClassMakeAbstract.kt")
public void testFromClassToClassWithGenerics() throws Exception { public void testK2k_FromClassToClassMakeAbstract() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/fromClassToClassWithGenerics.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/fromClassToClassMakeAbstract.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fromClassToInterface.kt") @TestMetadata("k2k/fromClassToClassWithGenerics.kt")
public void testFromClassToInterface() throws Exception { public void testK2k_FromClassToClassWithGenerics() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/fromClassToInterface.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/fromClassToClassWithGenerics.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fromClassToInterfaceMakeAbstract.kt") @TestMetadata("k2k/fromClassToInterface.kt")
public void testFromClassToInterfaceMakeAbstract() throws Exception { public void testK2k_FromClassToInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/fromClassToInterfaceMakeAbstract.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/fromClassToInterface.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("implicitCompanionUsages.kt") @TestMetadata("k2k/fromClassToInterfaceMakeAbstract.kt")
public void testImplicitCompanionUsages() throws Exception { public void testK2k_FromClassToInterfaceMakeAbstract() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/implicitCompanionUsages.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/fromClassToInterfaceMakeAbstract.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("inaccessibleMemberUsed.kt") @TestMetadata("k2k/implicitCompanionUsages.kt")
public void testInaccessibleMemberUsed() throws Exception { public void testK2k_ImplicitCompanionUsages() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/inaccessibleMemberUsed.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/implicitCompanionUsages.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("initializerInConstructor.kt") @TestMetadata("k2k/inaccessibleMemberUsed.kt")
public void testInitializerInConstructor() throws Exception { public void testK2k_InaccessibleMemberUsed() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/initializerInConstructor.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/inaccessibleMemberUsed.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("initializerInMultipleConstructorsEq.kt") @TestMetadata("k2k/initializerInConstructor.kt")
public void testInitializerInMultipleConstructorsEq() throws Exception { public void testK2k_InitializerInConstructor() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/initializerInMultipleConstructorsEq.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/initializerInConstructor.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("initializerInMultipleConstructorsNonEq.kt") @TestMetadata("k2k/initializerInMultipleConstructorsEq.kt")
public void testInitializerInMultipleConstructorsNonEq() throws Exception { public void testK2k_InitializerInMultipleConstructorsEq() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/initializerInMultipleConstructorsNonEq.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/initializerInMultipleConstructorsEq.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("innerClassToInterface.kt") @TestMetadata("k2k/initializerInMultipleConstructorsNonEq.kt")
public void testInnerClassToInterface() throws Exception { public void testK2k_InitializerInMultipleConstructorsNonEq() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/innerClassToInterface.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/initializerInMultipleConstructorsNonEq.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("moveAllSuperInterfaces.kt") @TestMetadata("k2k/innerClassToInterface.kt")
public void testMoveAllSuperInterfaces() throws Exception { public void testK2k_InnerClassToInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/moveAllSuperInterfaces.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/innerClassToInterface.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("moveAllSuperInterfacesWithGenerics.kt") @TestMetadata("k2k/moveAllSuperInterfaces.kt")
public void testMoveAllSuperInterfacesWithGenerics() throws Exception { public void testK2k_MoveAllSuperInterfaces() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/moveAllSuperInterfacesWithGenerics.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/moveAllSuperInterfaces.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("moveSuperInterfaces.kt") @TestMetadata("k2k/moveAllSuperInterfacesWithGenerics.kt")
public void testMoveSuperInterfaces() throws Exception { public void testK2k_MoveAllSuperInterfacesWithGenerics() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/moveSuperInterfaces.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/moveAllSuperInterfacesWithGenerics.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("moveSuperInterfacesToEmptySpecifierList.kt") @TestMetadata("k2k/moveSuperInterfaces.kt")
public void testMoveSuperInterfacesToEmptySpecifierList() throws Exception { public void testK2k_MoveSuperInterfaces() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/moveSuperInterfacesToEmptySpecifierList.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/moveSuperInterfaces.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("moveSuperInterfaceToItSelf.kt") @TestMetadata("k2k/moveSuperInterfacesToEmptySpecifierList.kt")
public void testMoveSuperInterfaceToItSelf() throws Exception { public void testK2k_MoveSuperInterfacesToEmptySpecifierList() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/moveSuperInterfaceToItSelf.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/moveSuperInterfacesToEmptySpecifierList.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("multipleInitializersInConstructorsEq.kt") @TestMetadata("k2k/moveSuperInterfaceToItSelf.kt")
public void testMultipleInitializersInConstructorsEq() throws Exception { public void testK2k_MoveSuperInterfaceToItSelf() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/multipleInitializersInConstructorsEq.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/moveSuperInterfaceToItSelf.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("noCaret.kt") @TestMetadata("k2k/multipleInitializersInConstructorsEq.kt")
public void testNoCaret() throws Exception { public void testK2k_MultipleInitializersInConstructorsEq() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/noCaret.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/multipleInitializersInConstructorsEq.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("noClashWithAbstractSuper.kt") @TestMetadata("k2k/noCaret.kt")
public void testNoClashWithAbstractSuper() throws Exception { public void testK2k_NoCaret() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/noClashWithAbstractSuper.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/noCaret.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("noInitializationInInterface.kt") @TestMetadata("k2k/noClashWithAbstractSuper.kt")
public void testNoInitializationInInterface() throws Exception { public void testK2k_NoClashWithAbstractSuper() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/noInitializationInInterface.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/noClashWithAbstractSuper.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("noSuperClass.kt") @TestMetadata("k2k/noInitializationInInterface.kt")
public void testNoSuperClass() throws Exception { public void testK2k_NoInitializationInInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/noSuperClass.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/noInitializationInInterface.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("outsideOfClass.kt") @TestMetadata("k2k/noSuperClass.kt")
public void testOutsideOfClass() throws Exception { public void testK2k_NoSuperClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/outsideOfClass.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/noSuperClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("parametersInPrimaryInitializer.kt") @TestMetadata("k2k/outsideOfClass.kt")
public void testParametersInPrimaryInitializer() throws Exception { public void testK2k_OutsideOfClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/parametersInPrimaryInitializer.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/outsideOfClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("propertyDependenceSatisfied.kt") @TestMetadata("k2k/parametersInPrimaryInitializer.kt")
public void testPropertyDependenceSatisfied() throws Exception { public void testK2k_ParametersInPrimaryInitializer() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/propertyDependenceSatisfied.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/parametersInPrimaryInitializer.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("propertyDependenceUnsatisfied.kt") @TestMetadata("k2k/propertyDependenceSatisfied.kt")
public void testPropertyDependenceUnsatisfied() throws Exception { public void testK2k_PropertyDependenceSatisfied() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/propertyDependenceUnsatisfied.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/propertyDependenceSatisfied.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("publicToInterface.kt") @TestMetadata("k2k/propertyDependenceUnsatisfied.kt")
public void testPublicToInterface() throws Exception { public void testK2k_PropertyDependenceUnsatisfied() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/publicToInterface.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/propertyDependenceUnsatisfied.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("superToThis.kt") @TestMetadata("k2k/publicToInterface.kt")
public void testSuperToThis() throws Exception { public void testK2k_PublicToInterface() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/superToThis.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/publicToInterface.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("toIndirectSuperClass.kt") @TestMetadata("k2k/superToThis.kt")
public void testToIndirectSuperClass() throws Exception { public void testK2k_SuperToThis() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/toIndirectSuperClass.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/superToThis.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("usedPrivateToClass.kt") @TestMetadata("k2k/toIndirectSuperClass.kt")
public void testUsedPrivateToClass() throws Exception { public void testK2k_ToIndirectSuperClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/usedPrivateToClass.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/toIndirectSuperClass.kt");
doTest(fileName);
}
@TestMetadata("k2k/usedPrivateToClass.kt")
public void testK2k_UsedPrivateToClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/pullUp/k2k/usedPrivateToClass.kt");
doTest(fileName); doTest(fileName);
} }
} }