use of org.jboss.tools.hibernate.runtime.spi.IPersistentClass 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.spi.IPersistentClass in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewBag.
@Test
public void testNewBag() {
IPersistentClass persistentClass = service.newRootClass();
IValue bag = service.newBag(persistentClass);
Assert.assertNotNull(bag);
Object target = ((IFacade) bag).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Bag);
}
use of org.jboss.tools.hibernate.runtime.spi.IPersistentClass in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewRootClass.
@Test
public void testNewRootClass() {
IPersistentClass rootClass = service.newRootClass();
Assert.assertNotNull(rootClass);
Object target = ((IFacade) rootClass).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof RootClass);
}
use of org.jboss.tools.hibernate.runtime.spi.IPersistentClass in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewList.
@Test
public void testNewList() {
IPersistentClass persistentClass = service.newRootClass();
IValue list = service.newList(persistentClass);
Assert.assertNotNull(list);
Object target = ((IFacade) list).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof org.hibernate.mapping.List);
}
use of org.jboss.tools.hibernate.runtime.spi.IPersistentClass 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);
}
Aggregations