XmlCredentialsUtil { public static XMLConfiguration createXmlConfiguration(final String fileName) { try { return new XMLConfiguration(IntegrityUtil.ensure(fileName, "Must provide a file name")); } catch (final ConfigurationException configurationException) { throw new RuntimeException("Trouble using file name [" + fileName + "]", configurationException); } }  static XMLConfiguration createXmlConfiguration(final String fileName); static XMLConfiguration createXmlConfiguration(final File file); static XMLConfiguration createXmlConfiguration(final URL url); static Credentials convertToCredentials(final HierarchicalConfiguration hierarchicalConfiguration, final Object url, final String userNameElement, final String passwordElement, final String tokenElement, final Object apiVersion); static Collection<Credentials> getCredentials(final XMLConfiguration xmlConfiguration, final String rootElement, final String urlElement, final String userNameElement, final String passwordElement, final String tokenElement, final String apiVersionElement); static Collection<Credentials> getCredentials(final String fileName, final String rootElement, final String urlElement, final String userNameElement, final String passwordElement, final String tokenElement, final String apiVersionElement); static Collection<Credentials> getCredentials(final File file, final String rootElement, final String urlElement, final String userNameElement, final String passwordElement, final String tokenElement, final String apiVersionElement); static Collection<Credentials> getCredentials(final URL url, final String rootElement, final String urlElement, final String userNameElement, final String passwordElement, final String tokenElement, final String apiVersionElement);  }
@Test(expected = RuntimeException.class) public void test_createXmlConfiguration_nullString() { XmlCredentialsUtil.createXmlConfiguration((String) null); }
@Test(expected = RuntimeException.class) public void test_createXmlConfiguration_emptyString() { XmlCredentialsUtil.createXmlConfiguration(""); }
@Test(expected = RuntimeException.class) public void test_createXmlConfiguration_nullFile() { XmlCredentialsUtil.createXmlConfiguration((File) null); }
@Test(expected = RuntimeException.class) public void test_createXmlConfiguration_nullUrl() { XmlCredentialsUtil.createXmlConfiguration((URL) null); }