use of com.dexels.navajo.document.types.StopwatchTime in project navajo by Dexels.
the class StandardFunctionsTest method testToMilliseconds.
@Test
public void testToMilliseconds() {
FunctionInterface fi = fff.getInstance(cl, "ToMilliseconds");
fi.reset();
fi.insertStopwatchOperand(new StopwatchTime(20));
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
assertEquals(Integer.class, o.getClass());
fi.reset();
fi.insertClockTimeOperand(new ClockTime(new Date()));
o = fi.evaluateWithTypeChecking();
assertNotNull(o);
assertEquals(Long.class, o.getClass());
}
Aggregations