diff options
Diffstat (limited to 'tests/src')
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 |