summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-04-28 09:05:44 +0000
committeravasseur <avasseur>2005-04-28 09:05:44 +0000
commitfd380fe072d2444995109658c38b1ecae390f900 (patch)
tree6dbb0ccec776447df8913b4f57ef8ef6523c1d9e /testing
parentd8bfe7324600e51511051a9db49a2ad7e4e9d7a7 (diff)
downloadaspectj-fd380fe072d2444995109658c38b1ecae390f900.tar.gz
aspectj-fd380fe072d2444995109658c38b1ecae390f900.zip
inlining of around for @AJ works unless non public member accessed from within the advice
splitted ajc150 xml test file
Diffstat (limited to 'testing')
-rw-r--r--testing/newsrc/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java b/testing/newsrc/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java
index f77e289d7..02adcd515 100644
--- a/testing/newsrc/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java
+++ b/testing/newsrc/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java
@@ -135,5 +135,20 @@ public abstract class AutowiredXMLBasedAjcTestCase extends XMLBasedAjcTestCase {
super.setUp();
}
+ /**
+ * This helper method runs the test with the given title in the
+ * suite spec file. All tests steps in given ajc-test execute
+ * in the same sandbox.
+ */
+ protected void runTest(String title) {
+ AjcTest currentTest = (AjcTest) testMap.get(title);
+ if (currentTest == null) {
+ fail("No test '" + title + "' in suite.");
+ }
+ ajc.setShouldEmptySandbox(true);
+ currentTest.runTest(this);
+ }
+
+
}