TestGen: Escape paths
This commit is contained in:
@@ -111,7 +111,7 @@ public class SimpleTestClassModel implements TestClassModel {
|
||||
|
||||
@Override
|
||||
public String getDataString() {
|
||||
return rootFile.getPath();
|
||||
return JetTestUtils.getFilePath(rootFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,7 +44,7 @@ public class SimpleTestMethodModel implements TestMethodModel {
|
||||
|
||||
@Override
|
||||
public String getDataString() {
|
||||
return FileUtil.getRelativePath(rootDir, file);
|
||||
return JetTestUtils.getFilePath(new File(FileUtil.getRelativePath(rootDir, file)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -65,7 +65,7 @@ public class TestGenerator {
|
||||
StringBuilder out = new StringBuilder();
|
||||
Printer p = new Printer(out);
|
||||
|
||||
p.print(FileUtil.loadFile(new File("injector-generator/copyright.txt")));
|
||||
p.print(FileUtil.loadFile(new File("injector-generator/copyright.txt"), true));
|
||||
p.println("package ", suiteClassPackage, ";");
|
||||
p.println();
|
||||
for (String importedClassName : JUNIT3_IMPORTS) {
|
||||
@@ -200,4 +200,4 @@ public class TestGenerator {
|
||||
p.println("@TestMetadata(\"", dataString, "\")");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user