/[schmitzm]/branches/2.4.x/src_junit/JxlKloseTest.java
ViewVC logotype

Diff of /branches/2.4.x/src_junit/JxlKloseTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1344 by alfonx, Mon Dec 13 12:25:26 2010 UTC revision 1345 by mojays, Mon Dec 13 12:38:13 2010 UTC
# Line 20  import org.apache.poi.hssf.usermodel.HSS Line 20  import org.apache.poi.hssf.usermodel.HSS
20  import org.apache.poi.hssf.usermodel.HSSFSheet;  import org.apache.poi.hssf.usermodel.HSSFSheet;
21  import org.apache.poi.hssf.usermodel.HSSFWorkbook;  import org.apache.poi.hssf.usermodel.HSSFWorkbook;
22  import org.apache.poi.hssf.util.CellReference;  import org.apache.poi.hssf.util.CellReference;
23    import org.junit.Ignore;
24  import org.junit.Test;  import org.junit.Test;
25    
26  import schmitzm.junit.TestingClass;  import schmitzm.junit.TestingClass;
# Line 28  import schmitzm.swing.TestingUtil; Line 29  import schmitzm.swing.TestingUtil;
29  public class JxlKloseTest extends TestingClass {  public class JxlKloseTest extends TestingClass {
30    
31          @Test          @Test
32            @Ignore
33          public void testJxl() throws IOException, WriteException, BiffException,          public void testJxl() throws IOException, WriteException, BiffException,
34                          FormulaException {                          FormulaException {
35                  InputStream xlsUrl = JxlKloseTest.class                  InputStream xlsUrl = JxlKloseTest.class
# Line 150  public class JxlKloseTest extends Testin Line 152  public class JxlKloseTest extends Testin
152                  HSSFCell cellB7 = sheet.getRow(b7cellRef.getRow()).getCell(                  HSSFCell cellB7 = sheet.getRow(b7cellRef.getRow()).getCell(
153                                  b7cellRef.getCol());                                  b7cellRef.getCol());
154                  assertNotNull(cellB7);                  assertNotNull(cellB7);
155                  log.info("orig value B7 = " + cellB7.getNumericCellValue());                  log.info("new value B7 = " + cellB7.getNumericCellValue());
156                  assertEquals("B8+((-$D$3/100)*B8)", cellB7.getCellFormula());                  assertEquals("B8+((-$D$3/100)*B8)", cellB7.getCellFormula());
157                  assertEquals(9038.2964, cellB7.getNumericCellValue(), 0.0001);                  assertEquals(9038.2964, cellB7.getNumericCellValue(), 0.0001);
158                                    

Legend:
Removed from v.1344  
changed lines
  Added in v.1345

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26