From 52e47c42752843f7df68b15b0964ca91226c5722 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 6 Jan 2021 12:33:25 -0800 Subject: [PATCH] Fix test for JSR-350 @Nonnull Closes gh-24647 --- .../endpoint/invoke/reflect/OperationMethodParameterTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java index 9818655504..d1c324b074 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java @@ -86,7 +86,8 @@ class OperationMethodParameterTests { assertThat(parameter.isMandatory()).isFalse(); } - public void isMandatoryWhenJsrNonnullAnnotationShouldReturnTrue() { + @Test + void isMandatoryWhenJsrNonnullAnnotationShouldReturnTrue() { OperationMethodParameter parameter = new OperationMethodParameter("name", this.exampleJsr305NonNull.getParameters()[1]); assertThat(parameter.isMandatory()).isTrue();