use of org.simbasecurity.core.chain.ChainImpl in project simba-os by cegeka.
the class AuthenticationFilterServiceImplTest method testProcessRequest.
@Test
public void testProcessRequest() throws Exception {
Session sessionMock = mock(Session.class);
when(sessionServiceMock.getSession(any(SSOToken.class))).thenReturn(sessionMock);
ChainImpl authenticationChainMock = mock(ChainImpl.class);
when(applicationContext.getBean("authenticationChain")).thenReturn(authenticationChainMock);
serviceImpl.processRequest(new RequestData(null, null, null, null, null, null, false, false, false, false, false, null, null, "loginToken", null), "authenticationChain");
verify(authenticationChainMock).execute(any(ChainContext.class));
}
Aggregations