View | Details | Raw Unified | Return to bug 60003
Collapse All | Expand All

(-)src/scratchpad/testcases/org/apache/poi/hslf/extractor/TestExtractor.java (-1 / +14 lines)
Lines 22-27 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;
Lines 431-435 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
}

Return to bug 60003