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());
}
use of org.jboss.tools.hibernate.runtime.spi.ITable in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testGetIdentifierValue.
@Test
public void testGetIdentifierValue() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
IValue valueFacade = tableFacade.getIdentifierValue();
Assert.assertNull(valueFacade);
KeyValue value = new SimpleValue(null);
table.setIdentifierValue(value);
valueFacade = tableFacade.getIdentifierValue();
Assert.assertSame(value, ((IFacade) valueFacade).getTarget());
}
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 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 testGetCatalog.
@Test
public void testGetCatalog() {
Table table = new Table();
ITable tableFacade = FACADE_FACTORY.createTable(table);
Assert.assertNull(tableFacade.getCatalog());
table.setCatalog("foo");
Assert.assertEquals("foo", tableFacade.getCatalog());
}
Aggregations