@Test public void testJoinFilters() { String expected = " specialSign.owner = dancer.id"; String obtained = BOTH.joinFiltersToString(FACTORY); assertNotNull("BOTH.joinFilters(FACTORY) NULL", obtained); assertEquals("BOTH.joinFilters(FACTORY) KO", expected, obtained); }
@Test public void testFilters() { String expected = "specialSign.type = 'freckles' AND specialSign.location = 'censored'"; String obtained = BOTH.filters(FACTORY); assertNotNull("BOTH.filters(FACTORY) NULL", obtained); assertEquals("BOTH.filters(FACTORY) KO", expected, obtained); }
@Test public void testEntities() { String expected = ", SpecialSign specialSign"; String obtained = BOTH.entities(FACTORY); assertNotNull("BOTH.entities(FACTORY) NULL", obtained); assertEquals("BOTH.entities(FACTORY) KO", expected, obtained); }