提交 4a3e2777 编写于 作者: J jjg

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

Reviewed-by: ksrini
上级 89e42e7e
......@@ -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");
......
......@@ -64,8 +64,9 @@ public class RunTest extends APITest {
checkFiles(outDir, standardExpectFiles);
String out = stdout.toString();
for (String f: standardExpectFiles) {
if (f.endsWith(".html") && !out.contains(f))
error("expected string not found: " + f);
String f1 = f.replace('/', File.separatorChar);
if (f1.endsWith(".html") && !out.contains(f1))
error("expected string not found: " + f1);
}
} else {
error("call failed");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册