use of org.hibernate.mapping.PrimitiveArray in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testIsPrimitiveArray.
@Test
public void testIsPrimitiveArray() {
SimpleValue simpleValueTarget = new SimpleValue(null);
valueFacade = FACADE_FACTORY.createValue(simpleValueTarget);
Assert.assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(null, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
Assert.assertTrue(valueFacade.isPrimitiveArray());
}
use of org.hibernate.mapping.PrimitiveArray in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testIsPrimitiveArray.
@Test
public void testIsPrimitiveArray() {
SimpleValue simpleValueTarget = new SimpleValue(null);
valueFacade = FACADE_FACTORY.createValue(simpleValueTarget);
Assert.assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(null, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
Assert.assertTrue(valueFacade.isPrimitiveArray());
}
use of org.hibernate.mapping.PrimitiveArray 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.hibernate.mapping.PrimitiveArray in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testIsPrimitiveArray.
@Test
public void testIsPrimitiveArray() {
SimpleValue simpleValueTarget = new SimpleValue(null);
valueFacade = FACADE_FACTORY.createValue(simpleValueTarget);
Assert.assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(null, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
Assert.assertTrue(valueFacade.isPrimitiveArray());
}
use of org.hibernate.mapping.PrimitiveArray in project jbosstools-hibernate by jbosstools.
the class ValueFacadeTest method testIsPrimitiveArray.
@Test
public void testIsPrimitiveArray() {
SimpleValue simpleValueTarget = new SimpleValue(null);
valueFacade = FACADE_FACTORY.createValue(simpleValueTarget);
Assert.assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(null, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
Assert.assertTrue(valueFacade.isPrimitiveArray());
}
Aggregations