@Test public void testUpdateEvoSuiteProperties(){ Properties properties = new Properties(); properties.setProperty("search_budget","100"); SetupUtility.updateEvoSuiteProperties(properties); Assert.assertEquals(100, org.evosuite.Properties.SEARCH_BUDGET); properties.setProperty("not_exist","100"); SetupUtility.updateEvoSuiteProperties(properties); }
public static void updateEvoSuiteProperties(java.util.Properties properties){ for (String property : properties.stringPropertyNames()) { try { Properties.getInstance().setValue(property, properties.getProperty(property)); } catch (Properties.NoSuchParameterException e) { LOG.error("{} parameter does not exist", property); } catch (IllegalAccessException e) { e.printStackTrace(); } } }
SetupUtility { public static void updateEvoSuiteProperties(java.util.Properties properties){ for (String property : properties.stringPropertyNames()) { try { Properties.getInstance().setValue(property, properties.getProperty(property)); } catch (Properties.NoSuchParameterException e) { LOG.error("{} parameter does not exist", property); } catch (IllegalAccessException e) { e.printStackTrace(); } } } }
SetupUtility { public static void updateEvoSuiteProperties(java.util.Properties properties){ for (String property : properties.stringPropertyNames()) { try { Properties.getInstance().setValue(property, properties.getProperty(property)); } catch (Properties.NoSuchParameterException e) { LOG.error("{} parameter does not exist", property); } catch (IllegalAccessException e) { e.printStackTrace(); } } }  }
SetupUtility { public static void updateEvoSuiteProperties(java.util.Properties properties){ for (String property : properties.stringPropertyNames()) { try { Properties.getInstance().setValue(property, properties.getProperty(property)); } catch (Properties.NoSuchParameterException e) { LOG.error("{} parameter does not exist", property); } catch (IllegalAccessException e) { e.printStackTrace(); } } }  static void printHelpMessage(Options options, boolean integration); static CommandLine parseCommands(String[] args, Options options, boolean integration); static void updateEvoSuiteProperties(java.util.Properties properties); static String[] getCompatibleCP(String cp); static void setupProjectClasspath(String[] projectCP); static void configureClassReInitializer(); static void analyzeClassDependencies(String  className); }
SetupUtility { public static void updateEvoSuiteProperties(java.util.Properties properties){ for (String property : properties.stringPropertyNames()) { try { Properties.getInstance().setValue(property, properties.getProperty(property)); } catch (Properties.NoSuchParameterException e) { LOG.error("{} parameter does not exist", property); } catch (IllegalAccessException e) { e.printStackTrace(); } } }  static void printHelpMessage(Options options, boolean integration); static CommandLine parseCommands(String[] args, Options options, boolean integration); static void updateEvoSuiteProperties(java.util.Properties properties); static String[] getCompatibleCP(String cp); static void setupProjectClasspath(String[] projectCP); static void configureClassReInitializer(); static void analyzeClassDependencies(String  className);  }