@Test public void downloadDetachedConf() throws Exception { String confPath = "src/test/resources/test-conf-detached"; List<String> receivedParts = new ArrayList<>(); List<String> deletedFiles = new ArrayList<>(); ConfigurationClient client = getClient(confPath, receivedParts, deletedFiles); client.execute(); assertEquals(2, receivedParts.size()); assertTrue(receivedParts.contains(CONTENT_ID_PRIVATE_PARAMETERS)); assertTrue(receivedParts.contains(CONTENT_ID_SHARED_PARAMETERS)); assertEquals(0, deletedFiles.size()); }
synchronized void execute() throws Exception { log.debug("Configuration client executing..."); downloadedFiles.reset(); if (configurationAnchor == null || configurationAnchor.hasChanged()) { log.debug("Initializing configuration anchor"); initConfigurationAnchor(); } downloadConfigurationFromAnchor(); if (!additionalSources.isEmpty()) { downloadConfigurationFromAdditionalSources(); } try { downloadedFiles.sync(); } catch (Exception e) { log.error("Failed to sync downloaded files list", e); } }
ConfigurationClient { synchronized void execute() throws Exception { log.debug("Configuration client executing..."); downloadedFiles.reset(); if (configurationAnchor == null || configurationAnchor.hasChanged()) { log.debug("Initializing configuration anchor"); initConfigurationAnchor(); } downloadConfigurationFromAnchor(); if (!additionalSources.isEmpty()) { downloadConfigurationFromAdditionalSources(); } try { downloadedFiles.sync(); } catch (Exception e) { log.error("Failed to sync downloaded files list", e); } } }
ConfigurationClient { synchronized void execute() throws Exception { log.debug("Configuration client executing..."); downloadedFiles.reset(); if (configurationAnchor == null || configurationAnchor.hasChanged()) { log.debug("Initializing configuration anchor"); initConfigurationAnchor(); } downloadConfigurationFromAnchor(); if (!additionalSources.isEmpty()) { downloadConfigurationFromAdditionalSources(); } try { downloadedFiles.sync(); } catch (Exception e) { log.error("Failed to sync downloaded files list", e); } }  }
ConfigurationClient { synchronized void execute() throws Exception { log.debug("Configuration client executing..."); downloadedFiles.reset(); if (configurationAnchor == null || configurationAnchor.hasChanged()) { log.debug("Initializing configuration anchor"); initConfigurationAnchor(); } downloadConfigurationFromAnchor(); if (!additionalSources.isEmpty()) { downloadConfigurationFromAdditionalSources(); } try { downloadedFiles.sync(); } catch (Exception e) { log.error("Failed to sync downloaded files list", e); } }   }
ConfigurationClient { synchronized void execute() throws Exception { log.debug("Configuration client executing..."); downloadedFiles.reset(); if (configurationAnchor == null || configurationAnchor.hasChanged()) { log.debug("Initializing configuration anchor"); initConfigurationAnchor(); } downloadConfigurationFromAnchor(); if (!additionalSources.isEmpty()) { downloadConfigurationFromAdditionalSources(); } try { downloadedFiles.sync(); } catch (Exception e) { log.error("Failed to sync downloaded files list", e); } }    }