use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testAddTest8.
@Test
public void testAddTest8() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
CharSequence name = "name";
ArrayList<CharSequence> values = new ArrayList<CharSequence>();
values.add("somevalue");
assertEquals("name: somevalue\n", mmap.add(name, values).toString());
}
use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testAddTest13.
@Test
public void testAddTest13() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
String name = "aaa";
String strVal = "";
assertEquals("aaa: \n", mmap.add(name, strVal).toString());
}
use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testSetTest1.
@Test
public void testSetTest1() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("", "");
MultiMap result = mmap.setAll(headers);
assertNotNull(result);
assertFalse(result.isEmpty());
assertEquals(1, result.size());
assertEquals(": \n", result.toString());
}
use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testCaseInsensitiveHeaders.
@Test
public void testCaseInsensitiveHeaders() throws Exception {
MultiMap result = new CaseInsensitiveHeaders();
assertNotNull(result);
assertTrue(result.isEmpty());
assertEquals(0, result.size());
assertEquals("", result.toString());
}
use of io.vertx.core.http.CaseInsensitiveHeaders in project vert.x by eclipse.
the class CaseInsensitiveHeadersTest method testGetAllTest2.
@Test
public void testGetAllTest2() throws Exception {
MultiMap mmap = new CaseInsensitiveHeaders();
String name = "1";
List<String> result = mmap.getAll(name);
assertNotNull(result);
assertEquals(0, result.size());
}
Aggregations