Constraint constraint = parser.parseConstraint(tokens("CONTAINS(propertyA,'term1 term2 -term3')"), typeSystem, selector);
assertThat(constraint, is(instanceOf(FullTextSearch.class)));
FullTextSearch search = (FullTextSearch)constraint;
assertThat(search.selectorName(), is(selectorName("tableA")));
assertThat(search.getPropertyName(), is("propertyA"));
assertThat(search.fullTextSearchExpression(), is("term1 term2 -term3"));
}
@Test
public void shouldParseConstraintFromStringWithIsContainsExpressionWithSelectorNameAndProperty() {
Constraint constraint = parser.parseConstraint(tokens("CONTAINS(tableA.propertyA,'term1 term2 -term3')"),