use of com.orm.androrm.statement.LikeStatement in project androrm by androrm.
the class OrStatementTest method testParanthesisSurrounding.
public void testParanthesisSurrounding() {
AndStatement left = new AndStatement(new Statement("foo", "bar"), new Statement("bar", "baz"));
AndStatement right = new AndStatement(new Statement("baz", "foo"), new LikeStatement("baz", "bar"));
OrStatement or = new OrStatement(left, right);
assertEquals("(foo = 'bar' AND bar = 'baz' OR baz = 'foo' AND baz LIKE '%bar%')", or.toString());
}
Aggregations