use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class TableFilterFacadeTest method testSetMatchCatalog.
@Test
public void testSetMatchCatalog() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNotEquals("foo", tableFilter.getMatchCatalog());
tableFilterFacade.setMatchCatalog("foo");
Assert.assertEquals("foo", tableFilter.getMatchCatalog());
}
use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateTableFilter.
@Test
public void testCreateTableFilter() {
TableFilter tableFilter = new TableFilter();
ITableFilter facade = facadeFactory.createTableFilter(tableFilter);
Assert.assertSame(tableFilter, ((IFacade) facade).getTarget());
}
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 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 testSetMatchName.
@Test
public void testSetMatchName() {
TableFilter tableFilter = new TableFilter();
ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
Assert.assertNotEquals("foo", tableFilter.getMatchName());
tableFilterFacade.setMatchName("foo");
Assert.assertEquals("foo", tableFilter.getMatchName());
}
Aggregations