APISonar


io.gravitee.definition.model.EndpointType.HTTP

> io > gravitee > definition > model > EndpointType > HTTP
io APIs gravitee APIs definition APIs model APIs EndpointType APIs HTTP APIs

Example 1
public void shouldResolveHttpEndpoint_emptyContext() {
        when(endpoint.getTarget()).thenReturn("http://mydomain");
        when(endpoint.getType()).thenReturn(EndpointType.HTTP);

        EndpointContext context = new EndpointContext();

        io.gravitee.gateway.http.endpoint.HttpEndpoint endpoint = factory.create(this.endpoint, context);
        Assert.assertNotNull(endpoint);
    }