]> source.dussan.org Git - aspectj.git/commitdiff
CustomMungerTest now included
authoraclement <aclement>
Tue, 18 Dec 2007 15:46:21 +0000 (15:46 +0000)
committeraclement <aclement>
Tue, 18 Dec 2007 15:46:21 +0000 (15:46 +0000)
tests/src/org/aspectj/systemtest/ajc154/AllTestsAspectJ154.java
tests/src/org/aspectj/systemtest/ajc154/CustomMungerExtensionTest.java

index 751ceeef1c400bf0da15baa48c0d2974d660a253..23491edbab9de6cb0b5a33cd00741eb2af38bd2e 100644 (file)
@@ -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;
        }
index 89fcad90b3fb5b9d96b6b5a6eface7102d81f3c9..c29a3dccc4d1834fc1a59c8b8c483e66e29a0798 100644 (file)
@@ -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";