]> source.dussan.org Git - poi.git/commitdiff
add test case of processing of Bug47286.doc by Word-to-HTML converter
authorSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 09:02:53 +0000 (09:02 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 09:02:53 +0000 (09:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150600 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java

index b6b70fcc0acad5838b25cd71937aaf1a941f23ab..83b1236498db708522dfe10d49477e178ed57a57 100644 (file)
@@ -120,6 +120,16 @@ public class TestWordToHtmlConverter extends TestCase
         assertContains( result, substring );
     }
 
+    public void testBug47286() throws Exception
+    {
+        String result = getHtmlText( "Bug47286.doc" );
+
+        assertFalse( result.contains( "FORMTEXT" ) );
+
+        assertContains( result, "Passport No and the date of expire" );
+        assertContains( result, "mfa.gov.cy" );
+    }
+
     public void testBug48075() throws Exception
     {
         getHtmlText( "Bug48075.doc" );