Package org.jostraca

Examples of org.jostraca.BasicTemplateElementProcessor


  }


  public void testCreate() throws Exception {
    TemplateActionHandler         tah  = new TemplateActionHandlerStub();
    BasicTemplateElementProcessor btep = create( tah );
  }
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


  private BasicTemplateElementProcessor create( TemplateActionHandler pTemplateActionHandler ) throws Exception {
    PropertySet                   ps   = new PropertySet();
    ps.set( "o", "<%" );
    BasicTemplateElementProcessor btep = new BasicTemplateElementProcessor( pTemplateActionHandler, ps );
    return btep;
  }
View Full Code Here

  }


  public void testCreate() throws Exception {
    TemplateActionHandler         tah  = new TemplateActionHandlerStub();
    BasicTemplateElementProcessor btep = create( tah );
  }
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

  private BasicTemplateElementProcessor create( TemplateActionHandler pTemplateActionHandler ) throws Exception {
    Template    tm = new BasicTemplate();
    PropertySet ps   = new PropertySet();
    ps.set( "o", "<%" );
    BasicTemplateElementProcessor btep = new BasicTemplateElementProcessor( pTemplateActionHandler, ps, tm );
    return btep;
  }
View Full Code Here

TOP

Related Classes of org.jostraca.BasicTemplateElementProcessor

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.