summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2006-06-23 13:39:12 +0000
committeraclement <aclement>2006-06-23 13:39:12 +0000
commit16d8120ef10e7934c658c5457fb46e67d4ed9b78 (patch)
tree4e92169ef5b2ec009339f65c35b19fd4ecb53836 /tests/src
parent718543f8d7bdeec644aaee560066abd4a623578c (diff)
downloadaspectj-16d8120ef10e7934c658c5457fb46e67d4ed9b78.tar.gz
aspectj-16d8120ef10e7934c658c5457fb46e67d4ed9b78.zip
126167: Fix for @Around problems...
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/AtAroundTests.java61
1 files changed, 36 insertions, 25 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/AtAroundTests.java b/tests/src/org/aspectj/systemtest/ajc151/AtAroundTests.java
index c926c7db6..e64b8945b 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/AtAroundTests.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/AtAroundTests.java
@@ -24,49 +24,60 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
* @author AndyClement
*
*/
-
-
public class AtAroundTests extends XMLBasedAjcTestCase {
- public void testCodeBasic() { runTest("code style - basic"); }
- public void testAtBasic() { runTest("annotation style - basic"); }
+ public void testCodeBasic() { runTest("code style - basic"); }
+ public void testAtBasicNoInline() { runTest("annotation style - basic - noinline"); }
+ public void testAtBasic() { runTest("annotation style - basic"); }
+ public void testCodeBindingTarget() { runTest("code style - correct usage, binding and passing same target for call"); }
+ public void testAtBindingTargetNoInline() { runTest("annotation style - correct usage, binding and passing same target for call - noinline"); }
+ public void testAtBindingTarget() { runTest("annotation style - correct usage, binding and passing same target for call"); }
+
+ public void testCodeBindingTarget2() { runTest("code style - correct usage, binding and passing new target for call"); }
+ public void testAtBindingTargetNoInline2() { runTest("annotation style - correct usage, binding and passing new target for call - noinline"); }
+ public void testAtBindingTarget2() { runTest("annotation style - correct usage, binding and passing new target for call"); }
+
public void testCodeErrorCase1() { runTest("code style - forget to pass target");}
// Don't think we can report correct errors for @AJ as the parameters are specified as an object array
- // public void testAtErrorCase1() { runTest("annotation style - forget to pass target");}
+ //public void testAtErrorCase1() { runTest("annotation style - forget to pass target");}
+
+ public void testCodeBindThisCallChangeProceed() { runTest("code style - bind this on call - change on proceed - no effect");}
+ public void testAtBindThisCallChangeProceedNoInline() { runTest("annotation style - bind this on call - change on proceed - no effect - noinline");}
+ public void testAtBindThisCallChangeProceed() { runTest("annotation style - bind this on call - change on proceed - no effect");}
+
+ public void testCodeBindThisExecutionChangeProceed() { runTest("code style - bind this on execution - change on proceed - works");}
+ public void testAtBindThisExecutionChangeProceedNoInline() { runTest("annotation style - bind this on execution - change on proceed - works - noinline");}
+ public void testAtBindThisExecutionChangeProceed() { runTest("annotation style - bind this on execution - change on proceed - works");}
+
+ public void testCodeBindBothExecutionChangeProceed() { runTest("code style - bind this and target on execution - change on proceed - works");}
+ public void testAtBindBothExecutionChangeProceedNoInline() { runTest("annotation style - bind this and target on execution - change on proceed - works - noinline");}
+ public void testAtBindBothExecutionChangeProceed() { runTest("annotation style - bind this and target on execution - change on proceed - works");}
public void testCodeErrorCase2() { runTest("code style - incorrect arg types");}
// Don't think we can report correct errors for @AJ as the parameters are specified as an object array
// public void testAtErrorCase2() { runTest("annotation style - incorrect arg types");}
-
- public void testCodeBindingTarget() { runTest("code style - correct usage, binding and passing new target for call"); }
- public void testAtBindingTarget() { runTest("annotation style - correct usage, binding and passing new target for call"); }
- public void testCodeChangingTarget() { runTest("code style - changing target for call"); }
- public void testAtChangingTarget() { runTest("annotation style - changing target for call"); }
-
public void testCodeChangingTargetDifferingOrder() { runTest("code style - changing target for call - reverse order"); }
// @AJ cant cope with the changing of the order of arguments bound and passed through proceed
//public void testAtChangingTargetDifferingOrder() { runTest("annotation style - changing target for call - reverse order"); }
-
- public void testCodeBindThisCallChangeProceed() { runTest("code style - bind this on call - change on proceed - no effect");}
- //public void testAtBindThisCallChangeProceed() { runTest("annotation style - bind this on call - change on proceed - no effect");}
+
+ public void testCodeBindBothCallChangeProceed() { runTest("code style - bind this and target on call - change on proceed - works");}
+ public void testAtBindBothCallChangeProceedNoInline() { runTest("annotation style - bind this and target on call - change on proceed - works - noinline");}
+ public void testAtBindBothCallChangeProceed() { runTest("annotation style - bind this and target on call - change on proceed - works");}
- public void testCodeBindThisExecutionChangeProceed() { runTest("code style - bind this on execution - change on proceed - works");}
- //public void testAtBindThisExecutionChangeProceed() { runTest("annotation style - bind this on execution - change on proceed - works");}
+ public void testBreakingIt1() { runTest("breaking it - one");}
+ public void testBreakingIt2() { runTest("breaking it - two");}
+
+ public void testBugCase1() { runTest("bug case one");}
+ public void testBugCase2() { runTest("bug case two");}
+ public void testMultipleArgs() { runTest("multiple args");}
- public void testCodeBindBothExecutionChangeProceed() { runTest("code style - bind this and target on execution - change on proceed - works");}
- //public void testAtBindBothExecutionChangeProceed() { runTest("annotation style - bind this and target on execution - change on proceed - works");}
-
- public void testCodeBindBothCallChangeProceed() { runTest("code style - bind this and target on call - change on proceed - works");}
- //public void testAtBindBothCallChangeProceed() { runTest("annotation style - bind this and target on call - change on proceed - works");}
-
public void testCodeSubsetArguments() { runTest("code style - works with subset of arguments in advice");}
+ // cant do this for annotation style
//public void testAtSubsetArguments() { runTest("annotation style - works with subset of arguments in advice");}
-
-
- //
+ // ---
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(AtAroundTests.class);
}