use of com.dexels.navajo.expression.api.FunctionInterface in project navajo by Dexels.
the class StandardFunctionsTest method testFileSize.
@Test
public void testFileSize() {
FunctionInterface fi = fff.getInstance(cl, "FileSize");
fi.reset();
fi.insertOperand(Operand.NULL);
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
}
use of com.dexels.navajo.expression.api.FunctionInterface in project navajo by Dexels.
the class StandardFunctionsTest method testStringPadding2.
@Test
public void testStringPadding2() {
FunctionInterface fi = fff.getInstance(cl, "StringPadding");
fi.reset();
fi.insertStringOperand("aap");
fi.insertIntegerOperand(Integer.valueOf(10));
fi.insertStringOperand("*");
fi.insertBooleanOperand(true);
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
assertEquals(String.class, o.getClass());
assertEquals("*******aap", o.toString());
}
use of com.dexels.navajo.expression.api.FunctionInterface in project navajo by Dexels.
the class StandardFunctionsTest method testRandomString.
@Test
public void testRandomString() {
FunctionInterface fi = fff.getInstance(cl, "RandomString");
fi.reset();
fi.insertIntegerOperand(10);
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
assertEquals(String.class, o.getClass());
}
use of com.dexels.navajo.expression.api.FunctionInterface in project navajo by Dexels.
the class StandardFunctionsTest method testGetPropertyType.
@Test
public void testGetPropertyType() {
FunctionInterface fi = fff.getInstance(cl, "GetPropertyType");
fi.reset();
fi.setInMessage(createTestNavajo());
fi.insertStringOperand("/Single/Selectie");
Object o = fi.evaluateWithTypeChecking();
assertEquals("selection", o.toString());
}
use of com.dexels.navajo.expression.api.FunctionInterface in project navajo by Dexels.
the class StandardFunctionsTest method testCheckUrl.
@Test
public void testCheckUrl() {
FunctionInterface fi = fff.getInstance(cl, "CheckUrl");
fi.reset();
fi.insertStringOperand("http://www.dexels.com");
Object o = fi.evaluateWithTypeChecking();
assertNotNull(o);
assertEquals(Boolean.class, o.getClass());
}
Aggregations