Fixed broken test.

This commit is contained in:
Kai Zimmermann
2016-03-29 15:37:07 +02:00
parent db12385d8d
commit 7d3d4f1fd4
2 changed files with 2 additions and 4 deletions

View File

@@ -85,9 +85,9 @@ public class PreAuthTokenSourceTrustAuthenticationProviderTest {
when(webAuthenticationDetailsMock.getRemoteAddress()).thenReturn(remoteAddress);
// test, should throw authentication exception
final Authentication authenticate = underTestWithSourceIpCheck.authenticate(token);
try {
assertThat(authenticate.isAuthenticated()).isTrue();
underTestWithSourceIpCheck.authenticate(token);
fail("as source is not trusted.");
} catch (final InsufficientAuthenticationException e) {