summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2007-12-18 15:46:21 +0000
committeraclement <aclement>2007-12-18 15:46:21 +0000
commit9505640327e797a1c96f0ff51a900f5c0946a7f0 (patch)
tree6c2e7732fafa4ece3761f8c48b2db4d02ad7b167
parent489f36454f3d81f4c14729ec243e782aa31aa3a2 (diff)
downloadaspectj-9505640327e797a1c96f0ff51a900f5c0946a7f0.tar.gz
aspectj-9505640327e797a1c96f0ff51a900f5c0946a7f0.zip
CustomMungerTest now included
-rw-r--r--tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java21
2 files changed, 13 insertions, 10 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java b/tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java
index 751ceeef1..23491edba 100644
--- a/tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java
+++ b/tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java
@@ -20,7 +20,7 @@ public class AllTestsAspectJ154 {
TestSuite suite = new TestSuite("AspectJ 1.5.4 tests");
//$JUnit-BEGIN$
suite.addTest(Ajc154Tests.suite());
- //suite.addTestSuite(CustomMungerExtensionTest.class);
+ suite.addTestSuite(CustomMungerExtensionTest.class);
//$JUnit-END$
return suite;
}
diff --git a/tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java b/tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java
index 89fcad90b..c29a3dccc 100644
--- a/tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java
+++ b/tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java
@@ -17,32 +17,35 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
-import java.util.Map;
import org.aspectj.ajde.core.AjCompiler;
import org.aspectj.bridge.ISourceLocation;
import org.aspectj.systemtest.incremental.tools.AjdeInteractionTestbed;
-import org.aspectj.weaver.Advice;
import org.aspectj.weaver.Checker;
import org.aspectj.weaver.ConcreteTypeMunger;
import org.aspectj.weaver.CustomMungerFactory;
-import org.aspectj.weaver.Member;
import org.aspectj.weaver.ResolvedType;
import org.aspectj.weaver.ResolvedTypeMunger;
import org.aspectj.weaver.Shadow;
-import org.aspectj.weaver.ShadowMunger;
import org.aspectj.weaver.World;
-import org.aspectj.weaver.AjAttribute.AdviceAttribute;
import org.aspectj.weaver.patterns.DeclareErrorOrWarning;
import org.aspectj.weaver.patterns.IfPointcut;
import org.aspectj.weaver.patterns.Pointcut;
public class CustomMungerExtensionTest extends AjdeInteractionTestbed {
- protected void setUp() throws Exception {
- super.setUp();
- sandboxDir = new File(".");
- }
+ File oldSandBoxDir;
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ oldSandBoxDir = sandboxDir;
+ sandboxDir = new File("../tests");
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ sandboxDir = oldSandBoxDir;
+ }
public void testExtension() {
String testFileDir = "bugs/pointcutdoctor-bug193065";