From c0938e1f5592f77995c713c4897e87a596d9084d Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 21 Aug 2015 13:34:01 +0000 Subject: [PATCH] Revert "HTTPCLIENT-1673: make the test case a bit more substantial." This reverts commit 2b3230123aa4a94652f50e8d3b8d93f2200545ac. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1696971 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/http/osgi/impl/MimeExportedIT.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/MimeExportedIT.java b/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/MimeExportedIT.java index 2f27829cf..f58acc057 100644 --- a/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/MimeExportedIT.java +++ b/httpclient-osgi/src/test/java/org/apache/http/osgi/impl/MimeExportedIT.java @@ -27,12 +27,7 @@ package org.apache.http.osgi.impl; -import org.apache.http.HttpEntity; -import org.apache.http.client.methods.HttpPost; -import org.apache.http.entity.ContentType; -import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.content.ByteArrayBody; -import org.apache.http.entity.mime.content.StringBody; import org.junit.Test; import org.junit.runner.RunWith; import org.ops4j.pax.exam.Configuration; @@ -93,17 +88,6 @@ public class MimeExportedIT { @Test public void useContentBody() { - final HttpPost httppost = new HttpPost("http://localhost:8181/cxf/annotator/annotate"); - httppost.addHeader("Accept", "application/json"); - final StringBody options = new StringBody("{}", ContentType.APPLICATION_JSON); - final byte[] atData = new byte[] { 1 }; - final ByteArrayBody bab = new ByteArrayBody(atData, ContentType.APPLICATION_JSON, "at.json"); - - final HttpEntity reqEntity = MultipartEntityBuilder.create() - .setContentType(ContentType.create("multipart/mixed")) - .addPart("options", options) - .addPart("text", bab) - .build(); - httppost.setEntity(reqEntity); + new ByteArrayBody(new byte[0], "filename.txt"); } }