use of org.hibernate.mapping.List in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testGetIndex.
@Test
public void testGetIndex() {
List valueTarget = new List(null, null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertNull(valueFacade.getIndex());
SimpleValue indexValue = new SimpleValue(null);
valueTarget.setIndex(indexValue);
Assert.assertSame(indexValue, ((IFacade) valueFacade.getIndex()).getTarget());
}
use of org.hibernate.mapping.List in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testGetIndex.
@Test
public void testGetIndex() {
List valueTarget = new List(null, null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertNull(valueFacade.getIndex());
SimpleValue indexValue = new SimpleValue(null);
valueTarget.setIndex(indexValue);
Assert.assertSame(indexValue, ((IFacade) valueFacade.getIndex()).getTarget());
}
Aggregations