diff options
Diffstat (limited to 'tests/new/IfFalse.aj')
-rw-r--r-- | tests/new/IfFalse.aj | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/new/IfFalse.aj b/tests/new/IfFalse.aj index 6b1b8d402..149867cc6 100644 --- a/tests/new/IfFalse.aj +++ b/tests/new/IfFalse.aj @@ -1,3 +1,4 @@ +import org.aspectj.lang.annotation.SuppressAjWarnings; import org.aspectj.testing.Tester; public aspect IfFalse { @@ -12,22 +13,25 @@ public aspect IfFalse { pointcut p4() : within(IfFalse) && if(false); - + @SuppressAjWarnings("adviceDidNotMatch") after() returning : p1() { // should never get here Tester.checkFailed("if(false) matched!"); } + @SuppressAjWarnings("adviceDidNotMatch") after() returning : p2() { // should never get here Tester.checkFailed("if( false ) matched!"); } + @SuppressAjWarnings("adviceDidNotMatch") after() returning : p3() { // should never get here Tester.checkFailed("if(x) matched!"); } + @SuppressAjWarnings("adviceDidNotMatch") after() returning : p4() { // should never get here Tester.checkFailed("if(false) matched!"); |