Examples of mapPut()


Examples of org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation.mapPut()

        invokeLink.withMethod(RestfulHttpMethod.POST);
       
        // when
        JsonRepresentation args = JsonRepresentation.newMap();
        args = JsonRepresentation.newMap();
        args.mapPut("id.value", 123);

        final RestfulResponse<ActionResultRepresentation> restfulResponse = client.followT(invokeLink, args);
       
        // then
        thenResponseIsErrorWithInvalidReason(restfulResponse);
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation.mapPut()

        assertThat(args, RestfulMatchers.mapHas("from"));
        assertThat(args, RestfulMatchers.mapHas("to"));
       
        // when
        args = JsonRepresentation.newMap();
        args.mapPut("from.value", 0);
        args.mapPut("to.value", 1);
        args.mapPut("nonExistent.value", 2);
        assertThat(args.size(), is(3));

        final RestfulResponse<ActionResultRepresentation> restfulResponse = client.followT(invokeLink, args);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.