Examples of TreeMapValuesProvider


Examples of yms.tinyvelocity.providers.TreeMapValuesProvider

    model.put("items", lst);
    model.put("item", "YY");
    String result = engine.parse("${item}\n" +
                    "#foreach($item in $items)\n" +
                    "BBB:${item}\n" +
                    "#end", new TreeMapValuesProvider(model)).trim();
    assertEquals("YY\r\n" +
           "BBB:1\r\n" +
           "BBB:2\r\n" +
           "BBB:3",result);
  }
View Full Code Here

Examples of yms.tinyvelocity.providers.TreeMapValuesProvider

                      "#if ($item)\n" +
                        "BBB:${item}\n" +
                      "#else\n" +
                        "CCC:${item}\n" +
                      "#end\n" +
                    "#end", new TreeMapValuesProvider(model)).trim();
    assertEquals("YY\r\n" +
           "CCC:1\r\n" +
           "BBB:true\r\n" +
           "CCC:3",result);
  }
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.