From 04498787f71678fc2d486bb1ffc04ffaef3c1e17 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 7 Dec 2010 19:28:39 +0000 Subject: [PATCH] fixing linux tests --- .../tools/MultiProjectIncrementalTests.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index b33728f9e..68fdb4931 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -38,11 +38,13 @@ import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager; import org.aspectj.asm.AsmManager; import org.aspectj.asm.IHierarchy; import org.aspectj.asm.IProgramElement; +import org.aspectj.asm.IProgramElement.Kind; import org.aspectj.asm.IRelationship; import org.aspectj.asm.IRelationshipMap; import org.aspectj.asm.internal.ProgramElement; import org.aspectj.asm.internal.Relationship; import org.aspectj.bridge.IMessage; +import org.aspectj.bridge.ISourceLocation; import org.aspectj.bridge.Message; import org.aspectj.tools.ajc.Ajc; import org.aspectj.util.FileUtil; @@ -1225,10 +1227,9 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa IProgramElement root = getModelFor(p).getHierarchy().getRoot(); // Looking for 'package p.q' - IProgramElement ipe = findElementAtLine(root, 1); - ipe = ipe.getChildren().get(0); // package decl is - // first entry in - // the type + IProgramElement ipe = findFile(root, "Example.aj");// findElementAtLine(root, 1); + ipe = ipe.getChildren().get(0); // type decl is first thing inside file + ipe = ipe.getChildren().get(0); // package decl is first entry in the type System.out.println(ipe.getHandleIdentifier() + " " + ipe.getKind()); assertEquals(IProgramElement.Kind.PACKAGE_DECLARATION, ipe.getKind()); assertEquals("=Imports