use of org.beetl.core.User in project beetl2.0 by javamonkey.
the class SetTest method testPojo.
@Test
public void testPojo() throws Exception {
Template t = gt.getTemplate("/exp/set_pojo_template.html");
User user = new User("joelli");
User lover = new User("lucymiao");
t.binding("user", user);
t.binding("lover", lover);
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/set_pojo_expected.html"), str);
t = gt.getTemplate("/exp/set_pojo_template.html");
t.binding("user", user);
t.binding("lover", lover);
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/set_pojo_expected.html"), str);
}
Aggregations