@Test public void getLocalProperties() { String apikey = ServiceHelper.getLocalProperties("local.properties").getProperty("cloudant_apikey"); String host = ServiceHelper.getLocalProperties("local.properties").getProperty("cloudant_host"); }
public static Properties getLocalProperties(String fileName) { Properties properties = new Properties(); InputStream inputStream = ServiceHelper.class.getClassLoader().getResourceAsStream(fileName); try { properties.load(inputStream); } catch (IOException e) { e.printStackTrace(); } return properties; }
ServiceHelper { public static Properties getLocalProperties(String fileName) { Properties properties = new Properties(); InputStream inputStream = ServiceHelper.class.getClassLoader().getResourceAsStream(fileName); try { properties.load(inputStream); } catch (IOException e) { e.printStackTrace(); } return properties; } }
ServiceHelper { public static Properties getLocalProperties(String fileName) { Properties properties = new Properties(); InputStream inputStream = ServiceHelper.class.getClassLoader().getResourceAsStream(fileName); try { properties.load(inputStream); } catch (IOException e) { e.printStackTrace(); } return properties; }  }
ServiceHelper { public static Properties getLocalProperties(String fileName) { Properties properties = new Properties(); InputStream inputStream = ServiceHelper.class.getClassLoader().getResourceAsStream(fileName); try { properties.load(inputStream); } catch (IOException e) { e.printStackTrace(); } return properties; }  static CloudantClient createClient(JsonObject params); static String[] getCloudCredentials(JsonObject params); static Properties getLocalProperties(String fileName); }
ServiceHelper { public static Properties getLocalProperties(String fileName) { Properties properties = new Properties(); InputStream inputStream = ServiceHelper.class.getClassLoader().getResourceAsStream(fileName); try { properties.load(inputStream); } catch (IOException e) { e.printStackTrace(); } return properties; }  static CloudantClient createClient(JsonObject params); static String[] getCloudCredentials(JsonObject params); static Properties getLocalProperties(String fileName);  }