Search in sources :

Example 1 with HttpListenerService

use of org.wildfly.extension.undertow.HttpListenerService in project wildfly by wildfly.

the class UndertowConnectorTestCase method getType.

@Test
public void getType() {
    OptionMap options = OptionMap.builder().getMap();
    assertSame(Connector.Type.AJP, new UndertowConnector(new AjpListenerService("", "", options, OptionMap.EMPTY)).getType());
    assertSame(Connector.Type.HTTP, new UndertowConnector(new HttpListenerService("", "", options, OptionMap.EMPTY, false, false)).getType());
    assertSame(Connector.Type.HTTPS, new UndertowConnector(new HttpsListenerService("", "", options, null, OptionMap.EMPTY)).getType());
}
Also used : OptionMap(org.xnio.OptionMap) AjpListenerService(org.wildfly.extension.undertow.AjpListenerService) HttpListenerService(org.wildfly.extension.undertow.HttpListenerService) HttpsListenerService(org.wildfly.extension.undertow.HttpsListenerService) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 AjpListenerService (org.wildfly.extension.undertow.AjpListenerService)1 HttpListenerService (org.wildfly.extension.undertow.HttpListenerService)1 HttpsListenerService (org.wildfly.extension.undertow.HttpsListenerService)1 OptionMap (org.xnio.OptionMap)1