javax.xml.ws.spi.http.HttpHandler Java Examples

The following examples show how to use javax.xml.ws.spi.http.HttpHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JAXWSHttpSpiTransportFactoryTest.java    From cxf with Apache License 2.0 5 votes vote down vote up
public void getDestination(String endpointAddress) throws Exception {
    context.setHandler(EasyMock.isA(HttpHandler.class));
    control.replay();

    EndpointInfo endpoint = new EndpointInfo();
    endpoint.setAddress(endpointAddress);

    Destination destination = factory.getDestination(endpoint, bus);
    assertNotNull(destination);
    assertNotNull(destination.getAddress());
    assertNotNull(destination.getAddress().getAddress());
    assertEquals(endpointAddress, destination.getAddress().getAddress().getValue());
    assertEquals(endpointAddress, endpoint.getAddress());
    control.verify();
}