Search in sources :

Example 1 with Scheduler

use of org.mockserver.scheduler.Scheduler in project mockserver by mock-server.

the class MockServerMatcherBasicResponsesTest method prepareTestFixture.

@Before
public void prepareTestFixture() {
    Scheduler scheduler = mock(Scheduler.class);
    WebSocketClientRegistry webSocketClientRegistry = mock(WebSocketClientRegistry.class);
    requestMatchers = new RequestMatchers(configuration(), new MockServerLogger(), scheduler, webSocketClientRegistry);
}
Also used : MockServerLogger(org.mockserver.logging.MockServerLogger) Scheduler(org.mockserver.scheduler.Scheduler) WebSocketClientRegistry(org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry) Before(org.junit.Before)

Example 2 with Scheduler

use of org.mockserver.scheduler.Scheduler in project mockserver by mock-server.

the class MockServerMatcherClearAndResetTest method prepareTestFixture.

@Before
public void prepareTestFixture() {
    configuration = configuration();
    mockServerLogger = new MockServerLogger();
    WebSocketClientRegistry webSocketClientRegistry = mock(WebSocketClientRegistry.class);
    requestMatchers = new RequestMatchers(configuration(), mockServerLogger, new Scheduler(configuration(), mockServerLogger, true), webSocketClientRegistry);
}
Also used : MockServerLogger(org.mockserver.logging.MockServerLogger) Scheduler(org.mockserver.scheduler.Scheduler) WebSocketClientRegistry(org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry) Before(org.junit.Before)

Example 3 with Scheduler

use of org.mockserver.scheduler.Scheduler in project mockserver by mock-server.

the class MockServerMatcherNotificationAndMetricsTest method createScheduler.

@BeforeClass
public static void createScheduler() {
    mockServerLogger = new MockServerLogger();
    scheduler = new Scheduler(configuration(), mockServerLogger);
    ConfigurationProperties.metricsEnabled(true);
}
Also used : MockServerLogger(org.mockserver.logging.MockServerLogger) Scheduler(org.mockserver.scheduler.Scheduler) BeforeClass(org.junit.BeforeClass)

Example 4 with Scheduler

use of org.mockserver.scheduler.Scheduler in project mockserver by mock-server.

the class MockServerMatcherSequentialResponsesTest method prepareTestFixture.

@Before
public void prepareTestFixture() {
    MockServerLogger mockLogFormatter = mock(MockServerLogger.class);
    Scheduler scheduler = mock(Scheduler.class);
    WebSocketClientRegistry webSocketClientRegistry = mock(WebSocketClientRegistry.class);
    requestMatchers = new RequestMatchers(configuration(), mockLogFormatter, scheduler, webSocketClientRegistry);
}
Also used : MockServerLogger(org.mockserver.logging.MockServerLogger) Scheduler(org.mockserver.scheduler.Scheduler) WebSocketClientRegistry(org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry) Before(org.junit.Before)

Example 5 with Scheduler

use of org.mockserver.scheduler.Scheduler in project mockserver by mock-server.

the class ExpectationFileSystemPersistenceTest method createMockServerMatcher.

@Before
public void createMockServerMatcher() {
    mockServerLogger = new MockServerLogger();
    requestMatchers = new RequestMatchers(configuration(), mockServerLogger, new Scheduler(configuration(), mockServerLogger), new WebSocketClientRegistry(configuration(), mockServerLogger));
}
Also used : MockServerLogger(org.mockserver.logging.MockServerLogger) RequestMatchers(org.mockserver.mock.RequestMatchers) Scheduler(org.mockserver.scheduler.Scheduler) WebSocketClientRegistry(org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry) Before(org.junit.Before)

Aggregations

MockServerLogger (org.mockserver.logging.MockServerLogger)13 Scheduler (org.mockserver.scheduler.Scheduler)13 Before (org.junit.Before)11 WebSocketClientRegistry (org.mockserver.closurecallback.websocketregistry.WebSocketClientRegistry)7 HttpState (org.mockserver.mock.HttpState)4 RequestMatchers (org.mockserver.mock.RequestMatchers)3 HttpActionHandler (org.mockserver.mock.action.http.HttpActionHandler)2 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)2 TextWebSocketFrame (io.netty.handler.codec.http.websocketx.TextWebSocketFrame)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1 BeforeClass (org.junit.BeforeClass)1 MockServerEventLog (org.mockserver.log.MockServerEventLog)1 LogEntry (org.mockserver.log.model.LogEntry)1