@Ignore @Test public void testSetBaseURL() throws ParserConfigurationException, SAXException, MalformedURLException {
  ConfigManager configManager=getConfigManager();
  try {
    URL baseURL2=new URL("http://1.1.1.1/ipt");
    configManager.setBaseUrl(baseURL2);
    fail();
  }
 catch (  InvalidConfigException e) {
  }
  try {
    URL baseURL2=new URL("http://www.gbif.org");
    configManager.setBaseUrl(baseURL2);
    fail();
  }
 catch (  InvalidConfigException e) {
  }
  URL baseURL=new URL("http://ipt.gbif.org");
  configManager.setBaseUrl(baseURL);
  assertEquals(baseURL.toString(),appConfig.getProperty(AppConfig.BASEURL));
}

@ Ignore @ Test public void testSetBaseURL ( ) throws ParserConfigurationException , SAXException , MalformedURLException { ConfigManager configManager = getConfigManager ( ) ; try { URL baseURL2 = new URL ( "http://1.1.1.1/ipt" ) ; configManager . setBaseUrl ( baseURL2 ) ; fail ( ) ; } catch ( InvalidConfigException e ) { } try { URL baseURL2 = new URL ( "http://www.gbif.org" ) ; configManager . setBaseUrl ( baseURL2 ) ; fail ( ) ; } catch ( InvalidConfigException e ) { } URL baseURL = new URL ( "http://ipt.gbif.org" ) ; configManager . setBaseUrl ( baseURL ) ; assertEquals ( baseURL . toString ( ) , appConfig . getProperty ( AppConfig . BASEURL ) ) ; }
test that the method setbaseurl of the configmanager throws an invalidconfigexception if the baseurl given by the user doesn ' t exist or the client can ' t connect with it .
