use of org.jboss.tools.hibernate.runtime.spi.IValue in project jbosstools-hibernate by jbosstools.
the class ColumnFacadeTest method testGetValue.
public void testGetValue() throws Exception {
Value targetValue = null;
column.setValue(targetValue);
Assert.assertNull(columnFacade.getValue());
targetValue = new SimpleValue();
column.setValue(targetValue);
IValue value = columnFacade.getValue();
Assert.assertNotNull(value);
Assert.assertSame(targetValue, ((IFacade) value).getTarget());
}
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 testNewManyToOne.
@Test
public void testNewManyToOne() {
ITable table = service.newTable("foo");
IValue manyToOne = service.newManyToOne(table);
Assert.assertNotNull(manyToOne);
Object target = ((IFacade) manyToOne).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof ManyToOne);
}
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 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