HTTP client: added TestTracker rule.

This commit is contained in:
Simone Bordet 2012-10-30 12:13:11 +01:00
parent ebb76ecfb9
commit 7f37ddbc25
5 changed files with 25 additions and 0 deletions

View File

@ -25,6 +25,8 @@ import java.nio.charset.Charset;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import org.eclipse.jetty.toolchain.test.TestTracker;
import org.junit.Rule;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@ -33,6 +35,9 @@ import static org.junit.Assert.assertTrue;
public class GZIPContentDecoderTest
{
@Rule
public final TestTracker tracker = new TestTracker();
@Test
public void testStreamNoBlocks() throws Exception
{

View File

@ -21,11 +21,16 @@ package org.eclipse.jetty.client;
import java.util.List;
import org.eclipse.jetty.http.HttpCookie;
import org.eclipse.jetty.toolchain.test.TestTracker;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
public class HttpCookieParserTest
{
@Rule
public final TestTracker tracker = new TestTracker();
@Test
public void testParseCookie1() throws Exception
{

View File

@ -23,11 +23,16 @@ import java.util.List;
import org.eclipse.jetty.client.api.CookieStore;
import org.eclipse.jetty.client.api.Destination;
import org.eclipse.jetty.http.HttpCookie;
import org.eclipse.jetty.toolchain.test.TestTracker;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
public class HttpCookieStoreTest
{
@Rule
public final TestTracker tracker = new TestTracker();
private HttpClient client = new HttpClient();
@Test

View File

@ -34,13 +34,18 @@ import org.eclipse.jetty.http.HttpFields;
import org.eclipse.jetty.http.HttpHeader;
import org.eclipse.jetty.http.HttpVersion;
import org.eclipse.jetty.io.ByteArrayEndPoint;
import org.eclipse.jetty.toolchain.test.TestTracker;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
public class HttpReceiverTest
{
@Rule
public final TestTracker tracker = new TestTracker();
private HttpClient client;
private HttpDestination destination;
private ByteArrayEndPoint endPoint;

View File

@ -28,14 +28,19 @@ import org.eclipse.jetty.client.api.Response;
import org.eclipse.jetty.client.api.Result;
import org.eclipse.jetty.client.util.ByteBufferContentProvider;
import org.eclipse.jetty.io.ByteArrayEndPoint;
import org.eclipse.jetty.toolchain.test.TestTracker;
import org.eclipse.jetty.toolchain.test.annotation.Slow;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
public class HttpSenderTest
{
@Rule
public final TestTracker tracker = new TestTracker();
private HttpClient client;
@Before