package org.asynchttpclient; import static org.junit.Assert.*; import org.junit.Test; public class TestFluentCaseInsensitiveStringsMap { @Test public void testConstructor() { FluentCaseInsensitiveStringsMap map = new FluentCaseInsensitiveStringsMap(); assertNotNull(map); assertTrue(map.isEmpty()); assertTrue(map.size() == 0); } @Test public void testAddAndRemoveStuff() { FluentCaseInsensitiveStringsMap map = new FluentCaseInsensitiveStringsMap(); String key = "aS"; String value = "Hf"; map.add(key, value); assertTrue(map.containsKey(key)); map.remove(key); assertFalse(map.containsKey(key)); } @Test public void testCase() { FluentCaseInsensitiveStringsMap map = new FluentCaseInsensitiveStringsMap(); String key = "aS"; String value = "Hf"; map.add(key, value); assertTrue(map.containsKey(key)); assertTrue(map.containsKey(key.toUpperCase())); assertTrue(map.containsKey(key.toLowerCase())); } }