Examples of ConfigString


Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test name within a property.
   */
  public void testNameWithinAProperty() {
    ConfigString string = new ConfigString("@{a.${name}.c}", variables, properties);
    assertTrue("sub failed in expand", string.expand("b", properties));
    assertEquals("A.B.C", string.toString());

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

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test suffix variable within a property.
   */
  public void testSUFFIXVariableWithinAProperty() {
    ConfigString string = new ConfigString("@{a.${name}${suffix}}", variables, properties);
    assertTrue("sub failed in expand", string.expand("b", variables,
        properties));
    assertEquals("A.B.gotcha", string.toString());

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

Examples of org.jnetpcap.util.config.ConfigString

  /**
   * Test recursive properties.
   */
  public void testRecursiveProperties() {
    ConfigString string = new ConfigString("@{a.a}", variables, properties);
    assertTrue("sub failed in expand", string.expand("", variables,
        properties));
    assertEquals("c.c", string.toString());

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

Examples of org.jnetpcap.util.config.ConfigString

 
  /**
   * Test recursive variables.
   */
  public void testRecursiveVariables() {
    ConfigString string = new ConfigString("${A.A}", variables, properties);
    assertTrue("sub failed in expand", string.expand("", variables,
        properties));
    assertEquals("C.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.