357240 fixed client tests
This commit is contained in:
parent
f73a6422f0
commit
a531fbc5a2
|
@ -15,6 +15,7 @@ package org.eclipse.jetty.client;
|
|||
|
||||
import org.eclipse.jetty.client.helperClasses.AsyncSslServerAndClientCreator;
|
||||
import org.eclipse.jetty.client.helperClasses.ServerAndClientCreator;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -22,8 +23,8 @@ public class AsyncSslHttpExchangeTest extends SslHttpExchangeTest
|
|||
{
|
||||
private static ServerAndClientCreator serverAndClientCreator = new AsyncSslServerAndClientCreator();
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpOnce() throws Exception
|
||||
@Before
|
||||
public void setUpOnce() throws Exception
|
||||
{
|
||||
_scheme="https";
|
||||
_server = serverAndClientCreator.createServer();
|
||||
|
|
|
@ -15,6 +15,7 @@ package org.eclipse.jetty.client;
|
|||
|
||||
import org.eclipse.jetty.client.helperClasses.ExternalKeyStoreAsyncSslServerAndClientCreator;
|
||||
import org.eclipse.jetty.client.helperClasses.ServerAndClientCreator;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -22,8 +23,8 @@ public class ExternalKeyStoreAsyncSslHttpExchangeTest extends SslHttpExchangeTes
|
|||
{
|
||||
private static ServerAndClientCreator serverAndClientCreator = new ExternalKeyStoreAsyncSslServerAndClientCreator();
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpOnce() throws Exception
|
||||
@Before
|
||||
public void setUpOnce() throws Exception
|
||||
{
|
||||
_scheme="https";
|
||||
_server = serverAndClientCreator.createServer();
|
||||
|
|
|
@ -39,7 +39,9 @@ import org.eclipse.jetty.io.nio.DirectNIOBuffer;
|
|||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.toolchain.test.Stress;
|
||||
import org.eclipse.jetty.util.component.AbstractLifeCycle;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -64,8 +66,9 @@ public class HttpExchangeTest
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@BeforeClass
|
||||
public static void setUpOnce() throws Exception
|
||||
// TODO work out why BeforeClass does not work here?
|
||||
@Before
|
||||
public void setUpOnce() throws Exception
|
||||
{
|
||||
_scheme = "http";
|
||||
_server = serverAndClientCreator.createServer();
|
||||
|
@ -74,8 +77,8 @@ public class HttpExchangeTest
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@AfterClass
|
||||
public static void tearDownOnce() throws Exception
|
||||
@After
|
||||
public void tearDownOnce() throws Exception
|
||||
{
|
||||
_httpClient.stop();
|
||||
long startTime = System.currentTimeMillis();
|
||||
|
|
|
@ -21,6 +21,7 @@ import org.eclipse.jetty.server.Connector;
|
|||
import org.eclipse.jetty.toolchain.test.OS;
|
||||
import org.eclipse.jetty.toolchain.test.Stress;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -32,8 +33,8 @@ public class SslHttpExchangeTest extends HttpExchangeTest
|
|||
protected static ServerAndClientCreator serverAndClientCreator = new SslServerAndClientCreator();
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@BeforeClass
|
||||
public static void setUpOnce() throws Exception
|
||||
@Before
|
||||
public void setUpOnce() throws Exception
|
||||
{
|
||||
_scheme="https";
|
||||
_server = serverAndClientCreator.createServer();
|
||||
|
|
Loading…
Reference in New Issue