Browse Source

innertype intertype

tags/V1_6_11M1
aclement 13 years ago
parent
commit
4e62f84574

+ 2
- 2
tests/model/expected/pr141730_4.txt View File

@@ -23,10 +23,10 @@
NewClass [class] TEST_SANDBOX\NewClass.java:3:
=== END OF MODEL REPORT =========
=== RELATIONSHIPS REPORT ========= After a batch build
(targets=1) <bar*MyBar.aj'MyBar`declare parents (declared on) /,<foo(MyFoo.class[MyFoo
(targets=1) <bar*MyBar.aj'MyBar`declare \@type (annotates) {MyFoo.java
(targets=1) {MyFoo.java (annotated by) <bar*MyBar.aj'MyBar`declare \@type
(targets=1) /,<foo(MyFoo.class[MyFoo (aspect declarations) <bar*MyBar.aj'MyBar`declare parents
(targets=1) <bar*MyBar.aj'MyBar`declare parents (declared on) /;<foo(MyFoo.class[MyFoo
(targets=1) /;<foo(MyFoo.class[MyFoo (aspect declarations) <bar*MyBar.aj'MyBar`declare parents
=== END OF RELATIONSHIPS REPORT ==
=== Properties of the model and relationships map =====
import reference=4

+ 15
- 15
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java View File

@@ -103,15 +103,15 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
checkWasntFullBuild();
}

// public void testIncrementalITDInners() throws Exception {
// String p = "prInner";
// initialiseProject(p);
// build(p);
// checkWasFullBuild();
// alter(p, "inc1");
// build(p);
// checkWasntFullBuild();
// }
public void testIncrementalITDInners() throws Exception {
String p = "prInner";
initialiseProject(p);
build(p);
checkWasFullBuild();
alter(p, "inc1");
build(p);
checkWasntFullBuild();
}

/*
* public void testIncrementalAspectWhitespace() throws Exception { AjdeInteractionTestbed.VERBOSE = true; String p = "xxx";
@@ -3668,7 +3668,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
pw.flush();
} catch (Exception e) {
}
List l = getModelFor(p).getRelationshipMap().get("=inpathHandles/,<codep(Code.class[Code");
List l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code");
assertNotNull(l);
}

@@ -3689,7 +3689,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa

// This build will weave a declare parents into the inpath class codep.Code
build(p);
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/,<codep(Code.class[Code"));
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code"));

IProgramElement root = getModelFor(p).getHierarchy().getRoot();

@@ -3697,7 +3697,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
// damage phantom handle based relationships
alter(p, "inc1");
build(p);
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/,<codep(Code.class[Code"));
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code"));
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles<p{B.java[B"));

// This alteration removes B.java, the build should not damage phantom handle based relationships
@@ -3705,7 +3705,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
+ File.separatorChar + "p" + File.separatorChar + "B.java";
(new File(fileB)).delete();
build(p);
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/,<codep(Code.class[Code"));
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code"));
assertNull(getModelFor(p).getRelationshipMap().get("=inpathHandles<p{B.java[B"));
}

@@ -3741,7 +3741,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
pw.flush();
} catch (Exception e) {
}
List<IRelationship> l = getModelFor(p).getRelationshipMap().get("=inpathHandles/,wibble<codep(Code.class[Code");
List<IRelationship> l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;wibble<codep(Code.class[Code");
assertNotNull(l);
}

@@ -3770,7 +3770,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa

// This build will weave a declare parents into the inpath class codep.A and codep.B
build(p);
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles2/,<codep(A.class[A"));
assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles2/;<codep(A.class[A"));

// Not let us delete one of the inpath .class files
assertTrue(new File(inpathDir, "codep" + File.separator + "A.class").delete());

Loading…
Cancel
Save