@Test public void downloadConfFail() throws Exception { String confPath = "src/test/resources/test-conf-malformed"; List<String> receivedParts = new ArrayList<>(); List<String> deletedFiles = new ArrayList<>(); ConfigurationClient client = getClient(confPath, receivedParts, deletedFiles); try { client.execute(); fail("Should fail to download"); } catch (CodedException expected) { assertEquals(X_MALFORMED_GLOBALCONF, expected.getFaultCode()); } 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); } }    }