Package org.jostraca.resource

Examples of org.jostraca.resource.PartLoader.load()



  public void testLoad() throws Exception {
    PartLoader pl  = new PartLoader( "<!--part-begin:", "-->", "<!--part-end:", "-->" );
    File       f   = FileUtil.findFile( "org/jostraca/resource/test/partloader.txt" );
    String     foo = pl.load( f, "foo" );
    assertEquals( 5, foo.length() );

    String     bar = pl.load( f, "bar" );
    assertEquals( 53, bar.length() );
  }
View Full Code Here


    PartLoader pl  = new PartLoader( "<!--part-begin:", "-->", "<!--part-end:", "-->" );
    File       f   = FileUtil.findFile( "org/jostraca/resource/test/partloader.txt" );
    String     foo = pl.load( f, "foo" );
    assertEquals( 5, foo.length() );

    String     bar = pl.load( f, "bar" );
    assertEquals( 53, bar.length() );
  }


}
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.