Testcase for bug 13769 .. thanks michael tosdevin
the bug has already been fixed in 2.0pre3 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
02eaa94535
commit
e035d3ecfd
BIN
src/testcases/org/apache/poi/hssf/data/13796.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/13796.xls
Normal file
Binary file not shown.
@ -91,6 +91,26 @@ extends TestCase {
|
||||
assertTrue("File Should Exist", file.exists());
|
||||
|
||||
}
|
||||
|
||||
public void test13796()
|
||||
throws java.io.IOException
|
||||
{
|
||||
String readFilename = System.getProperty("HSSF.testdata.path");
|
||||
FileInputStream in = new FileInputStream(readFilename+File.separator+"13796.xls");
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
HSSFSheet s = wb.getSheetAt(0);
|
||||
HSSFRow r = s.createRow(0);
|
||||
HSSFCell c = r.createCell((short)0);
|
||||
c.setCellValue(10);
|
||||
File file = File.createTempFile("test13796",".xls");
|
||||
FileOutputStream out = new FileOutputStream(file);
|
||||
wb.write(out);
|
||||
assertTrue("No exception thrown", true);
|
||||
assertTrue("File Should Exist", file.exists());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user