use of org.jboss.tools.hibernate.runtime.spi.IValue 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.IValue 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.IValue 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.spi.IValue 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.spi.IValue in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewMap.
@Test
public void testNewMap() {
IPersistentClass persistentClass = service.newRootClass();
IValue map = service.newMap(persistentClass);
Assert.assertNotNull(map);
Object target = ((IFacade) map).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Map);
}
Aggregations