Search in sources :

Example 1 with ApiSessionReduceIdleTimeoutFilter

use of com.thoughtworks.go.server.newsecurity.filters.ApiSessionReduceIdleTimeoutFilter in project gocd by gocd.

the class CreateSessionFilterChainTest method setUp.

@BeforeEach
void setUp() throws Exception {
    response = new MockHttpServletResponse();
    request = new MockHttpServletRequest();
    apiSessionReduceIdleTimeoutFilter = spy(new ApiSessionReduceIdleTimeoutFilter(new SystemEnvironment()));
    agentSessionReduceIdleTimeoutFilter = spy(new AgentSessionReduceIdleTimeoutFilter(new SystemEnvironment()));
    alwaysCreateSessionFilter = spy(new AlwaysCreateSessionFilter());
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) AgentSessionReduceIdleTimeoutFilter(com.thoughtworks.go.server.newsecurity.filters.AgentSessionReduceIdleTimeoutFilter) MockHttpServletRequest(com.thoughtworks.go.http.mocks.MockHttpServletRequest) ApiSessionReduceIdleTimeoutFilter(com.thoughtworks.go.server.newsecurity.filters.ApiSessionReduceIdleTimeoutFilter) AlwaysCreateSessionFilter(com.thoughtworks.go.server.newsecurity.filters.AlwaysCreateSessionFilter) MockHttpServletResponse(com.thoughtworks.go.http.mocks.MockHttpServletResponse) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MockHttpServletRequest (com.thoughtworks.go.http.mocks.MockHttpServletRequest)1 MockHttpServletResponse (com.thoughtworks.go.http.mocks.MockHttpServletResponse)1 AgentSessionReduceIdleTimeoutFilter (com.thoughtworks.go.server.newsecurity.filters.AgentSessionReduceIdleTimeoutFilter)1 AlwaysCreateSessionFilter (com.thoughtworks.go.server.newsecurity.filters.AlwaysCreateSessionFilter)1 ApiSessionReduceIdleTimeoutFilter (com.thoughtworks.go.server.newsecurity.filters.ApiSessionReduceIdleTimeoutFilter)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1