Package org.apache.kato.tck.api

Examples of org.apache.kato.tck.api.PropertyStore


    assertEquals("123456",array[0]);
   
  }
  public void testPropertyAsArraySeperatorAtFront() {

    PropertyStore a=new PropertyStore();
    a.setProperty("a", ",123456");
    String[] array=a.getPropertyAsArray("a",",");
    assertEquals("",array[0]);
    assertEquals("123456",array[1]);
   
  }
View Full Code Here


    assertEquals("123456",array[1]);
   
  }
  public void testPropertyAsArraySeperatorAtEnd() {

    PropertyStore a=new PropertyStore();
    a.setProperty("a", "123456,");
    String[] array=a.getPropertyAsArray("a",",");
   
    assertEquals("123456",array[0]);
    assertEquals("",array[1]);
   
  }
View Full Code Here

  }
 
 
  public void testPropertyAsArraySimpleArray() {

    PropertyStore a=new PropertyStore();
    a.setProperty("a", "1,2,3");
   
    String[] array=a.getPropertyAsArray("a",",");
    assertNotNull(array);
    assertEquals(3,array.length);
    assertEquals("1",array[0]);
    assertEquals("2",array[1]);
    assertEquals("3",array[2]);
View Full Code Here

    assertEquals("3",array[2]);
  }
 
  public void testNestedProperties() {
 
    PropertyStore a=new PropertyStore();
    a.setProperty("a", "123");
    a.setProperty("b", "${a}");
 
    String result=a.getProperty("b");
    assertEquals("123",result);
  }
View Full Code Here

    FileWriter fw = new FileWriter(outfile);
    PrintWriter pw = new PrintWriter(fw);
   
    pw.println("<tckconfig created=\"" + new Date()+"\">");
   
    PropertyStore s=store;
    while(s!=null) {
      writeStoreConfig(s,pw);
      s=s.getParent();
    }
       
    pw.println("</tckconfig>");
    pw.close();
 
View Full Code Here

TOP

Related Classes of org.apache.kato.tck.api.PropertyStore

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.