SEC-2103: Fix tests to verify debug logging instead of info

This commit is contained in:
Rob Winch 2013-08-25 10:05:22 -05:00
parent acb2b680d0
commit 534989c8ea
1 changed files with 3 additions and 3 deletions

View File

@ -123,12 +123,12 @@ public class JdbcTokenRepositoryImplTests {
// SEC-1964
@Test
public void retrievingTokenWithNoSeriesReturnsNull() {
when(logger.isInfoEnabled()).thenReturn(true);
when(logger.isDebugEnabled()).thenReturn(true);
assertNull(repo.getTokenForSeries("missingSeries"));
verify(logger).isInfoEnabled();
verify(logger).info(eq("Querying token for series 'missingSeries' returned no results."),
verify(logger).isDebugEnabled();
verify(logger).debug(eq("Querying token for series 'missingSeries' returned no results."),
any(EmptyResultDataAccessException.class));
verifyNoMoreInteractions(logger);
}