@Test public void testCanHandle_when_event_unmatch() { AuthenticationFailureBadCredentialsEvent event=mock(AuthenticationFailureBadCredentialsEvent.class); assertEquals(loginSuccessEventListener.canHandle(event),false); }
@Override public boolean canHandle(Object event) { return event instanceof AuthenticationSuccessEvent; }
LoginSuccessEventListener extends EventListener { @Override public boolean canHandle(Object event) { return event instanceof AuthenticationSuccessEvent; } }
LoginSuccessEventListener extends EventListener { @Override public boolean canHandle(Object event) { return event instanceof AuthenticationSuccessEvent; } LoginSuccessEventListener(EventService eventService,
			UsersRepository usersRepository); }
LoginSuccessEventListener extends EventListener { @Override public boolean canHandle(Object event) { return event instanceof AuthenticationSuccessEvent; } LoginSuccessEventListener(EventService eventService,
			UsersRepository usersRepository); @Override boolean canHandle(Object event); @Override void handle(Object event); }
LoginSuccessEventListener extends EventListener { @Override public boolean canHandle(Object event) { return event instanceof AuthenticationSuccessEvent; } LoginSuccessEventListener(EventService eventService,
			UsersRepository usersRepository); @Override boolean canHandle(Object event); @Override void handle(Object event);  }