summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-19 16:37:12 +0100
committerNarayan Kamath <narayan@google.com>2015-06-22 08:43:36 +0000
commit163383e2c40b8e22d7557b9a40d74ebd490c0756 (patch)
treed854c93e53d65d0c604eda94fd027d095545e322 /luni
parentf28ba434b8050bf418a6913bb466e0b71dcb8195 (diff)
downloadlibcore-163383e2c40b8e22d7557b9a40d74ebd490c0756.zip
libcore-163383e2c40b8e22d7557b9a40d74ebd490c0756.tar.gz
libcore-163383e2c40b8e22d7557b9a40d74ebd490c0756.tar.bz2
ProviderTest : make sure alias / algo. lookups are case insensitive.
bug: 21870226 Change-Id: I6c45ef97a9f24f74f0b3ad0098ccb9ef14ddd349
Diffstat (limited to 'luni')
-rw-r--r--luni/src/test/java/libcore/java/security/ProviderTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/java/security/ProviderTest.java b/luni/src/test/java/libcore/java/security/ProviderTest.java
index fafedd3..d3ccae1 100644
--- a/luni/src/test/java/libcore/java/security/ProviderTest.java
+++ b/luni/src/test/java/libcore/java/security/ProviderTest.java
@@ -41,6 +41,7 @@ import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
+import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.crypto.Cipher;
@@ -178,8 +179,8 @@ public class ProviderTest extends TestCase {
provider.get("Provider.id className"));
// build map of all known aliases and implementations
- Map<String,String> aliases = new HashMap<String,String>();
- Map<String,String> implementations = new HashMap<String,String>();
+ Map<String,String> aliases = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
+ Map<String,String> implementations = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
for (Entry<Object,Object> entry : provider.entrySet()) {
Object k = entry.getKey();
Object v = entry.getValue();