use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewOneToMany.
@Test
public void testNewOneToMany() {
IPersistentClass persistentClass = service.newRootClass();
IValue oneToMany = service.newOneToMany(persistentClass);
Assert.assertNotNull(oneToMany);
Object target = ((IFacade) oneToMany).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof OneToMany);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade 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.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testSimpleValue.
@Test
public void testSimpleValue() {
IValue simpleValue = service.newSimpleValue();
Assert.assertNotNull(simpleValue);
Object target = ((IFacade) simpleValue).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof SimpleValue);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewArray.
@Test
public void testNewArray() {
IPersistentClass persistentClass = service.newRootClass();
IValue array = service.newArray(persistentClass);
Assert.assertNotNull(array);
Object target = ((IFacade) array).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Array);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewSpecialRootClass.
@Test
public void testNewSpecialRootClass() {
IProperty property = service.newProperty();
IPersistentClass pc = service.newRootClass();
property.setPersistentClass(pc);
IPersistentClass specialRootClass = service.newSpecialRootClass(property);
Assert.assertNotNull(specialRootClass);
Object target = ((IFacade) specialRootClass).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof RootClass);
Assert.assertSame(property, specialRootClass.getProperty());
}
Aggregations