use of org.teiid.query.sql.symbol.Function in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testFunction1.
public void testFunction1() {
// $NON-NLS-1$
Function f = new Function("concat", new Expression[] {});
helpTest(f, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Function in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testVisitSelect4.
public void testVisitSelect4() {
Select select = new Select();
select.addSymbol(new ExpressionSymbol("x", // $NON-NLS-1$ //$NON-NLS-2$
new Function("length", new Expression[] { exampleElement(true, 0) })));
// $NON-NLS-1$
select.addSymbol(new MultipleElementSymbol("abc.*"));
select.addSymbol(exampleElement(true, 1));
helpTest(select, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Function in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testFunction2.
public void testFunction2() {
// $NON-NLS-1$
Function f = new Function("concat", new Expression[] { exampleElement(true, 0), exampleElement(true, 1) });
helpTest(f, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Function in project teiid by teiid.
the class TestFunction method testFunction1.
// ################################## TEST HELPERS ################################
// ################################## ACTUAL TESTS ################################
public void testFunction1() {
// $NON-NLS-1$ //$NON-NLS-2$
Function f1 = new Function("f1", new Expression[] { new Constant("xyz") });
// $NON-NLS-1$ //$NON-NLS-2$
Function f2 = new Function("f1", new Expression[] { new Constant("xyz") });
UnitTestUtil.helpTestEquivalence(0, f1, f2);
}
use of org.teiid.query.sql.symbol.Function in project teiid by teiid.
the class TestFunction method testFunction6.
public void testFunction6() {
// $NON-NLS-1$ //$NON-NLS-2$
Function f1 = new Function("f1", new Expression[] { new Constant("xyz") });
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
Function f2 = new Function("f1", new Expression[] { new Constant("xyz"), new Constant("xyz") });
UnitTestUtil.helpTestEquivalence(1, f1, f2);
}
Aggregations