use of com.ctrip.platform.dal.dao.sqlbuilder.Clause in project dal by ctripcorp.
the class ExpressionsTest method testOr.
@Test
public void testOr() throws SQLException {
Clause test = OR;
setEnv(test);
assertEquals("OR", test.build());
}
use of com.ctrip.platform.dal.dao.sqlbuilder.Clause in project dal by ctripcorp.
the class ExpressionsTest method testNot.
@Test
public void testNot() throws SQLException {
Clause test = NOT;
setEnv(test);
assertEquals("NOT", test.build());
}
use of com.ctrip.platform.dal.dao.sqlbuilder.Clause in project dal by ctripcorp.
the class ExpressionsTest method testGreaterThan.
@Test
public void testGreaterThan() throws SQLException {
Clause test = greaterThan(template);
setEnv(test);
assertEquals(wrappedTemplate + " > ?", test.build());
}
use of com.ctrip.platform.dal.dao.sqlbuilder.Clause in project dal by ctripcorp.
the class ExpressionsTest method testLessThanEquals.
@Test
public void testLessThanEquals() throws SQLException {
Clause test = lessThanEquals(template);
setEnv(test);
assertEquals(wrappedTemplate + " <= ?", test.build());
}
use of com.ctrip.platform.dal.dao.sqlbuilder.Clause in project dal by ctripcorp.
the class ExpressionsTest method testNotEqual.
@Test
public void testNotEqual() throws SQLException {
Clause test = notEqual(template);
setEnv(test);
assertEquals(wrappedTemplate + " <> ?", test.build());
}
Aggregations