use of org.teiid.query.sql.proc.IfStatement in project teiid by teiid.
the class TestIfStatement method testGetIfBlock.
// ################################## ACTUAL TESTS ################################
public void testGetIfBlock() {
IfStatement b1 = sample1();
// $NON-NLS-1$
assertTrue("Incorrect IfBlock on statement", b1.getIfBlock().equals(TestBlock.sample1()));
}
use of org.teiid.query.sql.proc.IfStatement in project teiid by teiid.
the class TestIfStatement method testNonEquivalence.
public void testNonEquivalence() {
IfStatement s1 = sample1();
IfStatement s2 = sample2();
int equals = -1;
UnitTestUtil.helpTestEquivalence(equals, s1, s2);
}
use of org.teiid.query.sql.proc.IfStatement in project teiid by teiid.
the class TestIfStatement method sample2.
public static final IfStatement sample2() {
Block ifBlock = TestBlock.sample2();
Block elseBlock = TestBlock.sample1();
Criteria criteria = TestSetCriteria.sample2();
return new IfStatement(criteria, ifBlock, elseBlock);
}
use of org.teiid.query.sql.proc.IfStatement in project teiid by teiid.
the class TestIfStatement method sample1.
// ################################## TEST HELPERS ################################
public static final IfStatement sample1() {
Block ifBlock = TestBlock.sample1();
Block elseBlock = TestBlock.sample2();
Criteria criteria = TestSetCriteria.sample1();
return new IfStatement(criteria, ifBlock, elseBlock);
}
use of org.teiid.query.sql.proc.IfStatement in project teiid by teiid.
the class TestIfStatement method testGetCondition.
public void testGetCondition() {
IfStatement b1 = sample1();
// $NON-NLS-1$
assertTrue("Incorrect IfBlock on statement", b1.getCondition().equals(TestSetCriteria.sample1()));
}
Aggregations