summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-20 09:40:54 +0000
committeraclement <aclement>2006-01-20 09:40:54 +0000
commit9c38e399f5d9c75fdd2b918752fba7fa12b28673 (patch)
treede3c39f2f1e99d4bf665a359a4db3a5c77f3d6a1 /tests
parentf51e0736ed52ca6bc3689981f53718b62471251a (diff)
downloadaspectj-9c38e399f5d9c75fdd2b918752fba7fa12b28673.tar.gz
aspectj-9c38e399f5d9c75fdd2b918752fba7fa12b28673.zip
77166 - newarray joinpoint support. "-Xjoinpoints:arrayconstruction"
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/NewarrayJoinpointTests.java3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/newarray_joinpoint.xml7
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java b/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java
index 31d37c5d5..1153be1b6 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java
@@ -19,6 +19,7 @@ public class AllTestsAspectJ151 {
TestSuite suite = new TestSuite("AspectJ 1.5.1 tests");
//$JUnit-BEGIN$
suite.addTest(Ajc151Tests.suite());
+ suite.addTest(NewarrayJoinpointTests.suite());
//$JUnit-END$
return suite;
}
diff --git a/tests/src/org/aspectj/systemtest/ajc151/NewarrayJoinpointTests.java b/tests/src/org/aspectj/systemtest/ajc151/NewarrayJoinpointTests.java
index dbd0be4da..4db134003 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/NewarrayJoinpointTests.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/NewarrayJoinpointTests.java
@@ -60,6 +60,9 @@ public class NewarrayJoinpointTests extends XMLBasedAjcTestCase {
public void testUsingItForReal() { runTest("using it for real");}
public void testDifferentiatingArrayTypes() { runTest("differentiating array types");}
public void testStructureModel() { runTest("structure model");}
+
+
+ public void testOptionoff() { runTest("option deactivated - no match expected");}
//
public static Test suite() {
diff --git a/tests/src/org/aspectj/systemtest/ajc151/newarray_joinpoint.xml b/tests/src/org/aspectj/systemtest/ajc151/newarray_joinpoint.xml
index fedc67322..b75d4adec 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/newarray_joinpoint.xml
+++ b/tests/src/org/aspectj/systemtest/ajc151/newarray_joinpoint.xml
@@ -153,5 +153,12 @@
<ajc-test dir="features151/newarrayjoinpoint" title="structure model">
<compile files="Five.java" options="-1.5 -emacssym -Xjoinpoints:arrayconstruction"/>
</ajc-test>
+
+ <ajc-test dir="features151/newarrayjoinpoint" title="option deactivated - no match expected">
+ <compile files="One.java" options="-1.5 -showWeaveInfo">
+ <message kind="warning" line="9" text="advice defined in X has not been applied [Xlint:adviceDidNotMatch]"/>
+ </compile>
+ </ajc-test>
+
</suite> \ No newline at end of file