testcase for bug 34021 , already worked fine
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353647 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d73fac22e
commit
5bb531e555
@ -1084,6 +1084,16 @@ extends TestCase {
|
|||||||
assertEquals("String Cell value","XYZ",c.getStringCellValue());
|
assertEquals("String Cell value","XYZ",c.getStringCellValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** test for bug 34021*/
|
||||||
|
public void testComplexSheetRefs () throws IOException {
|
||||||
|
HSSFWorkbook sb = new HSSFWorkbook();
|
||||||
|
HSSFSheet s1 = sb.createSheet("Sheet a.1");
|
||||||
|
HSSFSheet s2 = sb.createSheet("Sheet.A");
|
||||||
|
s2.createRow(1).createCell((short) 2).setCellFormula("'Sheet a.1'!A1");
|
||||||
|
s1.createRow(1).createCell((short) 2).setCellFormula("'Sheet.A'!A1");
|
||||||
|
File file = TempFile.createTempFile("testComplexSheetRefs",".xls");
|
||||||
|
sb.write(new FileOutputStream(file));
|
||||||
|
}
|
||||||
public static void main(String [] args) {
|
public static void main(String [] args) {
|
||||||
System.out
|
System.out
|
||||||
.println("Testing org.apache.poi.hssf.usermodel.TestFormulas");
|
.println("Testing org.apache.poi.hssf.usermodel.TestFormulas");
|
||||||
|
Loading…
Reference in New Issue
Block a user