updated tests

This commit is contained in:
Jindra Petk
2013-05-19 12:48:02 +02:00
parent ab31e793e9
commit 751156975a
3 changed files with 31 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ import org.testng.annotations.Test;
*/
public class RecompileTest {
public static final String TESTDATADIR = "testdata";
public static final String TESTDATADIR = "testdata/recompile";
private void testRecompileOne(String filename) {
try {
@@ -28,6 +28,9 @@ public class RecompileTest {
@Test
public void testRecompile() {
File dir = new File(TESTDATADIR);
if (!dir.exists()) {
return;
}
File files[] = dir.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
@@ -35,7 +38,7 @@ public class RecompileTest {
}
});
for (File f : files) {
testRecompileOne(f.getAbsolutePath());
testRecompileOne(f.getName());
}
}
}