Examples of CaseInsensitiveHeaders


Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testIsEmptyTest2()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    mmap.add("a", "b");

    assertFalse(mmap.isEmpty());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testIteratorTest1()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();

    Iterator<Map.Entry<String, String>> result = mmap.iterator();

    assertNotNull(result);
    assertFalse(result.hasNext());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @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());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testNamesTest1()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();

    Set<String> result = mmap.names();

    assertNotNull(result);
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testRemoveTest1()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    CharSequence name = String.valueOf(new Object());

    MultiMap result = mmap.remove(name);

    assertNotNull(result);
    assertTrue(result.isEmpty());
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test(expected = NullPointerException.class)
  public void testRemoveNPE()
      throws Exception {
    new CaseInsensitiveHeaders().remove(null);
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testRemoveTest2()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "1";

    MultiMap result = mmap.remove(name);

    assertNotNull(result);
    assertTrue(result.isEmpty());
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testRemoveTest3()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "name";

    MultiMap result = mmap.remove(name);

    assertNotNull(result);
    assertTrue(result.isEmpty());
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @Test
  public void testRemoveTest4()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "name";
    String value = "value";
    mmap.add(name, value);

    assertTrue(mmap.contains(name));

    MultiMap result = mmap.remove(name);

    assertFalse(result.contains(name));
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

  @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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.