use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewTableFilter.
@Test
public void testNewTableFilter() {
ITableFilter tableFilter = service.newTableFilter();
Assert.assertNotNull(tableFilter);
Object target = ((IFacade) tableFilter).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof TableFilter);
}
use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class TableFilterFacadeTest method testSetMatchSchema.
@Test
public void testSetMatchSchema() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNotEquals("foo", tableFilter.getMatchSchema());
tableFilterFacade.setMatchSchema("foo");
Assert.assertEquals("foo", tableFilter.getMatchSchema());
}
use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class TableFilterFacadeTest method testSetExclude.
@Test
public void testSetExclude() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNull(tableFilter.getExclude());
tableFilterFacade.setExclude(true);
Assert.assertTrue(tableFilter.getExclude());
}
use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class TableFilterFacadeTest method testGetExclude.
@Test
public void testGetExclude() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNull(tableFilterFacade.getExclude());
tableFilter.setExclude(true);
Assert.assertTrue(tableFilterFacade.getExclude());
}
use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class TableFilterFacadeTest method testGetMatchSchema.
@Test
public void testGetMatchSchema() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNotEquals("foo", tableFilterFacade.getMatchSchema());
tableFilter.setMatchSchema("foo");
Assert.assertEquals("foo", tableFilterFacade.getMatchSchema());
}
Aggregations