Package org.jostraca

Examples of org.jostraca.BasicTemplateElementProcessor.process()


  public void testProcessText() throws Exception {
    TemplateActionHandlerStub     tahs  = new TemplateActionHandlerStub();
    BasicTemplateElementProcessor btep = create( tahs );
    String content   = "content";
    Block  textBlock = new Block( Block.TYPE_text, content );
    btep.process( textBlock );

    assertTrue( content.equals( tahs.getLastAppendedContent() ) );
  }

View Full Code Here


  public void testProcessText() throws Exception {
    TemplateActionHandlerStub     tahs  = new TemplateActionHandlerStub();
    BasicTemplateElementProcessor btep = create( tahs );
    String content   = "content";
    Block  textBlock = new Block( Block.TYPE_text, content );
    btep.process( textBlock );

    assertTrue( content.equals( tahs.getLastAppendedContent() ) );
  }

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.