package org.asynchttpclient; import static org.junit.Assert.*; import org.junit.Test; public class TestFluentStringsMap { @Test public void testConstructor() { FluentStringsMap map = new FluentStringsMap(); assertNotNull(map); assertTrue(map.isEmpty()); assertTrue(map.size() == 0); } @Test public void testAddAndRemoveStuff() { FluentStringsMap map = new FluentStringsMap(); 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() { FluentStringsMap map = new FluentStringsMap(); String key = "aS"; String value = "Hf"; map.add(key, value); assertTrue(map.containsKey(key)); assertFalse(map.containsKey(key.toUpperCase())); assertFalse(map.containsKey(key.toLowerCase())); } }