Skip to content

Commit 88552db

Browse files
trancexpressHannesWell
authored andcommitted
Adjust expected problem messages in ClasspathResolutionTest2
Restricted classpath rule problem messages were adjusted in the following PR: eclipse-jdt/eclipse.jdt.core#4908 ClasspathResolutionTest2 still expects the old problem messages. This change adjusts the test to expect the new problem messages. Fixes: #2279
1 parent b51e34b commit 88552db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/core/tests/internal/classpath/ClasspathResolutionTest2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,9 @@ record ForbiddenRef(int line, String qualifiedType, String project) {
601601
// One marker for the type access, one for the constructor
602602
List<String> messages = atLine.stream().map(m -> m.getAttribute(IMarker.MESSAGE, "")).toList();
603603
assertThat(messages).as("Line %d: must have type access marker for " + "%s", ref.line, ref.qualifiedType)
604-
.anyMatch(msg -> msg.contains("The type 'MyObject' is not API"));
604+
.anyMatch(msg -> msg.contains("The type 'MyObject' is not accessible"));
605605
assertThat(messages).as("Line %d: must have constructor access " + "marker", ref.line)
606-
.anyMatch(msg -> msg.contains("The constructor 'MyObject()' is not " + "API"));
606+
.anyMatch(msg -> msg.contains("The constructor 'MyObject()' is not " + "accessible"));
607607
}
608608
}
609609

0 commit comments

Comments
 (0)