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

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

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