// ----------------------------------------------------------------------------------------------------------------
@Test
public void shouldParseConstraintFromStringWithIsContainsExpressionWithPropertyAndNoSelectorNameOnlyIfThereIsOneSelectorSource() {
NamedSelector selector = new NamedSelector(selectorName("tableA"));
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"));