zemiles commented on code in PR #1810:
URL: https://github.com/apache/commons-lang/pull/1810#discussion_r4230704354
##########
src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java:
##########
@@ -519,4 +593,16 @@ void testToString() {
});
}
+ @Test
+ void testToStringWithRunnable() {
+ final RunnableAnnotation annotation =
AnnotatedClass.class.getAnnotation(RunnableAnnotation.class);
+ assertEquals("@" + RunnableAnnotation.class.getName() +
"(value=member)", AnnotationUtils.toString(annotation));
+ }
+
+ @Test
+ void testToStringWithSupplier() {
+ final SupplierAnnotation annotation =
AnnotatedClass.class.getAnnotation(SupplierAnnotation.class);
+ assertEquals("@" + SupplierAnnotation.class.getName() +
"(value=member)", AnnotationUtils.toString(annotation));
+ }
+
Review Comment:
Addressed by @garydgregory in 5dcd1d2. I've pulled the commit and verified
that the test passes on Java 21.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]