fix case of files in testdata

This commit is contained in:
Dmitry Jemerov
2009-09-11 22:49:35 +04:00
parent 2515f1f82a
commit bd9ea92e84
4 changed files with 8 additions and 4 deletions
@@ -23,7 +23,7 @@ public class ExtractMethodObjectTest extends LightCodeInsightTestCase {
}
private void doTest(boolean createInnerClass) throws Exception {
final String testName = getTestName(true);
final String testName = getTestName(false);
configureByFile("/refactoring/extractMethodObject/" + testName + ".java");
PsiElement element = TargetElementUtilBase.findTargetElement(myEditor, TargetElementUtilBase.ELEMENT_NAME_ACCEPTED);
assertTrue(element instanceof PsiMethod);
@@ -94,7 +94,7 @@ public class MoveMembersTest extends MultiFileTestCase {
public void performAction(VirtualFile rootDir, VirtualFile rootAfter) throws Exception {
MoveMembersTest.this.performAction(sourceClassName, targetClassName, memberIndices);
}
});
}, false);
}
private void performAction(String sourceClassName, String targetClassName, int[] memberIndices) throws Exception {
@@ -122,7 +122,7 @@ public class TurnRefsToSuperTest extends MultiFileTestCase {
public void performAction(VirtualFile rootDir, VirtualFile rootAfter) throws Exception {
TurnRefsToSuperTest.this.performAction(className, superClassName, replaceInstanceOf);
}
});
}, false);
}
public String getTestRoot() {
@@ -20,7 +20,11 @@ public abstract class MultiFileTestCase extends CodeInsightTestCase {
protected boolean myDoCompare = true;
protected void doTest(PerformAction performAction) throws Exception {
String testName = getTestName(true);
doTest(performAction, true);
}
protected void doTest(PerformAction performAction, final boolean lowercaseFirstLetter) throws Exception {
String testName = getTestName(lowercaseFirstLetter);
String root = getTestDataPath() + getTestRoot() + testName;
String rootBefore = root + "/before";