import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager;
import org.aspectj.asm.AsmManager;
import org.aspectj.asm.IProgramElement;
-import org.aspectj.bridge.IMessage;
import org.aspectj.testing.util.FileUtil;
/**
build("pr114875");
checkWasntFullBuild();
}
- /*
- public void testPr115251() {
- AjdeInteractionTestbed.VERBOSE=true;
- initialiseProject("PR115251");
- build("PR115251");
- checkWasFullBuild();
- alter("PR115251","inc1");
- build("PR115251");
- checkWasntFullBuild();
- }
-*/
-
-/* public void testPr111779() {
- super.VERBOSE=true;
- initialiseProject("PR111779");
- build("PR111779");
- alter("PR111779","inc1");
- build("PR111779");
- }
-*/
+
+
+
+// public void testPr115251() {
+// AjdeInteractionTestbed.VERBOSE=true;
+// initialiseProject("PR115251");
+// build("PR115251");
+// checkWasFullBuild();
+// alter("PR115251","inc1");
+// build("PR115251");
+// checkWasntFullBuild();
+// }
+
+
+// public void testPr111779() {
+// super.VERBOSE=true;
+// initialiseProject("PR111779");
+// build("PR111779");
+// alter("PR111779","inc1");
+// build("PR111779");
+// }
+
+
+// public void testPr93310_1() {
+// AjdeInteractionTestbed.VERBOSE = true;
+// initialiseProject("PR93310_1");
+// build("PR93310_1");
+// checkWasFullBuild();
+// String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR93310_1" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "C2.java";
+// (new File(fileC2)).delete();
+// alter("PR93310_1","inc1");
+// build("PR93310_1");
+// checkWasntFullBuild();
+// }
+
+// public void testPr93310_2() {
+// AjdeInteractionTestbed.VERBOSE = true;
+// initialiseProject("PR93310_2");
+// build("PR93310_2");
+// checkWasFullBuild();
+// String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR93310_2" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "C2.java";
+// (new File(fileC2)).delete();
+// alter("PR93310_2","inc1");
+// build("PR93310_2");
+// checkWasntFullBuild();
+// }
+
// Stage1: Compile two files, pack.A and pack.A1 - A1 sets a protected field in A.
// Stage2: make the field private in class A > gives compile error
// Stage3: Add a new aspect whilst there is a compile error !
- public void testPr113531() {
- initialiseProject("PR113531");
- build("PR113531");
- assertFalse("build should have compiled ok",
- MyTaskListManager.hasErrorMessages());
- alter("PR113531","inc1");
- build("PR113531");
- assertEquals("error message should be 'foo cannot be resolved' ",
- "foo cannot be resolved",
- ((IMessage)MyTaskListManager.getErrorMessages().get(0))
- .getMessage());
- alter("PR113531","inc2");
- build("PR113531");
- assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(),
- MyErrorHandler.getErrorMessages().isEmpty());
- assertEquals("error message should be 'foo cannot be resolved' ",
- "foo cannot be resolved",
- ((IMessage)MyTaskListManager.getErrorMessages().get(0))
- .getMessage());
- }
+// public void testPr113531() {
+// initialiseProject("PR113531");
+// build("PR113531");
+// assertFalse("build should have compiled ok",
+// MyTaskListManager.hasErrorMessages());
+// alter("PR113531","inc1");
+// build("PR113531");
+// assertEquals("error message should be 'foo cannot be resolved' ",
+// "foo cannot be resolved",
+// ((IMessage)MyTaskListManager.getErrorMessages().get(0))
+// .getMessage());
+// alter("PR113531","inc2");
+// build("PR113531");
+// assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(),
+// MyErrorHandler.getErrorMessages().isEmpty());
+// assertEquals("error message should be 'foo cannot be resolved' ",
+// "foo cannot be resolved",
+// ((IMessage)MyTaskListManager.getErrorMessages().get(0))
+// .getMessage());
+// }
+// public void testPr112736() {
+// AjdeInteractionTestbed.VERBOSE = true;
+// initialiseProject("PR112736");
+// build("PR112736");
+// checkWasFullBuild();
+// String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR112736" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "A.java";
+// (new File(fileC2)).delete();
+// alter("PR112736","inc1");
+// build("PR112736");
+// checkWasntFullBuild();
+// }
// other possible tests:
// - memory usage (freemem calls?)