Skip to content

Commit 52e47c4

Browse files
committed
Fix test for JSR-350 @nonnull
Closes gh-24647
1 parent 848ed65 commit 52e47c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void isMandatoryWhenJsrMetaNullableAnnotationShouldReturnFalse() {
8686
assertThat(parameter.isMandatory()).isFalse();
8787
}
8888

89-
public void isMandatoryWhenJsrNonnullAnnotationShouldReturnTrue() {
89+
@Test
90+
void isMandatoryWhenJsrNonnullAnnotationShouldReturnTrue() {
9091
OperationMethodParameter parameter = new OperationMethodParameter("name",
9192
this.exampleJsr305NonNull.getParameters()[1]);
9293
assertThat(parameter.isMandatory()).isTrue();

0 commit comments

Comments
 (0)