Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTEASY-1251: Backing out changes from RESTEASY-1251. #742

Merged
merged 2 commits into from
Feb 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ else if (bufferedEntity == null)
{
try
{
releaseConnection();
close();
}
catch (Exception ignored)
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public void testPriority() throws Exception
client.register(ClientRequestFilterMax.class);

Response response = client.target(generateURL("/test")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("test", response.getEntity());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.jboss.resteasy.test.EmbeddedContainer;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

import junit.framework.Assert;
Expand Down Expand Up @@ -130,6 +129,7 @@ public void testByte() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Byte")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -141,6 +141,7 @@ public void testBytePrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/byte")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -152,6 +153,7 @@ public void testDouble() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Double")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123.4", response.getEntity());
Expand All @@ -163,6 +165,7 @@ public void testDoublePrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/double")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123.4", response.getEntity());
Expand All @@ -174,6 +177,7 @@ public void testFloat() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Float")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123.4", response.getEntity());
Expand All @@ -185,6 +189,7 @@ public void testFloatPrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/float")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123.4", response.getEntity());
Expand All @@ -196,6 +201,7 @@ public void testInteger() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Integer")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -207,6 +213,7 @@ public void testIntegerPrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/integer")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -218,6 +225,7 @@ public void testLong() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Long")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -229,6 +237,7 @@ public void testLongPrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/long")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -240,6 +249,7 @@ public void testShort() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/Short")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -251,6 +261,7 @@ public void testShortPrimitive() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/short")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -262,6 +273,7 @@ public void testBigDecimal() throws Exception
{
Client client = ClientBuilder.newClient();
Response response = client.target(generateURL("/test/bigDecimal")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand All @@ -274,6 +286,7 @@ public void testProviderGetsUsed() throws Exception
Client client = ClientBuilder.newClient();
client.register(MyDefaultNumberWriter.class);
Response response = client.target(generateURL("/test/bigDecimal")).request().get();
response.bufferEntity();
System.out.println(response.readEntity(String.class));
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("123", response.getEntity());
Expand Down