diff options
author | Oleg Besedin | 2008-07-15 15:51:40 +0000 |
---|---|---|
committer | Oleg Besedin | 2008-07-15 15:51:40 +0000 |
commit | b9b143f6435bf4d20bd1b4ecc6dde1168701689e (patch) | |
tree | 506d6ad51c770b80851b0e59f77dbffcc5cc12d3 /bundles/org.eclipse.equinox.security.tests | |
parent | 7e1d4bd28b1f0621a30e48ef4843a9d169d45984 (diff) | |
download | rt.equinox.bundles-b9b143f6435bf4d20bd1b4ecc6dde1168701689e.tar.gz rt.equinox.bundles-b9b143f6435bf4d20bd1b4ecc6dde1168701689e.tar.xz rt.equinox.bundles-b9b143f6435bf4d20bd1b4ecc6dde1168701689e.zip |
Bug 240885 Non-ASCII chars are not properly storedv20080722-0430
Diffstat (limited to 'bundles/org.eclipse.equinox.security.tests')
-rw-r--r-- | bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/SecurePreferencesTest.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/SecurePreferencesTest.java b/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/SecurePreferencesTest.java index 48f969dcc..f6b945e3e 100644 --- a/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/SecurePreferencesTest.java +++ b/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/SecurePreferencesTest.java @@ -42,6 +42,9 @@ abstract public class SecurePreferencesTest extends StorageAbstractTest { final private static String clearTextKey = "data"; final private static String clearTextValue = "-> this should not be encrypted <-"; + final private static String unicodeKey = "unicodeKey"; + final private static String unicodeValue = "va\u0432lue\u0433"; + public SecurePreferencesTest() { super(); } @@ -71,6 +74,7 @@ abstract public class SecurePreferencesTest extends StorageAbstractTest { node3.put(key, value, true); node3.put(secondKey, secondValue, true); node3.put(clearTextKey, clearTextValue, false); + node3.put(unicodeKey, unicodeValue, true); node2.remove(secondKey); @@ -109,11 +113,12 @@ abstract public class SecurePreferencesTest extends StorageAbstractTest { assertEquals(secondValue, node3.get(secondKey, defaultValue)); assertEquals(defaultValue, node3.get(unassignedKey, defaultValue)); assertEquals(clearTextValue, node3.get(clearTextKey, defaultValue)); + assertEquals(unicodeValue, node3.get(unicodeKey, defaultValue)); String[] leafKeys = node3.keys(); assertNotNull(leafKeys); - assertEquals(leafKeys.length, 3); - findAll(new String[] {clearTextKey, key, secondKey}, leafKeys); + assertEquals(leafKeys.length, 4); + findAll(new String[] {clearTextKey, key, secondKey, unicodeKey}, leafKeys); } /** |