Search in sources :

Example 1 with StubServer

use of com.github.tomakehurst.wiremock.core.StubServer 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

Admin (com.github.tomakehurst.wiremock.core.Admin)1 StubServer (com.github.tomakehurst.wiremock.core.StubServer)1 PostServeAction (com.github.tomakehurst.wiremock.extension.PostServeAction)1 RequestFilter (com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter)1 MockHttpResponder (com.github.tomakehurst.wiremock.testsupport.MockHttpResponder)1 RequestJournal (com.github.tomakehurst.wiremock.verification.RequestJournal)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1