diff --git a/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/core/tests/internal/classpath/ClasspathResolutionTest2.java b/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/core/tests/internal/classpath/ClasspathResolutionTest2.java index 5510455dd9..b4d423fc97 100644 --- a/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/core/tests/internal/classpath/ClasspathResolutionTest2.java +++ b/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/core/tests/internal/classpath/ClasspathResolutionTest2.java @@ -601,9 +601,9 @@ record ForbiddenRef(int line, String qualifiedType, String project) { // One marker for the type access, one for the constructor List messages = atLine.stream().map(m -> m.getAttribute(IMarker.MESSAGE, "")).toList(); assertThat(messages).as("Line %d: must have type access marker for " + "%s", ref.line, ref.qualifiedType) - .anyMatch(msg -> msg.contains("The type 'MyObject' is not API")); + .anyMatch(msg -> msg.contains("The type 'MyObject' is not accessible")); assertThat(messages).as("Line %d: must have constructor access " + "marker", ref.line) - .anyMatch(msg -> msg.contains("The constructor 'MyObject()' is not " + "API")); + .anyMatch(msg -> msg.contains("The constructor 'MyObject()' is not " + "accessible")); } }