Package org.apache.isis.viewer.json.applib.RestfulResponse

Examples of org.apache.isis.viewer.json.applib.RestfulResponse.HttpStatusCode


        assertThat(HttpStatusCode.statusFor(200), is(HttpStatusCode.OK));
    }

    @Test
    public void unknownStatusCode() {
        final HttpStatusCode statusFor = HttpStatusCode.statusFor(600);
        assertThat(statusFor.getStatusCode(), is(600));
        assertThat(statusFor.getFamily(), is(Family.OTHER));
    }
View Full Code Here


    @Test
    public void simpleNoMessage() throws Exception {

        // given
        final HttpStatusCode status = HttpStatusCode.BAD_REQUEST;
        final JsonApplicationException ex = JsonApplicationException.create(status);

        // when
        final Response response = exceptionMapper.toResponse(ex);
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.json.applib.RestfulResponse.HttpStatusCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.