diff options
author | Yegor Kozlov <yegor@apache.org> | 2012-02-27 09:26:36 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2012-02-27 09:26:36 +0000 |
commit | 41ac3b51d318b31b5ca3c590a4a51381d7d84485 (patch) | |
tree | 5a992340b367e9462d63bfd7d745a6a1936db19b /src/ooxml/testcases/org/apache/poi | |
parent | 59afa3fac37feab2e53321ec462c6136dc131721 (diff) | |
download | poi-41ac3b51d318b31b5ca3c590a4a51381d7d84485.tar.gz poi-41ac3b51d318b31b5ca3c590a4a51381d7d84485.zip |
Bugzilla 52708 - misc improvements in CellFormat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1294072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java b/src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java index bd518369d2..9fd6664ad3 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java +++ b/src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java @@ -37,7 +37,7 @@ public class TestCellFormatPart extends CellFormatTestBase { public Object getValue(Cell cell) { int type = CellFormat.ultimateType(cell); if (type == Cell.CELL_TYPE_BOOLEAN) - return cell.getBooleanCellValue() ? "TRUE" : "FALSE"; + return cell.getBooleanCellValue(); else if (type == Cell.CELL_TYPE_NUMERIC) return cell.getNumericCellValue(); else @@ -93,7 +93,7 @@ public class TestCellFormatPart extends CellFormatTestBase { runFormatTests("TextFormatTests.xlsx", new CellValue() { public Object getValue(Cell cell) { if (CellFormat.ultimateType(cell) == Cell.CELL_TYPE_BOOLEAN) - return cell.getBooleanCellValue() ? "TRUE" : "FALSE"; + return cell.getBooleanCellValue(); else return cell.getStringCellValue(); } @@ -123,4 +123,4 @@ public class TestCellFormatPart extends CellFormatTestBase { } return Double.valueOf(sb.toString()); } -}
\ No newline at end of file +} |