@Test
@Ignore
public void testAllRpgSources() throws Exception {
List<String> errors = new ArrayList<String>();
List<String> files = new ArrayList<String>();
//File dir = new File(getResourcePath("./"));
File dir = new File("c:\\temp\\rpg\\all");
int count=0;
for (File file : dir.listFiles()) {
if (isRpgSourceFile(file)) {
String rpgsource = TestUtils.loadFile(file);
rpgsource = TestUtils.padSourceLines(rpgsource, false);
List<CommonToken> tokenList = TestUtils.getParsedTokens(rpgsource, errors);
if (errors.size() > 0) {
System.out.println("The failing file is :" + file.getName());
if(count++>10)
break;
errors.clear();
}
}
}
assertThat(errors, is(empty()));
}
TestPGMInFolder.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:rpgleparser
作者:
评论列表
文章目录