Package org.jboss.dna.graph.request

Examples of org.jboss.dna.graph.request.CacheableRequest


    public void shouldIncludeTimeLoadedInReadNextBlockOfChildrenRequests() {
        // Get the first child ...
        String workspaceName = graph.getCurrentWorkspaceName();
        Location firstChild = graph.getChildren().of("/").get(0);
        // Don't use the graph so that we can obtain and interrogate the request ...
        CacheableRequest request = new ReadNextBlockOfChildrenRequest(firstChild, workspaceName, 100);
        execute(request);
        assertThat(request.getTimeLoaded(), is(notNullValue()));
    }
View Full Code Here


        String workspaceName = graph.getCurrentWorkspaceName();
        Location firstChildLocation = graph.getChildren().of("/").get(0);
        Node firstChild = graph.getNodeAt(firstChildLocation);
        // Don't use the graph so that we can obtain and interrogate the request ...
        for (Property property : firstChild.getProperties()) {
            CacheableRequest request = new ReadPropertyRequest(firstChildLocation, workspaceName, property.getName());
            execute(request);
            assertThat(request.getTimeLoaded(), is(notNullValue()));
        }
    }
View Full Code Here

    @Test
    public void shouldIncludeTimeLoadedInReadBranchRequests() {
        String workspaceName = graph.getCurrentWorkspaceName();
        // Don't use the graph so that we can obtain and interrogate the request ...
        CacheableRequest request = new ReadBranchRequest(location("/"), workspaceName, 2);
        execute(request);
        assertThat(request.getTimeLoaded(), is(notNullValue()));
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.request.CacheableRequest

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.