@Test public void testValidURL() throws RemoteApiException { doReturn(URL).when(properties).getAgentUrl(); assertEquals(URL, agentApiClient.getBasePath()); }
@Override protected String getBasePath() { String url = properties.getAgentUrl(); if (StringUtils.isBlank(url)) { String message = logMessage.getMessage(MISSING_CONFIG_FILE, REQUIRED_KEY); String solution = logMessage.getMessage(MISSING_CONFIG_FILE_SOLUTION, REQUIRED_KEY); throw new MissingConfigurationException(SERVICE_NAME.toString(), message, solution); } return url; }
AgentApiClient extends SymphonyApiClient { @Override protected String getBasePath() { String url = properties.getAgentUrl(); if (StringUtils.isBlank(url)) { String message = logMessage.getMessage(MISSING_CONFIG_FILE, REQUIRED_KEY); String solution = logMessage.getMessage(MISSING_CONFIG_FILE_SOLUTION, REQUIRED_KEY); throw new MissingConfigurationException(SERVICE_NAME.toString(), message, solution); } return url; } }
AgentApiClient extends SymphonyApiClient { @Override protected String getBasePath() { String url = properties.getAgentUrl(); if (StringUtils.isBlank(url)) { String message = logMessage.getMessage(MISSING_CONFIG_FILE, REQUIRED_KEY); String solution = logMessage.getMessage(MISSING_CONFIG_FILE_SOLUTION, REQUIRED_KEY); throw new MissingConfigurationException(SERVICE_NAME.toString(), message, solution); } return url; } AgentApiClient(); }
AgentApiClient extends SymphonyApiClient { @Override protected String getBasePath() { String url = properties.getAgentUrl(); if (StringUtils.isBlank(url)) { String message = logMessage.getMessage(MISSING_CONFIG_FILE, REQUIRED_KEY); String solution = logMessage.getMessage(MISSING_CONFIG_FILE_SOLUTION, REQUIRED_KEY); throw new MissingConfigurationException(SERVICE_NAME.toString(), message, solution); } return url; } AgentApiClient();  }
AgentApiClient extends SymphonyApiClient { @Override protected String getBasePath() { String url = properties.getAgentUrl(); if (StringUtils.isBlank(url)) { String message = logMessage.getMessage(MISSING_CONFIG_FILE, REQUIRED_KEY); String solution = logMessage.getMessage(MISSING_CONFIG_FILE_SOLUTION, REQUIRED_KEY); throw new MissingConfigurationException(SERVICE_NAME.toString(), message, solution); } return url; } AgentApiClient();   }