use of org.jboss.tools.hibernate.runtime.spi.IValue in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewSet.
@Test
public void testNewSet() {
IPersistentClass persistentClass = service.newRootClass();
IValue set = service.newSet(persistentClass);
Assert.assertNotNull(set);
Object target = ((IFacade) set).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Set);
}
use of org.jboss.tools.hibernate.runtime.spi.IValue in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewOneToOne.
@Test
public void testNewOneToOne() {
IPersistentClass persistentClass = service.newRootClass();
IValue oneToOne = service.newOneToOne(persistentClass);
Assert.assertNotNull(oneToOne);
Object target = ((IFacade) oneToOne).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof OneToOne);
}
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 testNewPrimitiveArray.
@Test
public void testNewPrimitiveArray() {
IPersistentClass persistentClass = service.newRootClass();
IValue primitiveArray = service.newPrimitiveArray(persistentClass);
Assert.assertNotNull(primitiveArray);
Object target = ((IFacade) primitiveArray).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof PrimitiveArray);
}
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);
}
Aggregations