8003650: java.lang.Exception: expected string not found: pkg/package-frame.html

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2012-11-20 07:25:11 -08:00
parent f0fe027b50
commit f2fa2a199c
2 changed files with 6 additions and 4 deletions

View file

@ -67,8 +67,9 @@ public class GetTask_WriterTest extends APITest {
String out = sw.toString(); String out = sw.toString();
System.err.println(">>" + out + "<<"); System.err.println(">>" + out + "<<");
for (String f: standardExpectFiles) { for (String f: standardExpectFiles) {
if (f.endsWith(".html") && !out.contains(f)) String f1 = f.replace('/', File.separatorChar);
throw new Exception("expected string not found: " + f); if (f1.endsWith(".html") && !out.contains(f1))
throw new Exception("expected string not found: " + f1);
} }
} else { } else {
throw new Exception("task failed"); throw new Exception("task failed");

View file

@ -64,8 +64,9 @@ public class RunTest extends APITest {
checkFiles(outDir, standardExpectFiles); checkFiles(outDir, standardExpectFiles);
String out = stdout.toString(); String out = stdout.toString();
for (String f: standardExpectFiles) { for (String f: standardExpectFiles) {
if (f.endsWith(".html") && !out.contains(f)) String f1 = f.replace('/', File.separatorChar);
error("expected string not found: " + f); if (f1.endsWith(".html") && !out.contains(f1))
error("expected string not found: " + f1);
} }
} else { } else {
error("call failed"); error("call failed");