FileDocCategorySizeDatePackage
TestOffice2007XMLException.javaAPI DocApache Poi 3.0.11548Thu May 31 18:46:28 BST 2007org.apache.poi.poifs.filesystem

TestOffice2007XMLException

public class TestOffice2007XMLException extends TestCase
Class to test that POIFS complains when given an Office 2007 XML document
author
Marc Johnson

Fields Summary
public String
dirname
Constructors Summary
Methods Summary
public voidsetUp()

		dirname = System.getProperty("HSSF.testdata.path");
	
public voidtestXMLException()

		FileInputStream in = new FileInputStream(dirname + "/sample.xlsx");

		try {
			new POIFSFileSystem(in);
			fail();
		} catch(OfficeXmlFileException e) {
			// Good
		}