Author: rwesten
Date: Thu Jun 13 09:27:43 2013
New Revision: 1492596

URL: http://svn.apache.org/r1492596
Log:
STANBOL-970: forgott to commit an integration test explicitly added for this 
issue. This test processes an example document that triggered the issue

Added:
    stanbol/trunk/integration-tests/src/test/resources/Vorlage_Protokoll.docx   
(with props)
Modified:
    
stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/TikaXmlDocumentOsgiTest.java

Modified: 
stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/TikaXmlDocumentOsgiTest.java
URL: 
http://svn.apache.org/viewvc/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/TikaXmlDocumentOsgiTest.java?rev=1492596&r1=1492595&r2=1492596&view=diff
==============================================================================
--- 
stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/TikaXmlDocumentOsgiTest.java
 (original)
+++ 
stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/TikaXmlDocumentOsgiTest.java
 Thu Jun 13 09:27:43 2013
@@ -52,5 +52,21 @@ public class TikaXmlDocumentOsgiTest ext
         )
         .assertStatus(200); //not interested in the results, just that it 
worked
     }
-
+    /**
+     * Tests docx format
+     * engine 
+     * @throws Exception
+     */
+    @Test
+    public void testDocx2() throws Exception {
+        InputStream in = 
EngineEnhancementRequestTest.class.getClassLoader().getResourceAsStream("Vorlage_Protokoll.docx");
+        Assert.assertNotNull("Unable to find test resource 
'Vorlage_Protokoll.docx'",in);
+        executor.execute(
+            
builder.buildPostRequest(getEndpoint()+"/engine/tika?omitMetadata=true")
+            .withHeader("Accept","text/plain")
+            .withHeader("Content-Type", 
"application/vnd.openxmlformats-officedocument.wordprocessingml.document")
+            .withEntity(new InputStreamEntity(in, -1))
+        )
+        .assertStatus(200); //not interested in the results, just that it 
worked
+    }
 }

Added: stanbol/trunk/integration-tests/src/test/resources/Vorlage_Protokoll.docx
URL: 
http://svn.apache.org/viewvc/stanbol/trunk/integration-tests/src/test/resources/Vorlage_Protokoll.docx?rev=1492596&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
stanbol/trunk/integration-tests/src/test/resources/Vorlage_Protokoll.docx
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
stanbol/trunk/integration-tests/src/test/resources/Vorlage_Protokoll.docx
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream


Reply via email to