Examples of CacheableRequest


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

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

        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

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

    @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
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.