mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
SEC-2103: Fix tests to verify debug logging instead of info
This commit is contained in:
parent
889bba1d67
commit
8053cb0de7
@ -123,12 +123,12 @@ public class JdbcTokenRepositoryImplTests {
|
|||||||
// SEC-1964
|
// SEC-1964
|
||||||
@Test
|
@Test
|
||||||
public void retrievingTokenWithNoSeriesReturnsNull() {
|
public void retrievingTokenWithNoSeriesReturnsNull() {
|
||||||
when(logger.isInfoEnabled()).thenReturn(true);
|
when(logger.isDebugEnabled()).thenReturn(true);
|
||||||
|
|
||||||
assertNull(repo.getTokenForSeries("missingSeries"));
|
assertNull(repo.getTokenForSeries("missingSeries"));
|
||||||
|
|
||||||
verify(logger).isInfoEnabled();
|
verify(logger).isDebugEnabled();
|
||||||
verify(logger).info(eq("Querying token for series 'missingSeries' returned no results."),
|
verify(logger).debug(eq("Querying token for series 'missingSeries' returned no results."),
|
||||||
any(EmptyResultDataAccessException.class));
|
any(EmptyResultDataAccessException.class));
|
||||||
verifyNoMoreInteractions(logger);
|
verifyNoMoreInteractions(logger);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user