Examples of ConfigString


Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test name twice.
   */
  public void testNameTwice() {
    ConfigString string = new ConfigString("${name}${name}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark"));
    assertEquals("markmark", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test name trice.
   */
  public void testNameTrice() {
    ConfigString string = new ConfigString("${name}${name}-.sdfo.${name}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark"));
    assertEquals("markmark-.sdfo.mark", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test one variable.
   */
  public void testOneVariable() {
    ConfigString string = new ConfigString("${jnp}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark", variables));
    assertEquals(JNP, string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test name and one variable.
   */
  public void testNameAndOneVariable() {
    ConfigString string = new ConfigString("${jnp}.${name}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark", variables));
    assertEquals(JNP + ".mark", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test name and two variables.
   */
  public void testNameAndTwoVariables() {
    ConfigString string = new ConfigString("${jnp}.${name}_${company}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark", variables));
    assertEquals(JNP + ".mark_" + COMPANY, string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test two names and two variables.
   */
  public void testTwoNamesAndTwoVariables() {
    ConfigString string =
        new ConfigString("${jnp}.${name}_${company} ${name}", variables, properties);
    assertTrue("sub failed in expand", string.expand("mark", variables));
    assertEquals(JNP + ".mark_" + COMPANY + " mark", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test one property.
   */
  public void testOneProperty() {
    ConfigString string = new ConfigString("before @{a.b} after", variables, properties);
    assertTrue("sub failed in expand", string
        .expand("mark", properties));
    assertEquals("before A.B after", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test two properties.
   */
  public void testTwoProperties() {
    ConfigString string =
        new ConfigString("before @{a.b} after @{a.b.c}", variables, properties);
    assertTrue("sub failed in expand", string
        .expand("mark", properties));
    assertEquals("before A.B after A.B.C", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test two same properties.
   */
  public void testTwoSameProperties() {
    ConfigString string = new ConfigString("before @{a.b} after @{a.b}", variables, properties);
    assertTrue("sub failed in expand", string
        .expand("mark", properties));
    assertEquals("before A.B after A.B", string.toString());

    string.reset(); // Reintialize
  }
View Full Code Here

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test one name and two properties.
   */
  public void testOneNameAndTwoProperties() {
    ConfigString string =
        new ConfigString("before @{a.b} ${name} @{a.b.c}", variables, properties);
    assertTrue("sub failed in expand", string
        .expand("mark", properties));
    assertEquals("before A.B mark A.B.C", string.toString());

    string.reset(); // Reintialize
  }
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.