Search in sources :

Example 6 with ITableFilter

use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.

the class TableFilterFacadeTest method testGetMatchCatalog.

@Test
public void testGetMatchCatalog() {
    TableFilter tableFilter = new TableFilter();
    ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
    Assert.assertNotEquals("foo", tableFilterFacade.getMatchCatalog());
    tableFilter.setMatchCatalog("foo");
    Assert.assertEquals("foo", tableFilterFacade.getMatchCatalog());
}
Also used : ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) TableFilter(org.hibernate.cfg.reveng.TableFilter) ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) Test(org.junit.Test)

Example 7 with ITableFilter

use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.

the class TableFilterFacadeTest method testGetMatchName.

@Test
public void testGetMatchName() {
    TableFilter tableFilter = new TableFilter();
    ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
    Assert.assertNotEquals("foo", tableFilterFacade.getMatchName());
    tableFilter.setMatchName("foo");
    Assert.assertEquals("foo", tableFilterFacade.getMatchName());
}
Also used : ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) TableFilter(org.hibernate.cfg.reveng.TableFilter) ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) Test(org.junit.Test)

Example 8 with ITableFilter

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());
}
Also used : ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) TableFilter(org.hibernate.cfg.reveng.TableFilter) ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) Test(org.junit.Test)

Example 9 with ITableFilter

use of org.jboss.tools.hibernate.runtime.spi.ITableFilter in project jbosstools-hibernate by jbosstools.

the class TableFilterFacadeTest method testGetMatchCatalog.

@Test
public void testGetMatchCatalog() {
    TableFilter tableFilter = new TableFilter();
    ITableFilter tableFilterFacade = FACADE_FACTORY.createTableFilter(tableFilter);
    Assert.assertNotEquals("foo", tableFilterFacade.getMatchCatalog());
    tableFilter.setMatchCatalog("foo");
    Assert.assertEquals("foo", tableFilterFacade.getMatchCatalog());
}
Also used : ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) TableFilter(org.hibernate.cfg.reveng.TableFilter) ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) Test(org.junit.Test)

Example 10 with ITableFilter

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());
}
Also used : ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) TableFilter(org.hibernate.cfg.reveng.TableFilter) ITableFilter(org.jboss.tools.hibernate.runtime.spi.ITableFilter) Test(org.junit.Test)

Aggregations

ITableFilter (org.jboss.tools.hibernate.runtime.spi.ITableFilter)85 TableFilter (org.hibernate.cfg.reveng.TableFilter)84 Test (org.junit.Test)84 Field (java.lang.reflect.Field)8 List (java.util.List)8 IFacade (org.jboss.tools.hibernate.runtime.common.IFacade)4 CoreException (org.eclipse.core.runtime.CoreException)1 PartInitException (org.eclipse.ui.PartInitException)1 ConsoleConfiguration (org.hibernate.console.ConsoleConfiguration)1 LazyDatabaseSchema (org.hibernate.eclipse.console.workbench.LazyDatabaseSchema)1 IOverrideRepository (org.jboss.tools.hibernate.runtime.spi.IOverrideRepository)1 IService (org.jboss.tools.hibernate.runtime.spi.IService)1