use of org.hibernate.mapping.List in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testSetIndex.
@Test
public void testSetIndex() {
List valueTarget = new List(null, null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertNull(valueTarget.getIndex());
SimpleValue indexTarget = new SimpleValue(null);
IValue indexFacade = FACADE_FACTORY.createValue(indexTarget);
valueFacade.setIndex(indexFacade);
Assert.assertSame(indexTarget, valueTarget.getIndex());
}
use of org.hibernate.mapping.List in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testSetIndex.
@Test
public void testSetIndex() {
List valueTarget = new List(null, null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertNull(valueTarget.getIndex());
SimpleValue indexTarget = new SimpleValue(null);
IValue indexFacade = FACADE_FACTORY.createValue(indexTarget);
valueFacade.setIndex(indexFacade);
Assert.assertSame(indexTarget, valueTarget.getIndex());
}
use of org.hibernate.mapping.List in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testIsList.
@Test
public void testIsList() {
valueTarget = new SimpleValue(null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertFalse(valueFacade.isList());
valueTarget = new List(null, null);
valueFacade = FACADE_FACTORY.createValue(valueTarget);
Assert.assertTrue(valueFacade.isList());
}
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