aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2010-01-13 15:42:53 +0000
committerNick Burch <nick@apache.org>2010-01-13 15:42:53 +0000
commit878e9880a532de3893e4df239f60a949f0fec2db (patch)
treebf55976e0f0bc2cd92287756109ee048b01dc2ac /src/testcases
parentc8f8a1d8a062a1f902e8cabeebd06f34023a41f2 (diff)
downloadpoi-878e9880a532de3893e4df239f60a949f0fec2db.tar.gz
poi-878e9880a532de3893e4df239f60a949f0fec2db.zip
Remove some generics warnings from the HPSF custom properties and sections parts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@898804 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java b/src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java
index ad6e1237cf..8c95fdb7bf 100644
--- a/src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java
+++ b/src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java
@@ -348,8 +348,25 @@ public class TestWriteWellKnown extends TestCase {
customProperties.put("min_Long", MIN_LONG);
customProperties.put("max_Double", MAX_DOUBLE);
customProperties.put("min_Double", MIN_DOUBLE);
+
+ // Check the keys went in
+ assertTrue(customProperties.containsKey("Schl\u00fcssel \u00e4"));
+ assertTrue(customProperties.containsKey("Boolean"));
+
+ // Check the values went in
+ assertEquals("Wert \u00e4", customProperties.get("Schl\u00fcssel \u00e4"));
+ assertEquals(Boolean.TRUE, customProperties.get("Boolean"));
+ assertTrue(customProperties.containsValue(Boolean.TRUE));
+ assertTrue(customProperties.containsValue("Wert \u00e4"));
+
+ // Check that things that aren't in aren't in
+ assertFalse(customProperties.containsKey("False Boolean"));
+ assertFalse(customProperties.containsValue(Boolean.FALSE));
+
+ // Save as our custom properties
dsi.setCustomProperties(customProperties);
+
/* Write the summary information stream and the document summary
* information stream to the POI filesystem. */
si.write(dir, siEntry.getName());