aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xssf
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-09-01 19:06:53 +0000
committerNick Burch <nick@apache.org>2015-09-01 19:06:53 +0000
commit6b67b0b1e0b4d9866b658cbbbb069b268ec249a7 (patch)
tree0eddd00c854ae462e1a8213d48dedfb506226d02 /src/ooxml/testcases/org/apache/poi/xssf
parent1c21c4efc65d7d16879ae90382b9d1f5bd9d8b8d (diff)
downloadpoi-6b67b0b1e0b4d9866b658cbbbb069b268ec249a7.tar.gz
poi-6b67b0b1e0b4d9866b658cbbbb069b268ec249a7.zip
Fix some Forbidden APIs errors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xssf')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java b/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java
index fb430d17d4..b867dc1099 100644
--- a/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java
+++ b/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertNotNull;
import java.io.FileOutputStream;
import java.util.LinkedHashMap;
+import java.util.Locale;
import java.util.Map;
import org.apache.commons.codec.binary.Hex;
@@ -104,7 +105,7 @@ public class TestThemesTable {
ThemeElement themeElem = ThemeElement.byId(expectedThemeIdx);
assertEquals(
"Wrong theme at " + ref + " in " + whatWorkbook,
- themeElem.name.toLowerCase(), cell.getStringCellValue());
+ themeElem.name.toLowerCase(Locale.ROOT), cell.getStringCellValue());
// Fonts are theme-based in their colours
XSSFFont font = cell.getCellStyle().getFont();
@@ -235,7 +236,8 @@ public class TestThemesTable {
}
private static void assertCellContents(String expected, XSSFCell cell) {
assertNotNull(cell);
- assertEquals(expected.toLowerCase(), cell.getStringCellValue().toLowerCase());
+ assertEquals(expected.toLowerCase(Locale.ROOT),
+ cell.getStringCellValue().toLowerCase(Locale.ROOT));
}
@Test