aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index 968c37ae0..8e5db450f 100644
--- a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -1697,9 +1697,13 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
IProgramElement root = getModelFor(bug2).getHierarchy().getRoot();
IProgramElement binariesNode = getChild(root, "binaries");
assertNotNull(binariesNode);
- IProgramElement packageNode = binariesNode.getChildren().get(0);
- assertEquals("a.b.c", packageNode.getName());
+ IProgramElement packageNode = binariesNode.getChildren().stream()
+ .filter(programElement -> programElement.getName().equals("a.b.c"))
+ .findFirst()
+ .orElse(null);
+ assertNotNull(packageNode);
IProgramElement fileNode = packageNode.getChildren().get(0);
+ assertNotNull(fileNode);
assertEquals(IProgramElement.Kind.FILE, fileNode.getKind());
}
@@ -4015,4 +4019,4 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
}
}
-} \ No newline at end of file
+}