Aligh test data with JDK 15 reflection output
This commit is contained in:
@@ -32,7 +32,7 @@ fun check(clazz: Class<*>, expected: Boolean = true) {
|
||||
assertTrue(Modifier.isStatic(method.modifiers))
|
||||
assertTrue(Modifier.isPublic(method.modifiers))
|
||||
val str = method.declaredAnnotations.single().toString()
|
||||
assertTrue("@test.Anno\\(value=\"?OK\"?\\)".toRegex().matches(str), str)
|
||||
assertTrue("@test.Anno\\((value=)?\"?OK\"?\\)".toRegex().matches(str), str)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user