Examples of walk()


Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and given a walker starting from this response
        final RepresentationWalker walker = client.createWalker(homePageResp);

        // when walk the home pages' 'services' link
        walker.walk("services");

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // when walk the home pages' 'services' link
        walker.walk("services");

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
        // to its details
        walker.walk("values[objectMemberType=action].details");
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
        // to its details
        walker.walk("values[objectMemberType=action].details");

        // and when find the invoke body for the "newEntity" action and then
        // walk the action using the body
        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and when find the invoke body for the "newEntity" action and then
        // walk the action using the body
        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
        walker.walk("invoke", newEntityActionInvokeBody);

        // and when walk the link to the returned object
        walker.walk("link");

        // then the returned object is created with its OID
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
        walker.walk("invoke", newEntityActionInvokeBody);

        // and when walk the link to the returned object
        walker.walk("link");

        // then the returned object is created with its OID
        final JsonRepresentation newEntityDomainObject = walker.getEntity();
        assertThat(newEntityDomainObject.getString("_self.link.href"), matches(".+/objects/OID:[\\d]+$"));
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and given a walker starting from this response
        final RepresentationWalker walker = client.createWalker(homePageResp);

        // when walk the home pages' 'services' link
        walker.walk("services");

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // when walk the home pages' 'services' link
        walker.walk("services");

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
        // to its details
        walker.walk("values[memberType=action].details");
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and when locate the ApplibValues repo and walk the its 'object' link
        walker.walk("values[title=ApplibValues].links[rel=object]");

        // and when locate the AppLibValues repo's "newEntity" action and walk
        // to its details
        walker.walk("values[memberType=action].details");

        // and when find the invoke body for the "newEntity" action and then
        // walk the action using the body
        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        // and when find the invoke body for the "newEntity" action and then
        // walk the action using the body
        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
        walker.walk("invoke", newEntityActionInvokeBody);

        // and when walk the link to the returned object
        walker.walk("link");

        // then the returned object is created with its OID
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RepresentationWalker.walk()

        final JsonRepresentation newEntityActionDetails = walker.getEntity();
        final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
        walker.walk("invoke", newEntityActionInvokeBody);

        // and when walk the link to the returned object
        walker.walk("link");

        // then the returned object is created with its OID
        final JsonRepresentation newEntityDomainObject = walker.getEntity();
        assertThat(newEntityDomainObject.getString("_self.link.href"), matches(".+/objects/OID:[\\d]+$"));
    }
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.