use of org.jboss.tools.hibernate.runtime.spi.IProperty in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateSpecialRootClass.
@Test
public void testCreateSpecialRootClass() {
Property target = new Property();
PersistentClass pc = new RootClass(null);
target.setPersistentClass(pc);
IProperty property = facadeFactory.createProperty(target);
IPersistentClass specialRootClass = facadeFactory.createSpecialRootClass(property);
Assert.assertNotNull(specialRootClass);
Object object = ((IFacade) specialRootClass).getTarget();
Assert.assertNotNull(object);
Assert.assertTrue(object instanceof RootClass);
Assert.assertSame(property, specialRootClass.getProperty());
}
use of org.jboss.tools.hibernate.runtime.spi.IProperty in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateSpecialRootClass.
@Test
public void testCreateSpecialRootClass() {
Property target = new Property();
PersistentClass pc = new RootClass(null);
target.setPersistentClass(pc);
IProperty property = facadeFactory.createProperty(target);
IPersistentClass specialRootClass = facadeFactory.createSpecialRootClass(property);
Assert.assertNotNull(specialRootClass);
Object object = ((IFacade) specialRootClass).getTarget();
Assert.assertNotNull(object);
Assert.assertTrue(object instanceof RootClass);
Assert.assertSame(property, specialRootClass.getProperty());
}
use of org.jboss.tools.hibernate.runtime.spi.IProperty in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewProperty.
@Test
public void testNewProperty() {
IProperty property = service.newProperty();
Assert.assertNotNull(property);
Object target = ((IFacade) property).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Property);
}
use of org.jboss.tools.hibernate.runtime.spi.IProperty in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateSpecialRootClass.
@Test
public void testCreateSpecialRootClass() {
Property target = new Property();
PersistentClass pc = new RootClass(null);
target.setPersistentClass(pc);
IProperty property = facadeFactory.createProperty(target);
IPersistentClass specialRootClass = facadeFactory.createSpecialRootClass(property);
Assert.assertNotNull(specialRootClass);
Object object = ((IFacade) specialRootClass).getTarget();
Assert.assertTrue(specialRootClass instanceof SpecialRootClassFacadeImpl);
Assert.assertTrue(object instanceof RootClass);
Assert.assertSame(property, specialRootClass.getProperty());
}
use of org.jboss.tools.hibernate.runtime.spi.IProperty in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewProperty.
@Test
public void testNewProperty() {
IProperty property = service.newProperty();
Assert.assertNotNull(property);
Object target = ((IFacade) property).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Property);
}
Aggregations