List of usage examples for org.apache.commons.lang3 NotImplementedException getMessage
public String getMessage()
From source file:com.vmware.loginsightapi.TestConfiguration.java
@Test public void testBuildConfigInvalidScheme() { Map<String, String> configData = new HashMap<String, String>(); try {/*from www . j av a2s.co m*/ configData.put(Configuration.KEY_LI_HOST, "hostname"); configData.put(Configuration.KEY_LI_USER, "username"); configData.put(Configuration.KEY_LI_PASSWORD, "password"); configData.put(Configuration.KEY_LI_PORT, Integer.toString(Configuration.DEFAULT_PORT)); configData.put(Configuration.KEY_LI_INGESTION_PORT, Integer.toString(Configuration.DEFAULT_INGESTION_PORT)); configData.put(Configuration.KEY_CONNECTION_SCHEME, "httpd"); Configuration config = Configuration.buildConfig(configData); } catch (NotImplementedException ex) { assertEquals(ex.getMessage(), "only https scheme is available"); } }