Search in sources :

Example 1 with MockHttpResponder

use of com.github.tomakehurst.wiremock.testsupport.MockHttpResponder 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 2 with MockHttpResponder

use of com.github.tomakehurst.wiremock.testsupport.MockHttpResponder 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)2 MockHttpResponder (com.github.tomakehurst.wiremock.testsupport.MockHttpResponder)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 Admin (com.github.tomakehurst.wiremock.core.Admin)1 StubServer (com.github.tomakehurst.wiremock.core.StubServer)1 PostServeAction (com.github.tomakehurst.wiremock.extension.PostServeAction)1 AdminRequestHandler (com.github.tomakehurst.wiremock.http.AdminRequestHandler)1 BasicResponseRenderer (com.github.tomakehurst.wiremock.http.BasicResponseRenderer)1 NoAuthenticator (com.github.tomakehurst.wiremock.security.NoAuthenticator)1 RequestJournal (com.github.tomakehurst.wiremock.verification.RequestJournal)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1