use of io.vertx.core.http.CaseInsensitiveHeaders 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.http.CaseInsensitiveHeaders 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.http.CaseInsensitiveHeaders 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.http.CaseInsensitiveHeaders 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));
}
use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testIteratorTest2.
@Test
public void testIteratorTest2() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
mmap.add("a", "b");
Iterator<Map.Entry<String, String>> result = mmap.iterator();
assertNotNull(result);
assertTrue(result.hasNext());
}
Aggregations