@Test public void createObjectDirectMappingSimpleType() { Map<List<String>, Object> params = new HashMap<>(); String directMappingSimpleTypeValue = "TestName"; params.put(Collections.emptyList(), directMappingSimpleTypeValue); ValueWrapper<Object> initialInstance = runnerHelper.getDirectMapping(params); Object objectRaw = runnerHelper.createObject( initialInstance, String.class.getCanonicalName(), params, this.getClass().getClassLoader()); assertTrue(objectRaw instanceof String); assertEquals(directMappingSimpleTypeValue, objectRaw); }
@Override protected Object createObject(ValueWrapper<Object> initialInstance, String className, Map<List<String>, Object> params, ClassLoader classLoader) { return fillBean(initialInstance, className, params, classLoader); }
RuleScenarioRunnerHelper extends AbstractRunnerHelper { @Override protected Object createObject(ValueWrapper<Object> initialInstance, String className, Map<List<String>, Object> params, ClassLoader classLoader) { return fillBean(initialInstance, className, params, classLoader); } }
RuleScenarioRunnerHelper extends AbstractRunnerHelper { @Override protected Object createObject(ValueWrapper<Object> initialInstance, String className, Map<List<String>, Object> params, ClassLoader classLoader) { return fillBean(initialInstance, className, params, classLoader); }  }
RuleScenarioRunnerHelper extends AbstractRunnerHelper { @Override protected Object createObject(ValueWrapper<Object> initialInstance, String className, Map<List<String>, Object> params, ClassLoader classLoader) { return fillBean(initialInstance, className, params, classLoader); }   }
RuleScenarioRunnerHelper extends AbstractRunnerHelper { @Override protected Object createObject(ValueWrapper<Object> initialInstance, String className, Map<List<String>, Object> params, ClassLoader classLoader) { return fillBean(initialInstance, className, params, classLoader); }    }