Search in sources :

Example 1 with FakeServer

use of com.github.mjeanroy.junit.servers.utils.impl.FakeServer in project junit-servers by mjeanroy.

the class AbstractEmbeddedServerTest method it_should_get_original_server_implementation.

@Test
void it_should_get_original_server_implementation() {
    final FakeEmbeddedServerConfiguration configuration = new FakeEmbeddedServerConfigurationBuilder().withPath("foo").build();
    final FakeEmbeddedServer server = new FakeEmbeddedServer(configuration);
    final FakeServer delegate = server.getDelegate();
    assertThat(delegate).isNotNull();
}
Also used : FakeServer(com.github.mjeanroy.junit.servers.utils.impl.FakeServer) FakeEmbeddedServerConfiguration(com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServerConfiguration) FakeEmbeddedServerConfigurationBuilder(com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServerConfigurationBuilder) FakeEmbeddedServer(com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServer) Test(org.junit.jupiter.api.Test)

Aggregations

FakeEmbeddedServer (com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServer)1 FakeEmbeddedServerConfiguration (com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServerConfiguration)1 FakeEmbeddedServerConfigurationBuilder (com.github.mjeanroy.junit.servers.utils.impl.FakeEmbeddedServerConfigurationBuilder)1 FakeServer (com.github.mjeanroy.junit.servers.utils.impl.FakeServer)1 Test (org.junit.jupiter.api.Test)1