- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ArrayList a =
new ArrayList<String>()
new ArrayList()
new ArrayList<Object>()
- Smart code suggestions by Codota
}
@Test public void testLoginExceptionResolver() { assertThat(jaasProvider.getLoginExceptionResolver()).isNotNull(); jaasProvider.setLoginExceptionResolver(new LoginExceptionResolver() { public AuthenticationException resolveException(LoginException e) { return new LockedException("This is just a test!"); } }); try { jaasProvider.authenticate(new UsernamePasswordAuthenticationToken("user", "password")); } catch (LockedException e) { } catch (Exception e) { fail("LockedException should have been thrown and caught"); } }