Link Here
|
22 |
import static org.junit.Assert.assertFalse; |
22 |
import static org.junit.Assert.assertFalse; |
23 |
import static org.junit.Assert.assertNotNull; |
23 |
import static org.junit.Assert.assertNotNull; |
24 |
import static org.junit.Assert.assertTrue; |
24 |
import static org.junit.Assert.assertTrue; |
|
|
25 |
import static org.junit.Assert.fail; |
25 |
|
26 |
|
26 |
import java.io.ByteArrayOutputStream; |
27 |
import java.io.ByteArrayOutputStream; |
27 |
import java.io.InputStream; |
28 |
import java.io.InputStream; |
Link Here
|
431 |
String target = "this\tText\tis\twithin\ta\n"+ |
432 |
String target = "this\tText\tis\twithin\ta\n"+ |
432 |
"table\t1\t2\t3\t4"; |
433 |
"table\t1\t2\t3\t4"; |
433 |
assertTrue(text.contains(target)); |
434 |
assertTrue(text.contains(target)); |
434 |
} |
435 |
} |
|
|
436 |
|
437 |
@Test |
438 |
public void testPrague() throws Exception { |
439 |
HSLFSlideShowImpl hslf = new HSLFSlideShowImpl(slTests.openResourceAsStream("60003.ppt")); |
440 |
ppe.close(); |
441 |
|
442 |
ppe = new PowerPointExtractor(hslf); |
443 |
|
444 |
String text = ppe.getText(); |
445 |
assertContains(text, "Prague"); |
446 |
hslf.close(); |
447 |
} |
435 |
} |
448 |
} |