Examples of arrayIterable()


Examples of org.apache.isis.viewer.json.applib.JsonRepresentation.arrayIterable()

        // when
        final JsonRepresentation values = repr.getValues();

        // then
        for (final LinkRepresentation link : values.arrayIterable(LinkRepresentation.class)) {
            final RestfulResponse<JsonRepresentation> followJsonResp = client.follow(link);
            assertThat(followJsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));

            final JsonRepresentation followRepr = followJsonResp.getEntity();
            final LinkRepresentation self = followRepr.getLink("links[rel=self]");
View Full Code Here

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

        // when
        final JsonRepresentation values = repr.getValue();

        // then
        for (final LinkRepresentation link : values.arrayIterable(LinkRepresentation.class)) {
            assertThat("HiddenRepository should not show up in services list", false, is(link.getHref().endsWith("HiddenRepository")));
        }
       
        // and also
        for (final LinkRepresentation link : values.arrayIterable(LinkRepresentation.class)) {
View Full Code Here

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

        for (final LinkRepresentation link : values.arrayIterable(LinkRepresentation.class)) {
            assertThat("HiddenRepository should not show up in services list", false, is(link.getHref().endsWith("HiddenRepository")));
        }
       
        // and also
        for (final LinkRepresentation link : values.arrayIterable(LinkRepresentation.class)) {

            assertThat(link, isLink(client)
                    .rel(containsString(Rel.SERVICE.getName()))
                    .href(containsString(":39393/"))
                    .httpMethod(RestfulHttpMethod.GET)
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.