]> source.dussan.org Git - poi.git/commitdiff
add page-break test case
authorSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 15:03:51 +0000 (15:03 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 15:03:51 +0000 (15:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160289 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java
test-data/document/page-break.doc [new file with mode: 0644]

index 52149f53d0d0416c099cb2632b665c2853b3b78d..d6dd00d84682103b1c7fdfa07efea407a2a98c40 100644 (file)
@@ -125,6 +125,14 @@ public class TestWordToFoConverter extends TestCase
                 "padding-end=\"0.0in\" padding-start=\"0.0in\" width=\"1.0770833in\"" );
     }
 
+    public void testPageBreak() throws Exception
+    {
+        final String sampleFileName = "page-break.doc";
+        String result = getFoText( sampleFileName );
+
+        assertContains( result, "<fo:block break-before=\"page\"" );
+    }
+
     public void testPageBreakBefore() throws Exception
     {
         final String sampleFileName = "page-break-before.doc";
diff --git a/test-data/document/page-break.doc b/test-data/document/page-break.doc
new file mode 100644 (file)
index 0000000..a54f2ab
Binary files /dev/null and b/test-data/document/page-break.doc differ