SEC-2103: Fix tests to verify debug logging instead of info
This commit is contained in:
parent
acb2b680d0
commit
534989c8ea
|
@ -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…
Reference in New Issue