poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49564] New: getlocked return error value
Date Wed, 07 Jul 2010 00:59:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49564

           Summary: getlocked return error value
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: longxibo@sina.com


Created an attachment (id=25722)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25722)
upload xlsx file for test

@Test
    public void testGetLockedFromXlsx(){
    XSSFWorkbook wb;
    XSSFSheet sheet;
    FileInputStream finput=null;
    File file;
    String xlsSourceFile = "c:\\testgetcellstyle.xlsx";
    file = new File(xlsSourceFile);
    try {
        finput = new FileInputStream(file);
        wb = new XSSFWorkbook(finput);
        sheet = wb.getSheetAt(0);
        XSSFRow row = sheet.getRow(0);
        XSSFCell cell = row.getCell(25);
        XSSFCellStyle cellStyle = cell.getCellStyle();
        assertTrue(cellStyle.getLocked());//CellStyle.getLocked() should will
return true,But really return false
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }finally{
        try {
        finput.close();
        } catch (IOException e) {
        e.printStackTrace();
        }
    }        
    }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message