From: Dominik Stadler Date: Thu, 28 Jun 2018 15:47:16 +0000 (+0000) Subject: Somehow the WordToHtml converter now produces slightly more than 6000 chars before... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88de42971d7d02f929901a1993435d33c6a011e3;p=poi.git Somehow the WordToHtml converter now produces slightly more than 6000 chars before the suggestedName); } wordToHtmlConverter.processDocument(hwpfDocument); @@ -81,15 +71,13 @@ public class TestWordToHtmlConverter { } @Test - public void testAIOOBTap() throws Exception - { + public void testAIOOBTap() throws Exception { String result = getHtmlText("AIOOB-Tap.doc"); - assertContains(result.substring(0, 6000), "
"); + assertContains(result, "
"); } @Test - public void testBug33519() throws Exception - { + public void testBug33519() throws Exception { String result = getHtmlText("Bug33519.doc"); assertContains( result, @@ -99,8 +87,7 @@ public class TestWordToHtmlConverter { } @Test - public void testBug46610_2() throws Exception - { + public void testBug46610_2() throws Exception { String result = getHtmlText("Bug46610_2.doc"); assertContains( result, @@ -108,16 +95,14 @@ public class TestWordToHtmlConverter { } @Test - public void testBug46817() throws Exception - { + public void testBug46817() throws Exception { String result = getHtmlText("Bug46817.doc"); final String substring = "
"; assertContains(result, substring); } @Test - public void testBug47286() throws Exception - { + public void testBug47286() throws Exception { String result = getHtmlText("Bug47286.doc"); assertFalse(result.contains("FORMTEXT")); @@ -128,14 +113,12 @@ public class TestWordToHtmlConverter { } @Test - public void testBug48075() throws Exception - { + public void testBug48075() throws Exception { getHtmlText("Bug48075.doc"); } @Test - public void testBug52583() throws Exception - { + public void testBug52583() throws Exception { String result = getHtmlText("Bug52583.doc"); assertContains( result, @@ -143,15 +126,13 @@ public class TestWordToHtmlConverter { } @Test - public void testBug53182() throws Exception - { + public void testBug53182() throws Exception { String result = getHtmlText("Bug53182.doc"); assertFalse(result.contains("italic")); } @Test - public void testDocumentProperties() throws Exception - { + public void testDocumentProperties() throws Exception { String result = getHtmlText("documentProperties.doc"); assertContains(result, "This is document title"); @@ -160,16 +141,14 @@ public class TestWordToHtmlConverter { } @Test - public void testEmailhyperlink() throws Exception - { + public void testEmailhyperlink() throws Exception { String result = getHtmlText("Bug47286.doc"); final String substring = "provisastpet@mfa.gov.cy"; assertContains(result, substring); } @Test - public void testEndnote() throws Exception - { + public void testEndnote() throws Exception { String result = getHtmlText("endingnote.doc"); assertContains( @@ -183,16 +162,14 @@ public class TestWordToHtmlConverter { } @Test - public void testEquation() throws Exception - { + public void testEquation() throws Exception { String result = getHtmlText("equation.doc"); assertContains(result, ""); } @Test - public void testHyperlink() throws Exception - { + public void testHyperlink() throws Exception { String result = getHtmlText("hyperlink.doc"); assertContains(result, "Before text; "); @@ -241,8 +214,7 @@ public class TestWordToHtmlConverter { } @Test - public void testPicture() throws Exception - { + public void testPicture() throws Exception { String result = getHtmlText("picture.doc", true); // picture @@ -256,16 +228,14 @@ public class TestWordToHtmlConverter { } @Test - public void testPicturesEscher() throws Exception - { + public void testPicturesEscher() throws Exception { String result = getHtmlText("pictures_escher.doc", true); assertContains(result, ""); assertContains(result, ""); } @Test - public void testTableMerges() throws Exception - { + public void testTableMerges() throws Exception { String result = getHtmlText("table-merges.doc"); assertContains(result, "
");