1213141516171819202122
public class SysDateFunctionUnitTest { @Test public void testCall() { SysDateFunction fun = new SysDateFunction(); AviatorObject result = fun.call(null); assertNotNull(result); assertTrue(result.getValue(null) instanceof Date); }
222324252627282930
} @Test(expected = IllegalArgumentException.class) public void hasArugment() { SysDateFunction fun = new SysDateFunction(); fun.call(null, AviatorBoolean.TRUE); }