summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-21 17:04:18 +0000
committeracolyer <acolyer>2005-09-21 17:04:18 +0000
commitb5eb04579d5c5d1c0325ebe560c660bde938ce82 (patch)
tree5759298a9e99de965db38b3e18041462d27a97f7 /weaver
parentca9c1f7c57b64473042f3100a4159650da085111 (diff)
downloadaspectj-b5eb04579d5c5d1c0325ebe560c660bde938ce82.tar.gz
aspectj-b5eb04579d5c5d1c0325ebe560c660bde938ce82.zip
load 1.5 dependent tests reflectively...
Diffstat (limited to 'weaver')
-rw-r--r--weaver/java5-testsrc/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java8
-rw-r--r--weaver/testsrc/BcweaverModuleTests15.java7
2 files changed, 13 insertions, 2 deletions
diff --git a/weaver/java5-testsrc/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java b/weaver/java5-testsrc/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
index 10651dc90..ceb549405 100644
--- a/weaver/java5-testsrc/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
+++ b/weaver/java5-testsrc/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
@@ -17,7 +17,9 @@ import java.lang.reflect.Method;
import org.aspectj.lang.annotation.Pointcut;
+import junit.framework.Test;
import junit.framework.TestCase;
+import junit.framework.TestSuite;
/**
* @author colyer
@@ -25,6 +27,12 @@ import junit.framework.TestCase;
*/
public class Java15PointcutExpressionTest extends TestCase {
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Java15PointcutExpressionTest");
+ suite.addTestSuite(Java15PointcutExpressionTest.class);
+ return suite;
+ }
+
private PointcutParser parser;
private Method a;
private Method b;
diff --git a/weaver/testsrc/BcweaverModuleTests15.java b/weaver/testsrc/BcweaverModuleTests15.java
index 4ca66cc11..7523fb85b 100644
--- a/weaver/testsrc/BcweaverModuleTests15.java
+++ b/weaver/testsrc/BcweaverModuleTests15.java
@@ -13,6 +13,8 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.aspectj.testing.util.TestUtil;
+import org.aspectj.util.LangUtil;
import org.aspectj.weaver.BoundedReferenceTypeTestCase;
import org.aspectj.weaver.MemberTestCase15;
import org.aspectj.weaver.ReferenceTypeTestCase;
@@ -20,7 +22,6 @@ import org.aspectj.weaver.TypeVariableReferenceTypeTestCase;
import org.aspectj.weaver.TypeVariableTestCase;
import org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXTestCase;
import org.aspectj.weaver.patterns.WildTypePatternResolutionTestCase;
-import org.aspectj.weaver.tools.Java15PointcutExpressionTest;
public class BcweaverModuleTests15 extends TestCase {
public static Test suite() {
@@ -32,7 +33,9 @@ public class BcweaverModuleTests15 extends TestCase {
suite.addTestSuite(MemberTestCase15.class);
suite.addTestSuite(BcelGenericSignatureToTypeXTestCase.class);
suite.addTestSuite(WildTypePatternResolutionTestCase.class);
- suite.addTestSuite(Java15PointcutExpressionTest.class);
+ if (LangUtil.is15VMOrGreater()) {
+ TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.tools.Java15PointcutExpressionTest", false);
+ }
return suite;
}