Use assertThat instead of Java assert

Fix `DefaultSavedRequestMixinTests` so that `assertThat` is used rather
than Java's `assert` keyword.

Issue gh-8945
This commit is contained in:
Phillip Webb 2020-08-04 15:10:55 -07:00 committed by Rob Winch
parent 1e840cc854
commit ef8f113619
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class DefaultSavedRequestMixinTests extends AbstractMixinTests {
MockHttpServletRequest mockRequest = new MockHttpServletRequest();
mockRequest.setCookies(new Cookie("SESSION", "123456789"));
mockRequest.addHeader("x-auth-token", "12");
assert request.doesRequestMatch(mockRequest, new PortResolverImpl());
assertThat(request.doesRequestMatch(mockRequest, new PortResolverImpl())).isTrue();
}
@Test