public void finish() throws Exception {
if (input == null) {
if (!outputFile.createNewFile()) {
NbTestCase.fail("Cannot create file " + outputFile);
}
FileWriter fw = new FileWriter(outputFile);
try {
fw.write(output.toString());
} finally {
fw.close();
}
NbTestCase.fail("Created tokens dump file " + outputFile + "\nPlease re-run the test.");
} else {
if (inputIndex < input.length()) {
NbTestCase.fail("Some text left unread:" + input.substring(inputIndex));
}
}
}
TokenDumpCheck.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录