use of org.apereo.cas.services.DefaultServicesManager in project cas by apereo.
the class LogoutActionTests method onSetUp.
@Before
public void onSetUp() throws Exception {
this.request = new MockHttpServletRequest();
this.requestContext = mock(RequestContext.class);
final ServletExternalContext servletExternalContext = mock(ServletExternalContext.class);
when(this.requestContext.getExternalContext()).thenReturn(servletExternalContext);
when(servletExternalContext.getNativeRequest()).thenReturn(request);
when(servletExternalContext.getNativeResponse()).thenReturn(new MockHttpServletResponse());
when(this.requestContext.getFlowScope()).thenReturn(new LocalAttributeMap());
this.serviceManager = new DefaultServicesManager(new InMemoryServiceRegistry());
this.serviceManager.load();
}
Aggregations