Server.stop() is now optional because of assumption on start

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-09-10 03:40:30 -05:00
parent bec14ff870
commit 8dfa4c941a
5 changed files with 10 additions and 5 deletions

View File

@ -25,6 +25,7 @@ import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.http.HttpMethod;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.component.LifeCycle;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -59,7 +60,7 @@ public class LikeJettyXmlTest extends AbstractEmbeddedTest
@AfterEach
public void stopServer() throws Exception
{
server.stop();
LifeCycle.stop(server);
}
@Test

View File

@ -24,6 +24,7 @@ import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.http.HttpMethod;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.component.LifeCycle;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -49,7 +50,7 @@ public class OneWebAppTest extends AbstractEmbeddedTest
@AfterEach
public void stopServer() throws Exception
{
server.stop();
LifeCycle.stop(server);
}
@Test

View File

@ -24,6 +24,7 @@ import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.http.HttpMethod;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.component.LifeCycle;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -53,7 +54,7 @@ public class OneWebAppWithJspTest extends AbstractEmbeddedTest
@AfterEach
public void stopServer() throws Exception
{
server.stop();
LifeCycle.stop(server);
}
@Test

View File

@ -23,6 +23,7 @@ import java.net.URI;
import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.component.LifeCycle;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -49,7 +50,7 @@ public class ServerWithAnnotationsTest extends AbstractEmbeddedTest
@AfterEach
public void stopServer() throws Exception
{
server.stop();
LifeCycle.stop(server);
}
@Test

View File

@ -23,6 +23,7 @@ import java.net.URI;
import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.component.LifeCycle;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -50,7 +51,7 @@ public class ServerWithJNDITest extends AbstractEmbeddedTest
@AfterEach
public void stopServer() throws Exception
{
server.stop();
LifeCycle.stop(server);
}
@Test