Package org.jboss.dna.graph

Examples of org.jboss.dna.graph.Node


    @Test
    public void shouldReturnRootNodeInBranchProjection() {
        // Get the top node of the branch projection using the actual graph ...
        Graph branchGraph = graphFor(branchSourceName, branchWorkspaceName);
        Node branchNode = branchGraph.getNodeAt("/Aircraft");
        Location branchNodeLocation = branchNode.getLocation();
        assertThat(branchNodeLocation.hasIdProperties(), is(true));
        assertThat(branchNodeLocation.getUuid(), is(notNullValue()));

        // Get the same node through the federation source ...
        Node fedNode = federated.getNodeAt("/Aircraft");
        Location fedNodeLocation = fedNode.getLocation();
        assertThat(fedNodeLocation.hasIdProperties(), is(true));
        assertThat(fedNodeLocation.getUuid(), is(notNullValue()));

        // The UUIDs of the nodes must be the same ...
        assertThat(fedNodeLocation.getUuid(), is(branchNodeLocation.getUuid()));
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.Node

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.