aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2009-03-23 16:27:03 +0000
committeraclement <aclement>2009-03-23 16:27:03 +0000
commiteba0bb196cc37181c39598216df43c2032b2f746 (patch)
treef0a97b8f85b58192bd483e41604a7c79cc6fae2a /tests
parentaaa62a3a7e7ce6bb0d8e88d75d2b4ac2fb01844f (diff)
downloadaspectj-eba0bb196cc37181c39598216df43c2032b2f746.tar.gz
aspectj-eba0bb196cc37181c39598216df43c2032b2f746.zip
265693: model for binary elements
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index f40879d4e..184306f8a 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -995,6 +995,24 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
assertEquals("=AspectPathTwo/binaries<(Asp2.class}Asp2&before", findElementAtLine(root, 16).getHandleIdentifier());
}
+ public void testAspectPath_pr265693() throws IOException {
+ String bug = "AspectPath3";
+ String bug2 = "AspectPath4";
+ addSourceFolderForSourceFile(bug2, getProjectRelativePath(bug2, "src/C.java"), "src");
+ initialiseProject(bug);
+ initialiseProject(bug2);
+ configureAspectPath(bug2, getProjectRelativePath(bug, "bin"));
+ build(bug);
+ build(bug2);
+ dumptree(getModelFor(bug2).getHierarchy().getRoot(), 0);
+ PrintWriter pw = new PrintWriter(System.out);
+ getModelFor(bug2).dumprels(pw);
+ pw.flush();
+ IProgramElement root = getModelFor(bug2).getHierarchy().getRoot();
+ assertEquals("=AspectPath4/binaries<pkg(Asp.class}Asp&before", findElementAtLine(root, 5).getHandleIdentifier());
+ assertEquals("=AspectPath4/binaries<(Asp2.class}Asp2&before", findElementAtLine(root, 16).getHandleIdentifier());
+ }
+
/**
* A change is made to an aspect on the aspectpath (staticinitialization() advice is added) for another project.
* <p>