Examples of DependencyGraph


Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *                           ----> [jaxen] <--+
     * </pre>
     */
    public void testModerateWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );

        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *       ---------&gt; [foo-xml] ---&gt; [xercesImpl] ---&gt; [xmlParserAPIs]
     * </pre>
     */
    public void testSimpleWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );

View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *                           ----&gt; [jaxen] &lt;--+
     * </pre>
     */
    public void testDeepNodeWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );

        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *                           ----&gt; [jaxen] &lt;--+
     * </pre>
     */
    public void testModerateWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );

        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );
View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *       ---------&gt; [foo-xml] ---&gt; [xercesImpl] ---&gt; [xmlParserAPIs]
     * </pre>
     */
    public void testSimpleWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );

View Full Code Here

Examples of org.apache.maven.archiva.dependency.graph.DependencyGraph

     *                           ----&gt; [jaxen] &lt;--+
     * </pre>
     */
    public void testDeepNodeWalk()
    {
        DependencyGraph graph = new DependencyGraph( "org.foo", "foo-util", "1.0" );
        String rootKey = DependencyGraphKeys.toKey( graph.getRootNode().getArtifact() );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-common:1.0::jar" ) );
        addEdgeAndNodes( graph, toEdge( rootKey, "org.foo:foo-xml:1.0::jar" ) );

        addEdgeAndNodes( graph, toEdge( "org.foo:foo-xml:1.0::jar", "xerces:xercesImpl:2.2.1::jar" ) );
        addEdgeAndNodes( graph, toEdge( "xerces:xercesImpl:2.2.1::jar", "xerces:xmlParserAPIs:2.2.1::jar" ) );
View Full Code Here

Examples of org.emftrace.ui.dependencygraph.DependencyGraph

   */
  protected void doBuild()
  {
    super.doBuild();
    bodyComposite.setLayout(new GridLayout(1, true));
    graph = new DependencyGraph(bodyComposite, SWT.NONE, accessLayer);
   
    if( model instanceof Trace) graph.buildFromTrace((Trace)model);
    else                        graph.buildForModel(model, project, true, true);
  }
View Full Code Here

Examples of org.emftrace.ui.dependencygraph.DependencyGraph

   */
  protected void doBuild()
  {
    super.doBuild();
    bodyComposite.setLayout(new GridLayout(1, true));
    graph = new DependencyGraph(bodyComposite, SWT.NONE, accessLayer);
   
    if( model instanceof Trace) graph.buildFromTrace((Trace)model);
    else                        graph.buildForModel(model, project, true, true);
  }
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

    public void openCloseClassPlanetNode() {
       
    }
   
    private void checkClassPlanet() {
        DependencyGraph graph = fGraphPanel.getGraph();
        org.evolizer.famix.model.entities.FamixPackage thebigvoidPackage = new org.evolizer.famix.model.entities.FamixPackage("thebigvoid", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + thebigvoidPackage.getUniqueName(), graph.contains(thebigvoidPackage));
        org.evolizer.famix.model.entities.FamixClass planetClass = new org.evolizer.famix.model.entities.FamixClass("thebigvoid.Planet", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + planetClass.getUniqueName(), graph.contains(planetClass));
        org.evolizer.famix.model.entities.FamixMethod planetContstructor = new org.evolizer.famix.model.entities.FamixMethod("thebigvoid.Planet.<init>(java.lang.String,java.awt.Color)", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + planetContstructor.getUniqueName(), graph.contains(planetContstructor));
        org.evolizer.famix.model.entities.FamixMethod getColor = new org.evolizer.famix.model.entities.FamixMethod("thebigvoid.Planet.getColor()", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + getColor.getUniqueName(), graph.contains(getColor));
        org.evolizer.famix.model.entities.FamixAttribute color = new org.evolizer.famix.model.entities.FamixAttribute("thebigvoid.Planet.color", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + color.getUniqueName(), graph.contains(color));

        Node thebigvoidPackageNode = graph.getNode(thebigvoidPackage);
        Node planetClassNode = graph.getNode(planetClass);
        Node planetConstructorNode = graph.getNode(planetContstructor);
        Node getColorNode = graph.getNode(getColor);
        Node colorNode = graph.getNode(color);
        Assert.assertNull("Parent node of " + thebigvoidPackageNode + " has to be null", graph.getHierarchyManager().getParentNode(thebigvoidPackageNode));
        Assert.assertEquals("Parent node of " + planetClassNode + " has to be " + thebigvoidPackageNode, thebigvoidPackageNode, graph.getHierarchyManager().getParentNode(planetClassNode));
        Assert.assertEquals("Parent node of " + planetConstructorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(planetConstructorNode));
        Assert.assertEquals("Parent node of " + getColorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(getColorNode));
        Assert.assertEquals("Parent node of " + colorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(colorNode));

        Assert.assertEquals(thebigvoidPackageNode + " does have 0 edges", 0, thebigvoidPackageNode.edges().size());
        Assert.assertEquals(planetClassNode + " does have 0 edges", 0, planetClassNode.edges().size());
        Assert.assertNotNull("There should be an edge between " + getColorNode + " and " + colorNode, getColorNode.getEdge(colorNode));
        Assert.assertNotNull("There should be an edge between " + planetConstructorNode + " and " + colorNode, planetConstructorNode.getEdge(colorNode));
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

     */
    public void execute() {
        setEditResult(new EditResult());

        if (!fEntities.isEmpty()) {
            DependencyGraph graph = getGraphLoader().getGraph();
            fireGraphPreEvent();

            for (NodeCursor nc = graph.nodes(); nc.ok(); nc.next()) {
                getEdgeGrouper().reinsertLowLevelEdges(nc.node());
            }

            getEditResult().addAll(getGraphLoader().addEntitiesAndAssociations(fEntities));
            getEdgeGrouper().groupAll();
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.