Fix path case problem
This commit is contained in:
@@ -87,7 +87,7 @@ public abstract class AbstractRenameTest extends MultiFileTestCase {
|
|||||||
renameKotlinClassTest(fqNameUnsafe.toSafe(), strings[2]);
|
renameKotlinClassTest(fqNameUnsafe.toSafe(), strings[2]);
|
||||||
break;
|
break;
|
||||||
case KOTLIN_FUNCTION:
|
case KOTLIN_FUNCTION:
|
||||||
renameKotlinFunctionTest(fqNameUnsafe.parent().toSafe(),fqNameUnsafe.shortName().asString(), strings[2]);
|
renameKotlinFunctionTest(fqNameUnsafe.parent().toSafe(), fqNameUnsafe.shortName().asString(), strings[2]);
|
||||||
break;
|
break;
|
||||||
case KOTLIN_PROPERTY:
|
case KOTLIN_PROPERTY:
|
||||||
renameKotlinPropertyTest(fqNameUnsafe.parent().toSafe(), fqNameUnsafe.shortName().asString(), strings[2]);
|
renameKotlinPropertyTest(fqNameUnsafe.parent().toSafe(), fqNameUnsafe.shortName().asString(), strings[2]);
|
||||||
@@ -200,7 +200,7 @@ public abstract class AbstractRenameTest extends MultiFileTestCase {
|
|||||||
doTest(new MultiFileTestCase.PerformAction() {
|
doTest(new MultiFileTestCase.PerformAction() {
|
||||||
@Override
|
@Override
|
||||||
public void performAction(VirtualFile rootDir, VirtualFile rootAfter) throws Exception {
|
public void performAction(VirtualFile rootDir, VirtualFile rootAfter) throws Exception {
|
||||||
VirtualFile child = rootDir.findChild(getTestDirName() + ".kt");
|
VirtualFile child = rootDir.findChild(getTestDirName(false) + ".kt");
|
||||||
assertNotNull(child);
|
assertNotNull(child);
|
||||||
|
|
||||||
Document document = FileDocumentManager.getInstance().getDocument(child);
|
Document document = FileDocumentManager.getInstance().getDocument(child);
|
||||||
@@ -224,14 +224,14 @@ public abstract class AbstractRenameTest extends MultiFileTestCase {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getTestDirName() {
|
protected String getTestDirName(boolean lowercaseFirstLetter) {
|
||||||
String testName = getTestName(true);
|
String testName = getTestName(lowercaseFirstLetter);
|
||||||
return testName.substring(0, testName.indexOf('_'));
|
return testName.substring(0, testName.indexOf('_'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doTest(PerformAction performAction) throws Exception {
|
protected void doTest(PerformAction performAction) throws Exception {
|
||||||
super.doTest(performAction, getTestDirName());
|
super.doTest(performAction, getTestDirName(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user