@Test public void testConfigurationPropertiesWithMismatchingFieldAndSetter() { ProcessEngineConfigurationImpl engineConfiguration = new StandaloneProcessEngineConfiguration(); Map<String, String> propertiesToSet = new HashMap<String, String>(); propertiesToSet.put(DB_IDENTITY_USED_PROP, "false"); PropertyHelper.applyProperties(engineConfiguration, propertiesToSet); Assert.assertFalse(engineConfiguration.isDbIdentityUsed()); propertiesToSet.put(DB_IDENTITY_USED_PROP, "true"); PropertyHelper.applyProperties(engineConfiguration, propertiesToSet); Assert.assertTrue(engineConfiguration.isDbIdentityUsed()); }
public static void applyProperties(Object configuration, Map<String, String> properties) { for (Map.Entry<String, String> property : properties.entrySet()) { applyProperty(configuration, property.getKey(), property.getValue()); } }
PropertyHelper { public static void applyProperties(Object configuration, Map<String, String> properties) { for (Map.Entry<String, String> property : properties.entrySet()) { applyProperty(configuration, property.getKey(), property.getValue()); } } }
PropertyHelper { public static void applyProperties(Object configuration, Map<String, String> properties) { for (Map.Entry<String, String> property : properties.entrySet()) { applyProperty(configuration, property.getKey(), property.getValue()); } }  }
PropertyHelper { public static void applyProperties(Object configuration, Map<String, String> properties) { for (Map.Entry<String, String> property : properties.entrySet()) { applyProperty(configuration, property.getKey(), property.getValue()); } }  static boolean getBooleanProperty(Map<String, String> properties, String name, boolean defaultValue); static Object convertToClass(String value, Class<?> clazz); static void applyProperty(Object configuration, String key, String stringValue); static void applyProperties(Object configuration, Map<String, String> properties); static String resolveProperty(Properties props, String original); }
PropertyHelper { public static void applyProperties(Object configuration, Map<String, String> properties) { for (Map.Entry<String, String> property : properties.entrySet()) { applyProperty(configuration, property.getKey(), property.getValue()); } }  static boolean getBooleanProperty(Map<String, String> properties, String name, boolean defaultValue); static Object convertToClass(String value, Class<?> clazz); static void applyProperty(Object configuration, String key, String stringValue); static void applyProperties(Object configuration, Map<String, String> properties); static String resolveProperty(Properties props, String original);  }