@Test public void validXMLFileTest() { final Set<String> sharedPythonPackages = new SharedModulesParser().getSharedModules(); assertThat(sharedPythonPackages) .as("Set of shared modules.") .hasSize(2) .contains("my_package_1", "my_package_2"); }
public Set<String> getSharedModules() { Set<String> sharedModules = ImmutableSet.of(); try { sharedModules = parseXMLFile(); } catch (final Exception e) { logger.warn("Problem while getting the XML file with the Python modules to be shared.", e); } return sharedModules; }
SharedModulesParser { public Set<String> getSharedModules() { Set<String> sharedModules = ImmutableSet.of(); try { sharedModules = parseXMLFile(); } catch (final Exception e) { logger.warn("Problem while getting the XML file with the Python modules to be shared.", e); } return sharedModules; } }
SharedModulesParser { public Set<String> getSharedModules() { Set<String> sharedModules = ImmutableSet.of(); try { sharedModules = parseXMLFile(); } catch (final Exception e) { logger.warn("Problem while getting the XML file with the Python modules to be shared.", e); } return sharedModules; } SharedModulesParser(final String xmlFileName);  SharedModulesParser(); }
SharedModulesParser { public Set<String> getSharedModules() { Set<String> sharedModules = ImmutableSet.of(); try { sharedModules = parseXMLFile(); } catch (final Exception e) { logger.warn("Problem while getting the XML file with the Python modules to be shared.", e); } return sharedModules; } SharedModulesParser(final String xmlFileName);  SharedModulesParser(); Set<String> getSharedModules(); }
SharedModulesParser { public Set<String> getSharedModules() { Set<String> sharedModules = ImmutableSet.of(); try { sharedModules = parseXMLFile(); } catch (final Exception e) { logger.warn("Problem while getting the XML file with the Python modules to be shared.", e); } return sharedModules; } SharedModulesParser(final String xmlFileName);  SharedModulesParser(); Set<String> getSharedModules();  }