assertEquals(1, tp.length);
assertEquals("The quick brown fox jumps over the lazy dog\r\n", tp[0]);
}
+
+ public void testFastSaved() throws Exception {
+ extractor = new WordExtractor(
+ POIDataSamples.getDocumentInstance().openResourceAsStream("rasp.doc")
+ );
+
+ String text = extractor.getText();
+ assertTrue(text.contains("\u0425\u0425\u0425\u0425\u0425"));
+ assertTrue(text.contains("\u0423\u0423\u0423\u0423\u0423"));
+ }
}
HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug44603.doc");
List pics = doc.getPicturesTable().getAllPictures();
- assertEquals(pics.size(), 2);
+ assertEquals(2, pics.size());
}
public void testPicturesInHeader() {
HWPFDocument doc = HWPFTestDataSamples.openSampleFile("header_image.doc");
List pics = doc.getPicturesTable().getAllPictures();
- assertEquals(pics.size(), 2);
+ assertEquals(2, pics.size());
}
+ public void testFastSaved() {
+ HWPFDocument doc = HWPFTestDataSamples.openSampleFile("rasp.doc");
+
+ doc.getPicturesTable().getAllPictures(); // just check that we do not throw Exception
+ }
+
}