Examples of CaseInsensitiveHeaders


Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    assertNull(mmap.get(name));
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    assertNull(mmap.get(name));
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    String result = mmap.get(name);
    assertNull(result);
    mmap.add(name, "value");
    result = mmap.get(name);
    assertEquals("value", result);
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

    assertEquals("value", result);
  }

  @Test(expected = NullPointerException.class)
  public void testGetNPE() {
    new CaseInsensitiveHeaders().get(null);
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    List<String> result = mmap.getAll(name);

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

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    List<String> result = mmap.getAll(name);

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

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    List<String> result = mmap.getAll(name);

    assertNotNull(result);
    assertEquals(2, result.size());
    assertEquals("value1", result.get(0));
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

Examples of io.vertx.core.http.CaseInsensitiveHeaders

  }

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

    assertTrue(mmap.isEmpty());
  }
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.