use of org.teiid.query.sql.lang.IsNullCriteria in project teiid by teiid.
the class TestIsNullCriteriaImpl method helpExample.
public static IsNullCriteria helpExample(boolean negated) {
// $NON-NLS-1$ //$NON-NLS-2$
IsNullCriteria crit = new IsNullCriteria(TestElementImpl.helpExample("vm1.g1", "e1"));
crit.setNegated(negated);
return crit;
}
use of org.teiid.query.sql.lang.IsNullCriteria in project teiid by teiid.
the class TestIsNullCriteria method testSelfEquivalence.
public void testSelfEquivalence() {
IsNullCriteria c1 = new IsNullCriteria();
c1.setNegated(true);
// $NON-NLS-1$
c1.setExpression(new Constant("abc"));
int equals = 0;
UnitTestUtil.helpTestEquivalence(equals, c1, c1);
}
use of org.teiid.query.sql.lang.IsNullCriteria in project teiid by teiid.
the class TestIsNullCriteria method testNonEquivalence2.
public void testNonEquivalence2() {
// $NON-NLS-1$
IsNullCriteria c1 = example("abc", true);
// $NON-NLS-1$
IsNullCriteria c2 = example("abc", false);
int equals = -1;
UnitTestUtil.helpTestEquivalence(equals, c1, c2);
}
use of org.teiid.query.sql.lang.IsNullCriteria in project teiid by teiid.
the class TestIsNullCriteria method testEquals1.
// ################################## ACTUAL TESTS ################################
public void testEquals1() {
// $NON-NLS-1$
IsNullCriteria c1 = example("abc", true);
// $NON-NLS-1$
IsNullCriteria c2 = example("abc", true);
// $NON-NLS-1$ //$NON-NLS-2$
assertTrue("Equivalent is null criteria don't compare as equal: " + c1 + ", " + c2, c1.equals(c2));
}
use of org.teiid.query.sql.lang.IsNullCriteria in project teiid by teiid.
the class TestIsNullCriteria method testEquivalence.
public void testEquivalence() {
// $NON-NLS-1$
IsNullCriteria c1 = example("abc", true);
// $NON-NLS-1$
IsNullCriteria c2 = example("abc", true);
int equals = 0;
UnitTestUtil.helpTestEquivalence(equals, c1, c2);
}
Aggregations