summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-18 10:56:11 +0000
committeraclement <aclement>2005-05-18 10:56:11 +0000
commit4ca68baf9d17391e39d5b379ebee627ce030684f (patch)
tree306a57ed8d1a0e028cf1841e6aec6e45e6e1de2a
parent0ee39450faa1183fc0bfdaaa683e8ca2afea468d (diff)
downloadaspectj-4ca68baf9d17391e39d5b379ebee627ce030684f.tar.gz
aspectj-4ca68baf9d17391e39d5b379ebee627ce030684f.zip
Getting tests to run properly on 1.3 - modified vmlevel in AjcTest and put guards on some 1.4 tests (not pretty, but works)
-rw-r--r--testing/newsrc/org/aspectj/testing/AjcTest.java2
-rw-r--r--tests/src/org/aspectj/systemtest/java14/Java14Tests.java10
2 files changed, 11 insertions, 1 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AjcTest.java b/testing/newsrc/org/aspectj/testing/AjcTest.java
index a406ae2fe..dc30e420a 100644
--- a/testing/newsrc/org/aspectj/testing/AjcTest.java
+++ b/testing/newsrc/org/aspectj/testing/AjcTest.java
@@ -48,7 +48,7 @@ public class AjcTest {
private String title;
private String keywords;
private String comment;
- private String vmLevel = "1.4";
+ private String vmLevel = "1.3";
public AjcTest() {
}
diff --git a/tests/src/org/aspectj/systemtest/java14/Java14Tests.java b/tests/src/org/aspectj/systemtest/java14/Java14Tests.java
index 8bedab1ec..5d847bc27 100644
--- a/tests/src/org/aspectj/systemtest/java14/Java14Tests.java
+++ b/tests/src/org/aspectj/systemtest/java14/Java14Tests.java
@@ -12,6 +12,7 @@ package org.aspectj.systemtest.java14;
import java.io.File;
import junit.framework.Test;
import org.aspectj.testing.XMLBasedAjcTestCase;
+import org.aspectj.util.LangUtil;
public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
@@ -47,14 +48,17 @@ public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// }
public void test006(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 006 not >=1.4");return;}
runTest("compiling asserts in methods");
}
public void test007(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 007 not >=1.4");return;}
runTest("asserts");
}
public void test008(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 008 not >=1.4");return;}
runTest("asserts in aspect and declared methods [requires 1.4]");
}
@@ -71,6 +75,7 @@ public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
}
public void test012(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 012 not >=1.4");return;}
runTest("assert tests in introduction [requires 1.4]");
}
@@ -79,18 +84,22 @@ public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
}
public void test014(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 014 not >=1.4");return;}
runTest("assert statement in advice coverage [requires 1.4]");
}
public void test015(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 015 not >=1.4");return;}
runTest("assert statement in advice [requires 1.4]");
}
public void test016(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 016 not >=1.4");return;}
runTest("assert and pertarget crashes compiler");
}
public void test017(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 017 not >=1.4");return;}
runTest("testing that assert works like .class");
}
@@ -107,6 +116,7 @@ public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
}
public void test021(){
+ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 021 not >=1.4");return;}
runTest("Class Literals as non final fields (also assert, and this$0)");
}