Search in sources :

Example 1 with RequestFilter

use of com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter in project wiremock by wiremock.

the class JettyHttpServerTest method init.

@BeforeEach
public void init() {
    Admin admin = Mockito.mock(Admin.class);
    adminRequestHandler = new AdminRequestHandler(AdminRoutes.defaults(), admin, new BasicResponseRenderer(), new NoAuthenticator(), false, Collections.<RequestFilter>emptyList());
    stubRequestHandler = new StubRequestHandler(Mockito.mock(StubServer.class), Mockito.mock(ResponseRenderer.class), admin, Collections.<String, PostServeAction>emptyMap(), Mockito.mock(RequestJournal.class), Collections.<RequestFilter>emptyList(), false);
}
Also used : NoAuthenticator(com.github.tomakehurst.wiremock.security.NoAuthenticator) StubRequestHandler(com.github.tomakehurst.wiremock.http.StubRequestHandler) PostServeAction(com.github.tomakehurst.wiremock.extension.PostServeAction) AdminRequestHandler(com.github.tomakehurst.wiremock.http.AdminRequestHandler) BasicResponseRenderer(com.github.tomakehurst.wiremock.http.BasicResponseRenderer) Admin(com.github.tomakehurst.wiremock.core.Admin) RequestFilter(com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with RequestFilter

use of com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter in project wiremock by wiremock.

the class AdminRequestHandlerTest method init.

@BeforeEach
public void init() {
    httpResponder = new MockHttpResponder();
    handler = new AdminRequestHandler(AdminRoutes.defaults(), admin, new BasicResponseRenderer(), new NoAuthenticator(), false, Collections.<RequestFilter>emptyList());
}
Also used : NoAuthenticator(com.github.tomakehurst.wiremock.security.NoAuthenticator) AdminRequestHandler(com.github.tomakehurst.wiremock.http.AdminRequestHandler) BasicResponseRenderer(com.github.tomakehurst.wiremock.http.BasicResponseRenderer) MockHttpResponder(com.github.tomakehurst.wiremock.testsupport.MockHttpResponder) RequestFilter(com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with RequestFilter

use of com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter in project wiremock by wiremock.

the class StubRequestHandlerTest method init.

@BeforeEach
public void init() {
    stubServer = mock(StubServer.class);
    responseRenderer = mock(ResponseRenderer.class);
    httpResponder = new MockHttpResponder();
    admin = mock(Admin.class);
    requestJournal = mock(RequestJournal.class);
    requestHandler = new StubRequestHandler(stubServer, responseRenderer, admin, Collections.<String, PostServeAction>emptyMap(), requestJournal, Collections.<RequestFilter>emptyList(), false);
}
Also used : RequestJournal(com.github.tomakehurst.wiremock.verification.RequestJournal) StubServer(com.github.tomakehurst.wiremock.core.StubServer) PostServeAction(com.github.tomakehurst.wiremock.extension.PostServeAction) CoreMatchers.containsString(org.hamcrest.CoreMatchers.containsString) MockHttpResponder(com.github.tomakehurst.wiremock.testsupport.MockHttpResponder) Admin(com.github.tomakehurst.wiremock.core.Admin) RequestFilter(com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

RequestFilter (com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter)3 BeforeEach (org.junit.jupiter.api.BeforeEach)3 Admin (com.github.tomakehurst.wiremock.core.Admin)2 PostServeAction (com.github.tomakehurst.wiremock.extension.PostServeAction)2 AdminRequestHandler (com.github.tomakehurst.wiremock.http.AdminRequestHandler)2 BasicResponseRenderer (com.github.tomakehurst.wiremock.http.BasicResponseRenderer)2 NoAuthenticator (com.github.tomakehurst.wiremock.security.NoAuthenticator)2 MockHttpResponder (com.github.tomakehurst.wiremock.testsupport.MockHttpResponder)2 StubServer (com.github.tomakehurst.wiremock.core.StubServer)1 StubRequestHandler (com.github.tomakehurst.wiremock.http.StubRequestHandler)1 RequestJournal (com.github.tomakehurst.wiremock.verification.RequestJournal)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1