in src/intTest/java/com/utility/LoadVcenterProps.java [16:45]
static {
InputStream input = null;
Properties prop = new Properties();
try {
input = new FileInputStream("src/intTest/java/VcenterInfo.properties");
// load a properties file
prop.load(input);
url = prop.getProperty("url");
userName = prop.getProperty("username");
password = prop.getProperty("password");
secondUrl = prop.getProperty("secondUrl");
badUrl = prop.getProperty("badUrl");
sslThumbprint = prop.getProperty("sslThumbprint");
} catch (IOException ex) {
ex.printStackTrace();
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}