* Creates Bloomberg session options for testing.
*
* @return the session options, not null
*/
private static SessionOptions getSessionOptions() {
SessionOptions options = new SessionOptions();
Properties properties = TestProperties.getTestProperties();
String serverHost = properties.getProperty("bbgServer.host");
if (StringUtils.isBlank(serverHost)) {
throw new OpenGammaRuntimeException("bloomberg.host is missing in tests.properties");
}
String serverPort = properties.getProperty("bbgServer.port");
if (StringUtils.isBlank(serverPort)) {
throw new OpenGammaRuntimeException("bloomberg.port is missing in tests.properties");
}
options.setServerHost(serverHost);
options.setServerPort(Integer.parseInt(serverPort));
return options;
}