Browse Source

Fix ViewResolutionResultHandlerTests

See gh-23572
pull/23580/head
Sam Brannen 5 years ago
parent
commit
1c5b949df0
  1. 4
      spring-webflux/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java

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

@ -115,10 +115,10 @@ public class ViewResolutionResultHandlerTests { @@ -115,10 +115,10 @@ public class ViewResolutionResultHandlerTests {
ViewResolutionResultHandler resultHandler = resultHandler(mock(ViewResolver.class));
HandlerResult handlerResult = new HandlerResult(new Object(), null, returnType, this.bindingContext);
if (supports) {
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should be supported").isEqualTo(supports);
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should be supported").isTrue();
}
else {
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should not be supported").isNotEqualTo(supports);
assertThat(resultHandler.supports(handlerResult)).as("return type [" + returnType + "] should not be supported").isFalse();
}
}

Loading…
Cancel
Save