diff options
author | wisberg <wisberg> | 2005-06-08 23:35:21 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-06-08 23:35:21 +0000 |
commit | f65bc76fdf72ca584b534ab8ae983583c0b241f1 (patch) | |
tree | 3d335cc7b5dfcdec5466fe9203705f20514ecd6c /loadtime5 | |
parent | 0c4e822ebe1aed1e24e271e4496d5ace41570168 (diff) | |
download | aspectj-f65bc76fdf72ca584b534ab8ae983583c0b241f1.tar.gz aspectj-f65bc76fdf72ca584b534ab8ae983583c0b241f1.zip |
Java 5 guard to permit running in 1.3
Diffstat (limited to 'loadtime5')
-rw-r--r-- | loadtime5/testsrc/Loadtime5ModuleTests.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/loadtime5/testsrc/Loadtime5ModuleTests.java b/loadtime5/testsrc/Loadtime5ModuleTests.java index 231c80df6..526750347 100644 --- a/loadtime5/testsrc/Loadtime5ModuleTests.java +++ b/loadtime5/testsrc/Loadtime5ModuleTests.java @@ -22,7 +22,11 @@ public class Loadtime5ModuleTests extends TestCase { public static Test suite() { TestSuite suite = new TestSuite(Loadtime5ModuleTests.class.getName()); - TestUtil.loadTestsReflectively(suite, "Loadtime515ModuleTests", true); + if (TestUtil.is15VMOrGreater()) { + TestUtil.loadTestsReflectively(suite, "Loadtime515ModuleTests", true); + } else { + suite.addTest(TestUtil.testNamed("all tests require 1.5")); + } return suite; } public static void main(String[] args) { |