Skip to content

Commit 1c5b949

Browse files
committed
Fix ViewResolutionResultHandlerTests
See gh-23572
1 parent 513ce78 commit 1c5b949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ private void testSupports(MethodParameter returnType, boolean supports) {
115115
ViewResolutionResultHandler resultHandler = resultHandler(mock(ViewResolver.class));
116116
HandlerResult handlerResult = new HandlerResult(new Object(), null, returnType, this.bindingContext);
117117
if (supports) {
118-
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should be supported").isEqualTo(supports);
118+
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should be supported").isTrue();
119119
}
120120
else {
121-
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should not be supported").isNotEqualTo(supports);
121+
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should not be supported").isFalse();
122122
}
123123
}
124124

0 commit comments

Comments
 (0)