Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ record ForbiddenRef(int line, String qualifiedType, String project) {
// One marker for the type access, one for the constructor
List<String> 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"));
}
}

Expand Down
Loading