APISonar


org.mockserver.model.SocketAddress.Scheme.HTTP

> org > mockserver > model > SocketAddress > Scheme > HTTP
org APIs mockserver APIs model APIs SocketAddress APIs Scheme APIs HTTP APIs

Example 1
public void shouldHandleNullFieldInput() {
        // when
        SocketAddressDTO socketAddressDTO = new SocketAddressDTO(new SocketAddress());

        // then
        assertThat(socketAddressDTO.getHost(), is(nullValue()));
        assertThat(socketAddressDTO.getPort(), is(80));
        assertThat(socketAddressDTO.getScheme(), is(SocketAddress.Scheme.HTTP));
    }