Search in sources :

Example 11 with ConsoleNotifier

use of com.github.tomakehurst.wiremock.common.ConsoleNotifier in project wiremock by wiremock.

the class HandlebarsJsonPathHelperTest method init.

@BeforeEach
public void init() {
    helper = new HandlebarsJsonPathHelper();
    LocalNotifier.set(new ConsoleNotifier(true));
}
Also used : ConsoleNotifier(com.github.tomakehurst.wiremock.common.ConsoleNotifier) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 12 with ConsoleNotifier

use of com.github.tomakehurst.wiremock.common.ConsoleNotifier in project wiremock by wiremock.

the class HostnameHelperTest method init.

@BeforeEach
public void init() throws UnknownHostException {
    helper = new HostnameHelper();
    hostname = InetAddress.getLocalHost().getHostName();
    LocalNotifier.set(new ConsoleNotifier(true));
}
Also used : ConsoleNotifier(com.github.tomakehurst.wiremock.common.ConsoleNotifier) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 13 with ConsoleNotifier

use of com.github.tomakehurst.wiremock.common.ConsoleNotifier in project wiremock by wiremock.

the class RegexExtractHelperTest method init.

@BeforeEach
public void init() {
    helper = new RegexExtractHelper();
    LocalNotifier.set(new ConsoleNotifier(true));
}
Also used : ConsoleNotifier(com.github.tomakehurst.wiremock.common.ConsoleNotifier) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 14 with ConsoleNotifier

use of com.github.tomakehurst.wiremock.common.ConsoleNotifier in project wiremock by wiremock.

the class SystemValueHelperTest method init.

@BeforeEach
public void init() {
    helper = new SystemValueHelper(new SystemKeyAuthoriser(ImmutableSet.of(".*")));
    LocalNotifier.set(new ConsoleNotifier(true));
}
Also used : ConsoleNotifier(com.github.tomakehurst.wiremock.common.ConsoleNotifier) SystemKeyAuthoriser(com.github.tomakehurst.wiremock.extension.responsetemplating.SystemKeyAuthoriser) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 15 with ConsoleNotifier

use of com.github.tomakehurst.wiremock.common.ConsoleNotifier in project wiremock by wiremock.

the class EqualToXmlPatternTest method init.

@BeforeEach
public void init() {
    LocalNotifier.set(new ConsoleNotifier(true));
    // We assert English XML parser error messages in this test. So we set our default locale to
    // English to make
    // this test succeed even for users with non-English default locales.
    Locale.setDefault(Locale.ENGLISH);
}
Also used : ConsoleNotifier(com.github.tomakehurst.wiremock.common.ConsoleNotifier) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ConsoleNotifier (com.github.tomakehurst.wiremock.common.ConsoleNotifier)20 WireMockServer (com.github.tomakehurst.wiremock.WireMockServer)9 BeforeEach (org.junit.jupiter.api.BeforeEach)8 BeforeAll (org.junit.jupiter.api.BeforeAll)7 GsonDecoder (feign.gson.GsonDecoder)5 Slf4jLogger (feign.slf4j.Slf4jLogger)5 GsonEncoder (feign.gson.GsonEncoder)4 OkHttpClient (feign.okhttp.OkHttpClient)3 Test (org.junit.jupiter.api.Test)3 ResponseTemplateTransformer (com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer)2 WireMockResponse (com.github.tomakehurst.wiremock.testsupport.WireMockResponse)2 SystemKeyAuthoriser (com.github.tomakehurst.wiremock.extension.responsetemplating.SystemKeyAuthoriser)1 CustomErrorDecode (es.home.example.feignexample.customize.CustomErrorDecode)1 CustomTokenGeneratorInterceptor (es.home.example.feignexample.customize.CustomTokenGeneratorInterceptor)1 Request (feign.Request)1 Credentials (io.jenkins.tools.pluginmanager.config.Credentials)1 File (java.io.File)1 Server (org.eclipse.jetty.server.Server)1 ServerConnector (org.eclipse.jetty.server.ServerConnector)1 HandlerCollection (org.eclipse.jetty.server.handler.HandlerCollection)1