* TODO - Make this work with 3+ runs
*/
public void testContents() {
HWPFDocument doc = docAscii;
for(int run=0; run<3; run++) {
Range r;
// Now check the real ranges
r = doc.getRange();
assertEquals(
a_page_1 +
page_break + "\r" +
a_page_2,
r.text()
);
r = doc.getHeaderStoryRange();
assertEquals(
headerDef +
a_header +
footerDef +
a_footer +
endHeaderFooter,
r.text()
);
r = doc.getOverallRange();
assertEquals(
a_page_1 +
page_break + "\r" +
a_page_2 +
headerDef +
a_header +
footerDef +
a_footer +
endHeaderFooter +
"\r",
r.text()
);
// Write out and read back in again, ready for
// the next run of the test
// TODO run more than once