"Split if" intention - renamed tests

This commit is contained in:
Valentin Kipyatkov
2015-05-14 14:18:39 +03:00
parent 8e16ddb00e
commit 8f797e8e69
42 changed files with 72 additions and 72 deletions
@@ -6375,147 +6375,147 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), true); JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/splitIf"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), true);
} }
@TestMetadata("splitIfAndOr.kt") @TestMetadata("and.kt")
public void testSplitIfAndOr() throws Exception { public void testAnd() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfAndOr.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/and.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfAndOrWithBraces.kt") @TestMetadata("caretOnIf.kt")
public void testSplitIfAndOrWithBraces() throws Exception { public void testCaretOnIf() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfAndOrWithBraces.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/caretOnIf.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfAndWithBraces.kt") @TestMetadata("ifAndOr.kt")
public void testSplitIfAndWithBraces() throws Exception { public void testIfAndOr() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfAndWithBraces.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/ifAndOr.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfCaretOnIf.kt") @TestMetadata("ifAndOrWithBraces.kt")
public void testSplitIfCaretOnIf() throws Exception { public void testIfAndOrWithBraces() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfCaretOnIf.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/ifAndOrWithBraces.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfNestedIf.kt") @TestMetadata("ifAndWithBraces.kt")
public void testSplitIfNestedIf() throws Exception { public void testIfAndWithBraces() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfNestedIf.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/ifAndWithBraces.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfNestedIfNotApplicable.kt") @TestMetadata("ifWithElse.kt")
public void testSplitIfNestedIfNotApplicable() throws Exception { public void testIfWithElse() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfNestedIfNotApplicable.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/ifWithElse.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfNestedInside.kt") @TestMetadata("localFunction.kt")
public void testSplitIfNestedInside() throws Exception { public void testLocalFunction() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfNestedInside.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/localFunction.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfNestedOutside.kt") @TestMetadata("nestedIf.kt")
public void testSplitIfNestedOutside() throws Exception { public void testNestedIf() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfNestedOutside.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/nestedIf.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfNotIf.kt") @TestMetadata("nestedIfNotApplicable.kt")
public void testSplitIfNotIf() throws Exception { public void testNestedIfNotApplicable() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfNotIf.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/nestedIfNotApplicable.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOnIfWithOr.kt") @TestMetadata("nestedIfOutside.kt")
public void testSplitIfOnIfWithOr() throws Exception { public void testNestedIfOutside() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOnIfWithOr.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/nestedIfOutside.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOneAND.kt") @TestMetadata("nestedInside.kt")
public void testSplitIfOneAND() throws Exception { public void testNestedInside() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOneAND.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/nestedInside.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOperatorAsFunctionParam.kt") @TestMetadata("notIf.kt")
public void testSplitIfOperatorAsFunctionParam() throws Exception { public void testNotIf() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOperatorAsFunctionParam.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/notIf.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOperatorOutsideIf.kt") @TestMetadata("onIfWithOr.kt")
public void testSplitIfOperatorOutsideIf() throws Exception { public void testOnIfWithOr() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOperatorOutsideIf.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/onIfWithOr.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOrAnd.kt") @TestMetadata("operatorAsFunctionParam.kt")
public void testSplitIfOrAnd() throws Exception { public void testOperatorAsFunctionParam() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOrAnd.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/operatorAsFunctionParam.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfOrWithBraces.kt") @TestMetadata("operatorOutsideIf.kt")
public void testSplitIfOrWithBraces() throws Exception { public void testOperatorOutsideIf() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfOrWithBraces.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/operatorOutsideIf.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfTwoOperatorsFirst.kt") @TestMetadata("orAnd.kt")
public void testSplitIfTwoOperatorsFirst() throws Exception { public void testOrAnd() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfTwoOperatorsFirst.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/orAnd.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfTwoOperatorsSecond.kt") @TestMetadata("orWithBraces.kt")
public void testSplitIfTwoOperatorsSecond() throws Exception { public void testOrWithBraces() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfTwoOperatorsSecond.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/orWithBraces.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithElse.kt") @TestMetadata("twoOperatorsFirst.kt")
public void testSplitIfWithElse() throws Exception { public void testTwoOperatorsFirst() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithElse.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/twoOperatorsFirst.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithFunction.kt") @TestMetadata("twoOperatorsSecond.kt")
public void testSplitIfWithFunction() throws Exception { public void testTwoOperatorsSecond() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithFunction.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/twoOperatorsSecond.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithNotOperator.kt") @TestMetadata("withNotOperator.kt")
public void testSplitIfWithNotOperator() throws Exception { public void testWithNotOperator() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithNotOperator.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/withNotOperator.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithNotOperatorGood.kt") @TestMetadata("withNotOperatorGood.kt")
public void testSplitIfWithNotOperatorGood() throws Exception { public void testWithNotOperatorGood() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithNotOperatorGood.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/withNotOperatorGood.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithOR.kt") @TestMetadata("withOR.kt")
public void testSplitIfWithOR() throws Exception { public void testWithOR() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithOR.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/withOR.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWithORElse.kt") @TestMetadata("withORElse.kt")
public void testSplitIfWithORElse() throws Exception { public void testWithORElse() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWithORElse.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/withORElse.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("splitIfWrongCaretLocation.kt") @TestMetadata("wrongCaretLocation.kt")
public void testSplitIfWrongCaretLocation() throws Exception { public void testWrongCaretLocation() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/splitIfWrongCaretLocation.kt"); String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/splitIf/wrongCaretLocation.kt");
doTest(fileName); doTest(fileName);
} }
} }