mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
execution tests probably fixed
This commit is contained in:
@@ -144,13 +144,6 @@ public class OutputChecker {
|
||||
if (expected.length() != actual.length()) {
|
||||
System.out.println("Text sizes differ: expected " + expected.length() + " but actual: " + actual.length());
|
||||
}
|
||||
for (int idx = 0; idx < len; idx++) {
|
||||
final char expectedChar = expected.charAt(idx);
|
||||
final char actualChar = actual.charAt(idx);
|
||||
if (expectedChar != actualChar) {
|
||||
System.out.println("Difference at index " + idx + ": ;" + expectedChar + "' != '" + actualChar + "'");
|
||||
}
|
||||
}
|
||||
if (expected.length() > len) {
|
||||
System.out.println("Rest from expected text is: \"" + expected.substring(len) + "\"");
|
||||
}
|
||||
@@ -194,6 +187,7 @@ public class OutputChecker {
|
||||
|
||||
result = StringUtil.replace(result, "\r\n", "\n");
|
||||
result = StringUtil.replace(result, "\r", "\n");
|
||||
result = replaceAdditionalInOutput(result);
|
||||
result = StringUtil.replace(result, testJdk.getHomePath(), "!TEST_JDK!", shouldIgnoreCase);
|
||||
result = StringUtil.replace(result, myAppPath, "!APP_PATH!", shouldIgnoreCase);
|
||||
result = StringUtil.replace(result, myAppPath.replace(File.separatorChar, '/'), "!APP_PATH!", shouldIgnoreCase);
|
||||
@@ -208,8 +202,6 @@ public class OutputChecker {
|
||||
result = StringUtil.replace(result, PathManager.getHomePath(), "!IDEA_HOME!", shouldIgnoreCase);
|
||||
result = StringUtil.replace(result, "Process finished with exit code 255", "Process finished with exit code -1");
|
||||
|
||||
result = replaceAdditionalInOutput(result);
|
||||
|
||||
// result = result.replaceAll(" +\n", "\n");
|
||||
result = result.replaceAll("!HOST_NAME!:\\d*", "!HOST_NAME!:!HOST_PORT!");
|
||||
result = result.replaceAll("at \\'.*?\\'", "at '!HOST_NAME!:PORT_NAME!'");
|
||||
|
||||
Reference in New Issue
Block a user