Skip to content

Commit 690f962

Browse files
mickaelistriarobstryker
authored andcommitted
Match UndefinedAnnotationMember in tests
1 parent f4d1cc8 commit 690f962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ConverterTestSetup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,8 @@ private boolean matchesAlternateMessage(String original, String expected, int pr
10641064
return false;
10651065
case IProblem.NotAnnotationType:
10661066
return (arguments[0] + " is not an annotation type").equals(expected);
1067+
case IProblem.UndefinedAnnotationMember:
1068+
return ("The attribute " + arguments[0] + " is undefined for the annotation type " + arguments[3]).replaceAll("@interface ", "").equals(expected);
10671069
case IProblem.Syntax:
10681070
return original.equals(switch (expected) {
10691071
case "Syntax error, insert \"Finally\" to complete BlockStatements" -> "'try' without 'catch', 'finally' or resource declarations";

0 commit comments

Comments
 (0)