FileDocCategorySizeDatePackage
TestUppercaseWorkbook.javaAPI DocApache Poi 3.0.11745Sun Mar 11 12:59:12 GMT 2007org.apache.poi.hssf.usermodel

TestUppercaseWorkbook

public class TestUppercaseWorkbook extends TestCase
Tests for how HSSFWorkbook behaves with XLS files with a WORKBOOK directory entry (instead of the more usual, Workbook)

Fields Summary
private String
dirPath
private String
xlsA
Constructors Summary
Methods Summary
protected voidsetUp()


	     
		super.setUp();
		
        dirPath = System.getProperty("HSSF.testdata.path");
	
public voidtestOpen()
Test that we can open a file with WORKBOOK

		FileInputStream is = new FileInputStream(dirPath + "/" + xlsA);
		
		POIFSFileSystem fs = new POIFSFileSystem(is);

		// Ensure that we have a WORKBOOK entry
		fs.getRoot().getEntry("WORKBOOK");
		assertTrue(true);
		
		// Try to open the workbook
		HSSFWorkbook wb = new HSSFWorkbook(fs);