summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-23 20:38:58 +0000
committeraclement <aclement>2009-01-23 20:38:58 +0000
commitab75342042aa9a5e0ed0c512bf50d68f9bfb2d19 (patch)
treeb8d87f28da5a799d0c7acff7913e1a108d7f03f5 /tests/src
parent0afe6b3137e636e126d58d6db1a21d2990c06d95 (diff)
downloadaspectj-ab75342042aa9a5e0ed0c512bf50d68f9bfb2d19.tar.gz
aspectj-ab75342042aa9a5e0ed0c512bf50d68f9bfb2d19.zip
262218: test and fix
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java22
1 files changed, 18 insertions, 4 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index 8e8eb585f..90a81d457 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -70,18 +70,19 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
}
assertEquals("Should have found the two types in: " + ps, 2, count);
}
-
+
public void testConstructorAdvice_pr261380() throws Exception {
String p = "261380";
initialiseProject(p);
build(p);
IRelationshipMap irm = getModelFor(p).getRelationshipMap();
- IRelationship ir = (IRelationship)irm.get("=261380<test{C.java}X&before").get(0);
+ IRelationship ir = (IRelationship) irm.get("=261380<test{C.java}X&before").get(0);
List targets = ir.getTargets();
- assertEquals(1,targets.size());
+ assertEquals(1, targets.size());
System.out.println(targets.get(0));
String handle = (String) targets.get(0);
- assertEquals("Expected the handle for the code node inside the constructor decl","=261380<test{C.java[C~C?constructor-call(void test.C.<init>())",handle);
+ assertEquals("Expected the handle for the code node inside the constructor decl",
+ "=261380<test{C.java[C~C?constructor-call(void test.C.<init>())", handle);
}
/*
@@ -244,6 +245,19 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
assertEquals("=BrokenHandles<p{GetInfo.java}GetInfo`declare parents!3", ipe.getHandleIdentifier());
}
+ public void testNPEIncremental_pr262218() {
+ AjdeInteractionTestbed.VERBOSE = true;
+ String p = "pr262218";
+ initialiseProject(p);
+ build(p);
+ checkWasFullBuild();
+ alter(p, "inc1");
+ build(p);
+ checkWasntFullBuild();
+ List l = getCompilerErrorMessages(p);
+ assertEquals("Unexpected compiler error", 0, l.size());
+ }
+
public void testAnnotations_pr262154() {
String p = "pr262154";
initialiseProject(p);