Package io.vertx.core

Examples of io.vertx.core.MultiMap


  }

  @Test
  public void testSetTest7()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    CharSequence name = "name";
    CharSequence value = "value";

    MultiMap result = mmap.set(name, value);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals("name: value\n", result.toString());
  }
View Full Code Here


  }

  @Test
  public void testSetTest8()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    CharSequence name = "name";
    ArrayList<CharSequence> values = new ArrayList<CharSequence>();
    values.add("somevalue");

    assertEquals("name: somevalue\n", mmap.set(name, values).toString());
  }
View Full Code Here

  }

  @Test
  public void testSetTest9()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "";
    ArrayList<CharSequence> values = new ArrayList<CharSequence>();
    values.add("somevalue");

    assertEquals(": somevalue\n", mmap.set(name, values).toString());
  }
View Full Code Here

  }

  @Test
  public void testSetTest10()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "aaa";
    ArrayList<CharSequence> values = new ArrayList<CharSequence>();
    values.add("somevalue");

    assertEquals("aaa: somevalue\n", mmap.set(name, values).toString());
  }
View Full Code Here

  }

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

    MultiMap result = mmap.set(name, strVal);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals(": \n", result.toString());
  }
View Full Code Here

  }

  @Test
  public void testSetTest12()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();
    String name = "aaa";
    String strVal = "bbb";

    MultiMap result = mmap.set(name, strVal);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals("aaa: bbb\n", result.toString());
  }
View Full Code Here

  }

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

    MultiMap result = mmap.set(name, strVal);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals("aaa: \n", result.toString());
  }
View Full Code Here

  }

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

    MultiMap result = mmap.set(name, strVal);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals(": bbb\n", result.toString());
  }
View Full Code Here

  }

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

    String name = "name";
    List<String> values = new ArrayList<String>();

    MultiMap result = mmap.set(name, values);

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

  }

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

    String name = "name";
    List<String> values = new ArrayList<String>();
    values.add("value1");
    values.add(null);

    MultiMap result = mmap.set(name, values);

    assertNotNull(result);
    assertFalse(result.isEmpty());
    assertEquals(1, result.size());
    assertEquals("name: value1\n", result.toString());
  }
View Full Code Here

TOP

Related Classes of io.vertx.core.MultiMap

Copyright © 2018 www.massapicom. 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.