mock(Source.class));
assertThat(constraint, is(instanceOf(FullTextSearch.class)));
FullTextSearch search = (FullTextSearch)constraint;
assertThat(search.selectorName(), is(selectorName("tableA")));
assertThat(search.getPropertyName(), is(nullValue()));
assertThat(search.fullTextSearchExpression(), is("term1 term2 -term3"));
}
@Test( expected = ParsingException.class )
public void shouldFailToParseConstraintFromStringWithContainsExpressionWithNoCommaAfterSelectorName() {
parser.parseConstraint(tokens("CONTAINS(propertyA 'term1 term2 -term3')"), typeSystem, mock(Source.class));