use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testGetSubselect.
@Test
public void testGetSubselect() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
Assert.assertNull(tableFacade.getSubselect());
table.setSubselect("foo");
Assert.assertEquals("foo", tableFacade.getSubselect());
}
use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testGetName.
@Test
public void testGetName() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
Assert.assertNull(tableFacade.getName());
table.setName("foo");
Assert.assertEquals("foo", tableFacade.getName());
}
use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testIsPhysicalTable.
@Test
public void testIsPhysicalTable() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
table.setSubselect("foo");
Assert.assertFalse(tableFacade.isPhysicalTable());
table.setSubselect(null);
Assert.assertTrue(tableFacade.isPhysicalTable());
}
use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testGetSchema.
@Test
public void testGetSchema() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
Assert.assertNull(tableFacade.getSchema());
table.setSchema("foo");
Assert.assertEquals("foo", tableFacade.getSchema());
}
use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testIsAbstract.
@Test
public void testIsAbstract() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
table.setAbstract(true);
Assert.assertTrue(tableFacade.isAbstract());
table.setAbstract(false);
Assert.assertFalse(tableFacade.isAbstract());
}
Aggregations