use of org.beetl.core.Template in project beetl2.0 by javamonkey.
the class AssignTest method testId.
@Test
public void testId() throws Exception {
Template t = gt.getTemplate("/exp/assign/id_template.html");
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/assign/id_expected.html"), str);
t = gt.getTemplate("/exp/assign/id_template.html");
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/assign/id_expected.html"), str);
}
use of org.beetl.core.Template in project beetl2.0 by javamonkey.
the class BigNumberTest method testMul.
@Test
public void testMul() throws Exception {
Template t = gt.getTemplate("/exp/bignumber/number_mul_template.html");
this.bind(t, "d1", d1, "d2", d2);
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/bignumber/number_mul_expected.html"), str);
t = gt.getTemplate("/exp/bignumber/number_mul_template.html");
this.bind(t, "d1", d1, "d2", d2);
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/bignumber/number_mul_expected.html"), str);
}
use of org.beetl.core.Template in project beetl2.0 by javamonkey.
the class BigNumberTest method testDiv.
@Test
public void testDiv() throws Exception {
Template t = gt.getTemplate("/exp/bignumber/number_div_template.html");
this.bind(t, "d1", d1, "d2", d2);
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/bignumber/number_div_expected.html"), str);
t = gt.getTemplate("/exp/bignumber/number_div_template.html");
this.bind(t, "d1", d1, "d2", d2);
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/bignumber/number_div_expected.html"), str);
}
use of org.beetl.core.Template in project beetl2.0 by javamonkey.
the class CompareTest method testBasic.
@Test
public void testBasic() throws Exception {
Template t = gt.getTemplate("/exp/compare_template.html");
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/compare_expected.html"), str);
t = gt.getTemplate("/exp/compare_template.html");
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/compare_expected.html"), str);
}
use of org.beetl.core.Template in project beetl2.0 by javamonkey.
the class GeneralNumberTest method testMinus.
@Test
public void testMinus() throws Exception {
Template t = gt.getTemplate("/exp/general_minus_template.html");
this.bind(t, "d1", d1, "d2", d2);
String str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/general_minus_expected.html"), str);
t = gt.getTemplate("/exp/general_minus_template.html");
this.bind(t, "d1", d1, "d2", d2);
str = t.render();
AssertJUnit.assertEquals(this.getFileContent("/exp/general_minus_expected.html"), str);
}
Aggregations