tika-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject svn commit: r1306156 - /tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java
Date Wed, 28 Mar 2012 04:38:52 GMT
Author: mattmann
Date: Wed Mar 28 04:38:52 2012
New Revision: 1306156

URL: http://svn.apache.org/viewvc?rev=1306156&view=rev
Log:
- accept should be */* since by default CXF client sets to an XML accept (yikes), thanks to
pramirez for identification, TIKA-593, see: http://cxf.547215.n5.nabble.com/Why-is-the-default-accept-for-WebClient-text-xml-td5013707.html

Modified:
    tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java

Modified: tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java?rev=1306156&r1=1306155&r2=1306156&view=diff
==============================================================================
--- tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java
(original)
+++ tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java
Wed Mar 28 04:38:52 2012
@@ -173,10 +173,11 @@ public class UnpackerResourceTest extend
 		assertEquals(DOCX_IMAGE2_MD5, data.get(DOCX_IMAGE2_NAME));
 	}
 
-	//FIXME: Disabled until TIKA-593 is done @Test
-	public void Xtest415() throws Exception {
+	//FIXME: Disabled for now until TIKA-593 is done @Test
+	public void test415() throws Exception {
 		Response response = WebClient.create(endPoint + UNPACKER_PATH)
-				.type("xxx/xxx").accept("application/zip")
+				.type("xxx/xxx")
+				.accept("*/*")
 				.put(ClassLoader.getSystemResourceAsStream(TEST_DOC_WAV));
 
 		assertEquals(415, response.getStatus());



Mime
View raw message