Package org.jostraca.util

Examples of org.jostraca.util.PrefixOperatorPSM$FileOperation


  // public methods

  public void testMod() throws Exception {

    PrefixOperatorPSM qclm = new PrefixOperatorPSM();
    PropertySet props = new PropertySet();
    props.set( Property.jostraca_template_folder, FileUtil.findFile( "org/jostraca/util/test" ).getAbsolutePath() );
    props.set( "tr-file",   "(file) tr-file.txt");
    props.set( "tr-file-q", "(file/tr) tr-file.txt");
    props.set( Property.main_OutputFolder, FileUtil.findFile( "org/jostraca/util/test/out" ).getAbsolutePath() );
    props.set( "or-file", "(file/or) or-file.txt");

    qclm.modify( props, props );

    assertTrue( props.get( "tr-file" ).replace('\\','/').endsWith( "jostraca/util/test/tr-file.txt" ) );
    assertTrue( props.get( "tr-file-q" ).replace('\\','/').endsWith( "jostraca/util/test/tr-file.txt" ) );
    assertTrue( props.get( "or-file" ).replace('\\','/').endsWith( "jostraca/util/test/out/or-file.txt" ) );
  }
View Full Code Here

TOP

Related Classes of org.jostraca.util.PrefixOperatorPSM$FileOperation

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.