Examples of POIDataSamples


Examples of org.apache.poi.POIDataSamples

   * Check that we do the right thing when the list of which
   *  sectors are BAT blocks points off the list of
   *  sectors that exist in the file.
   */
  public void testFATandDIFATsectors() throws Exception {
      POIDataSamples _samples = POIDataSamples.getPOIFSInstance();
     
      // Open the file up
      try {
         POIFSFileSystem fs = new POIFSFileSystem(
             _samples.openResourceAsStream("ReferencesInvalidSectors.mpp")
         );
         fail("File is corrupt and shouldn't have been opened");
      } catch(IOException e) {
         String msg = e.getMessage();
         assertTrue(msg.startsWith("Your file contains 695 sectors"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.