assertEquals(1, result.size());
}
@Test
public void testForWordByWordFalse() {
TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
tp1.setName("foo bar");
TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
tp2.setName("bar bar");
catalogue.getCatalogueProperties().add(tp1);
catalogue.getCatalogueProperties().add(tp2);
NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
3, "foo", 0.8f, false, true);
NGramCheckEObjectCondition condition1 = new NGramCheckEObjectCondition(
ConstraintsPackage.eINSTANCE.getTechnicalProperty_Name(),
nGramCheckCondition,catalogue );
SELECT statement = new SELECT(new FROM(catalogue
.getCatalogueProperties()), new WHERE(condition1));
IQueryResult result = statement.execute();