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();
System.err.println(">>" + out + "<<");
for (String f: standardExpectFiles) {
if (f.endsWith(".html") && !out.contains(f))
throw new Exception("expected string not found: " + f);
String f1 = f.replace('/', File.separatorChar);
if (f1.endsWith(".html") && !out.contains(f1))
throw new Exception("expected string not found: " + f1);
}
} else {
throw new Exception("task failed");