diff options
author | mwebster <mwebster> | 2006-11-06 13:49:03 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-11-06 13:49:03 +0000 |
commit | 4add2e21b067b1e0ea1fb6e862d5c22429336c4a (patch) | |
tree | c49bdeba960b4ab54608bbb05b833e6e379dbbc1 /testing | |
parent | 2dbecd2538f135239f3d10a0349d51ac16fdc7e7 (diff) | |
download | aspectj-4add2e21b067b1e0ea1fb6e862d5c22429336c4a.tar.gz aspectj-4add2e21b067b1e0ea1fb6e862d5c22429336c4a.zip |
Bug 155033 "Use ajcore for LTW problems" (move System Property handling)
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java index b91587da7..dc9bbe296 100644 --- a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java +++ b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java @@ -13,6 +13,7 @@ package org.aspectj.testing; import java.io.File; import java.io.FileInputStream; +import java.io.FilenameFilter; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; @@ -275,5 +276,24 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase { File f = new File(ajc.getSandboxDirectory(),file); assertTrue("File " + file + " should have been updated",f.lastModified() > sinceTime); } + + public static class CountingFilenameFilter implements FilenameFilter { + + private String suffix; + private int count; + + public CountingFilenameFilter (String s) { + this.suffix = s; + } + + public boolean accept(File dir, String name) { + if (name.endsWith(suffix)) count++; + return false; + } + + public int getCount() { + return count; + } + } } |