use of io.vertx.core.MultiMap in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testAddTest4.
@Test
public void testAddTest4() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
Map<String, String> map = new HashMap<String, String>();
assertEquals("", mmap.addAll(map).toString());
}
use of io.vertx.core.MultiMap in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testMapEntryToString.
@Test
public void testMapEntryToString() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
mmap.add("Header", "value");
assertEquals("Header: value", mmap.iterator().next().toString());
}
use of io.vertx.core.MultiMap in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testGetTest2.
@Test
public void testGetTest2() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
String name = "1";
assertNull(mmap.get(name));
}
use of io.vertx.core.MultiMap in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testAddTest3.
@Test
public void testAddTest3() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
HashMap<String, String> map = new HashMap<String, String>();
map.put("a", "b");
assertEquals("a: b\n", mmap.addAll(map).toString());
}
use of io.vertx.core.MultiMap in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testGetTest1.
@Test
public void testGetTest1() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
CharSequence name = String.valueOf(new Object());
assertNull(mmap.get(name));
}
Aggregations