Search in sources :

Example 1 with DbFinalPrimitiveObject

use of org.simpleflatmapper.test.beans.DbFinalPrimitiveObject in project SimpleFlatMapper by arnaudroger.

the class BiInstantiatorFactoryTest method testInstantiateConstructorWithArgsAllPr.

@Test
public void testInstantiateConstructorWithArgsAllPr() throws Exception {
    BiInstantiator<Object, Object, DbFinalPrimitiveObject> instantiator = DISABLE_ASM.getBiInstantiator(DbFinalPrimitiveObject.class, Object.class, Object.class, AsmInstantiatorDefinitionFactory.extractDefinitions(DbFinalPrimitiveObject.class), new HashMap<Parameter, BiFunction<? super Object, ? super Object, ?>>(), true, true);
    DbFinalPrimitiveObject object = instantiator.newInstance(null, null);
    assertNotNull(object);
}
Also used : DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) BiFunction(org.simpleflatmapper.util.BiFunction) Parameter(org.simpleflatmapper.reflect.Parameter) DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) Test(org.junit.Test)

Example 2 with DbFinalPrimitiveObject

use of org.simpleflatmapper.test.beans.DbFinalPrimitiveObject in project SimpleFlatMapper by arnaudroger.

the class BiInstantiatorFactoryTest method testInstantiateConstructorWithArgsAllPrAsm.

@Test
public void testInstantiateConstructorWithArgsAllPrAsm() throws Exception {
    BiInstantiator<Object, Object, DbFinalPrimitiveObject> instantiator = ASM.getBiInstantiator(DbFinalPrimitiveObject.class, Object.class, Object.class, AsmInstantiatorDefinitionFactory.extractDefinitions(DbFinalPrimitiveObject.class), new HashMap<Parameter, BiFunction<? super Object, ? super Object, ?>>(), true, true);
    DbFinalPrimitiveObject object = instantiator.newInstance(null, null);
    assertNotNull(object);
}
Also used : DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) BiFunction(org.simpleflatmapper.util.BiFunction) Parameter(org.simpleflatmapper.reflect.Parameter) DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) Test(org.junit.Test)

Example 3 with DbFinalPrimitiveObject

use of org.simpleflatmapper.test.beans.DbFinalPrimitiveObject in project SimpleFlatMapper by arnaudroger.

the class InstantiatorFactoryTest method testInstantiateConstructorWithArgsAllPrAsm.

@Test
public void testInstantiateConstructorWithArgsAllPrAsm() throws Exception {
    Instantiator<Object, DbFinalPrimitiveObject> instantiator = ASM.getInstantiator(DbFinalPrimitiveObject.class, Object.class, AsmInstantiatorDefinitionFactory.extractDefinitions(DbFinalPrimitiveObject.class), new HashMap<Parameter, Getter<? super Object, ?>>(), true, true);
    DbFinalPrimitiveObject object = instantiator.newInstance(null);
    assertNotNull(object);
}
Also used : DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) Test(org.junit.Test)

Example 4 with DbFinalPrimitiveObject

use of org.simpleflatmapper.test.beans.DbFinalPrimitiveObject in project SimpleFlatMapper by arnaudroger.

the class InstantiatorFactoryTest method testInstantiateConstructorWithArgsAllPr.

@Test
public void testInstantiateConstructorWithArgsAllPr() throws Exception {
    Instantiator<Object, DbFinalPrimitiveObject> instantiator = DISABLE_ASM.getInstantiator(DbFinalPrimitiveObject.class, Object.class, AsmInstantiatorDefinitionFactory.extractDefinitions(DbFinalPrimitiveObject.class), new HashMap<Parameter, Getter<? super Object, ?>>(), true, true);
    DbFinalPrimitiveObject object = instantiator.newInstance(null);
    assertNotNull(object);
}
Also used : DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) DbFinalPrimitiveObject(org.simpleflatmapper.test.beans.DbFinalPrimitiveObject) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)4 DbFinalPrimitiveObject (org.simpleflatmapper.test.beans.DbFinalPrimitiveObject)4 Parameter (org.simpleflatmapper.reflect.Parameter)2 BiFunction (org.simpleflatmapper.util.BiFunction)2