From f58cf7fbdd4039e9b8ee810b306868689276b081 Mon Sep 17 00:00:00 2001 From: Simeon Andreev Date: Sat, 28 Mar 2026 19:40:18 +0200 Subject: [PATCH] Adjust expected problem messages in ClasspathResolutionTest2 Restricted classpath rule problem messages were adjusted in the following PR: https://github.com/eclipse-jdt/eclipse.jdt.core/pull/4908 ClasspathResolutionTest2 still expects the old problem messages. This change adjusts the test to expect the new problem messages. Fixes: https://github.com/eclipse-pde/eclipse.pde/issues/2279 --- .../tests/internal/classpath/ClasspathResolutionTest2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); } }