SEC-2002: Polishing

This commit is contained in:
Rob Winch
2013-06-06 15:05:00 -05:00
parent d89ace26ab
commit 7bc87cf13b
2 changed files with 19 additions and 0 deletions

View File

@@ -103,4 +103,14 @@ public class ConcurrentSessionControlStrategyTests {
assertEquals(request.getSession().getId(), event.getNewSessionId());
assertSame(authentication, event.getAuthentication());
}
@Test(expected=IllegalArgumentException.class)
public void setApplicationEventPublisherForbidsNulls() {
strategy.setApplicationEventPublisher(null);
}
@Test
public void onAuthenticationNoExceptionWhenRequireApplicationEventPublisherSet() {
strategy.onAuthentication(authentication, request, response);
}
}