use of com.revolsys.record.query.Condition in project com.revolsys.open by revolsys.
the class QueryValueTest method testEqual.
private void testEqual() {
final Condition trueCondition1 = Q.equal(this.idField, 10);
assertConditionTrue(trueCondition1, this.record);
final Condition trueCondition2 = Q.equal(this.idField, "10");
assertConditionTrue(trueCondition2, this.record);
final Condition falseCondition1 = Q.equal(this.idField, 11);
assertConditionFalse(falseCondition1, this.record);
}
use of com.revolsys.record.query.Condition in project com.revolsys.open by revolsys.
the class QueryValueTest method testGreaterThan.
private void testGreaterThan() {
final Condition trueCondition1 = Q.greaterThan(this.idField, 9);
assertConditionTrue(trueCondition1, this.record);
final Condition trueCondition2 = Q.greaterThan(this.idField, "9");
assertConditionTrue(trueCondition2, this.record);
final Condition falseCondition1 = Q.greaterThan(this.idField, 10);
assertConditionFalse(falseCondition1, this.record);
}
use of com.revolsys.record.query.Condition in project com.revolsys.open by revolsys.
the class QueryValueTest method testGreaterThanEqual.
private void testGreaterThanEqual() {
final Condition trueCondition1 = Q.greaterThanEqual(this.idField, 10);
assertConditionTrue(trueCondition1, this.record);
final Condition trueCondition2 = Q.greaterThanEqual(this.idField, "10");
assertConditionTrue(trueCondition2, this.record);
final Condition falseCondition1 = Q.greaterThanEqual(this.idField, 11);
assertConditionFalse(falseCondition1, this.record);
}
use of com.revolsys.record.query.Condition in project com.revolsys.open by revolsys.
the class QueryValueTest method testLessThanEqual.
private void testLessThanEqual() {
final Condition trueCondition1 = Q.lessThanEqual(this.idField, 10);
assertConditionTrue(trueCondition1, this.record);
final Condition trueCondition2 = Q.lessThanEqual(this.idField, "10");
assertConditionTrue(trueCondition2, this.record);
final Condition falseCondition1 = Q.lessThanEqual(this.idField, 9);
assertConditionFalse(falseCondition1, this.record);
}
use of com.revolsys.record.query.Condition in project com.revolsys.open by revolsys.
the class QueryValueTest method testLessThan.
private void testLessThan() {
final Condition trueCondition1 = Q.lessThan(this.idField, 11);
assertConditionTrue(trueCondition1, this.record);
final Condition trueCondition2 = Q.lessThan(this.idField, "11");
assertConditionTrue(trueCondition2, this.record);
final Condition falseCondition1 = Q.lessThan(this.idField, 10);
assertConditionFalse(falseCondition1, this.record);
}
Aggregations