Package org.jostraca

Examples of org.jostraca.NameValueListPSM


  /* Public Methods << */

  public void testMod() throws Exception {

    NameValueListPSM qclm = new NameValueListPSM();
    PropertySet props = new PropertySet();
    props.set( "na", "va");
    props.set( "nb", "vb");
    props.set( "nc", "vc");
    props.set( "n\"n", "v\nv");
    props.set( Property.lang_NameValueList_nameQuote,     "'" );  
    props.set( Property.lang_NameValueList_itemSeparator, ","  );  
    props.set( Property.lang_NameValueList_valueQuote,    "'" );  
    props.set( Property.lang_NameValueList_pairSeparator, ", "  );  

    qclm.modify( props, props );

    // note: no escaping done for this test
    assertEquals( "'lang.NameValueList.nameQuote',''', 'nb','vb', 'lang.NameValueList.valueQuote',''', 'n\"n','v\nv', 'na','va', 'lang.NameValueList.pairSeparator',', ', 'lang.NameValueList.itemSeparator',',', 'nc','vc'",
                  props.get( Property.jostraca_properties_NameValueList ) );

View Full Code Here

TOP

Related Classes of org.jostraca.NameValueListPSM

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.