Search in sources :

Example 1 with TicketRegistrySupport

use of org.apereo.cas.ticket.registry.TicketRegistrySupport in project cas by apereo.

the class VerifyRequiredServiceActionTests method onSetUp.

@BeforeEach
public void onSetUp() {
    this.ticketRegistrySupport = mock(TicketRegistrySupport.class);
    this.verifyRequiredServiceAction = new VerifyRequiredServiceAction(getServicesManager(), getTicketGrantingTicketCookieGenerator(), casProperties, ticketRegistrySupport);
    val response = new MockHttpServletResponse();
    this.requestContext = new MockRequestContext();
    this.httpRequest = new MockHttpServletRequest();
    this.requestContext.setExternalContext(new ServletExternalContext(new MockServletContext(), this.httpRequest, response));
}
Also used : lombok.val(lombok.val) MockHttpServletRequest(org.springframework.mock.web.MockHttpServletRequest) ServletExternalContext(org.springframework.webflow.context.servlet.ServletExternalContext) TicketRegistrySupport(org.apereo.cas.ticket.registry.TicketRegistrySupport) VerifyRequiredServiceAction(org.apereo.cas.web.flow.login.VerifyRequiredServiceAction) MockRequestContext(org.springframework.webflow.test.MockRequestContext) MockHttpServletResponse(org.springframework.mock.web.MockHttpServletResponse) MockServletContext(org.springframework.mock.web.MockServletContext) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

lombok.val (lombok.val)1 TicketRegistrySupport (org.apereo.cas.ticket.registry.TicketRegistrySupport)1 VerifyRequiredServiceAction (org.apereo.cas.web.flow.login.VerifyRequiredServiceAction)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)1 MockServletContext (org.springframework.mock.web.MockServletContext)1 ServletExternalContext (org.springframework.webflow.context.servlet.ServletExternalContext)1 MockRequestContext (org.springframework.webflow.test.MockRequestContext)1