This commit is contained in:
Looly
2022-06-21 20:08:58 +08:00
parent bddb24711e
commit beb3dd248d
8 changed files with 72 additions and 64 deletions

View File

@@ -17,7 +17,7 @@ public class AviatorTest {
@Test
public void simpleTest(){
final Foo foo = new Foo(100, 3.14f, DateUtil.parseDate("2020-11-12"));
final Foo foo = new Foo(100, 3.14f, DateUtil.parse("2020-11-12"));
final ExpressionEngine engine = new AviatorEngine();
String exp =
"\"[foo i=\"+ foo.i + \", f=\" + foo.f + \", date.year=\" + (foo.date.year+1900) + \", date.month=\" + foo.date.month + \", bars[0].name=\" + #foo.bars[0].name + \"]\"";