Examples of SampleIfEmptyFalseExpressionCompiledTemplate


Examples of com.floreysoft.jmte.sample.SampleIfEmptyFalseExpressionCompiledTemplate

  @Test
  public void compiledIfSample() throws Exception {
    String input = "${if !bean.trueCond}${address}${else}NIX${end}";
    String interpretedOutput = newEngine().transform(input, DEFAULT_MODEL);
    String compiledOutput = new SampleIfEmptyFalseExpressionCompiledTemplate(
        newEngine()).transform(DEFAULT_MODEL, DEFAULT_LOCALE,
        MODEL_ADAPTOR, null);
    assertEquals(interpretedOutput, compiledOutput);
  }
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.