PredicateConverter { String getOperatorFromValue(String value) { String operator = null; switch (value) { case EQ: operator = "="; break; case GT: operator = ">"; break; case GTE: operator = ">="; break; case LT: operator = "<"; break; case LTE: operator = "<="; break; default: LOGGER.warn("Operator '{}' is not yet supported", value); } return operator; } PredicateConverter(Predicate predicate); SqlPredicate astToSqlPredicate();  }
@Test void shouldTestBooleanOperator() { assertThat(target.getOperatorFromValue(EQ), is("=")); assertThat(target.getOperatorFromValue(LT), is("<")); assertThat(target.getOperatorFromValue(LTE), is("<=")); assertThat(target.getOperatorFromValue(GT), is(">")); assertThat(target.getOperatorFromValue(GTE), is(">=")); }