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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]