Example usage for org.apache.commons.lang3 NotImplementedException getMessage

List of usage examples for org.apache.commons.lang3 NotImplementedException getMessage

Introduction

In this page you can find the example usage for org.apache.commons.lang3 NotImplementedException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

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");
    }
}