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(DummyMetadataBuildingContext.INSTANCE, null);
valueFacade = FACADE_FACTORY.createValue(simpleValueTarget);
assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(DummyMetadataBuildingContext.INSTANCE, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
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);
assertNotNull(primitiveArray);
Object target = ((IFacade) primitiveArray).getTarget();
assertNotNull(target);
assertTrue(target instanceof PrimitiveArray);
}
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);
assertNotNull(primitiveArray);
Object target = ((IFacade) primitiveArray).getTarget();
assertNotNull(target);
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);
assertFalse(valueFacade.isPrimitiveArray());
PrimitiveArray primitiveArrayTarget = new PrimitiveArray(null, null);
valueFacade = FACADE_FACTORY.createValue(primitiveArrayTarget);
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);
assertNotNull(primitiveArray);
Object target = ((IFacade) primitiveArray).getTarget();
assertNotNull(target);
assertTrue(target instanceof PrimitiveArray);
}
Aggregations