Package com.tinkerpop.frames.domain.classes

Examples of com.tinkerpop.frames.domain.classes.Project


  }
 
 
  @Test
  public void testJavaHandlerClassAnnotation() {
    Project project = g.getVertex(5, Project.class);
    Assert.assertEquals("java", project.getLanguageUsingMixin());
  }
View Full Code Here


        assertEquals(people, newHashSet(josh.getKnowsPeople()));
    }

    @Test
    public void testGettingAndSettingFunctionalAdjacencies() {
        Project rdfAgents = framedGraph.frame(graph.addVertex(null), Project.class);
        Project tinkerNotes = framedGraph.frame(graph.addVertex(null), Project.class);

        assertNull(josh.getLatestProject());

        josh.setLatestProject(rdfAgents);
        assertEquals(rdfAgents, josh.getLatestProject());
View Full Code Here

        marko.setKnowsPersonDirectionBothError(peter);
    }
   
    @Test(expected=UnsupportedOperationException.class)
    public void testAddIncidenceBothError() {
        Project rdfAgents = framedGraph.frame(graph.addVertex(null), Project.class);
        marko.addCreatedDirectionBothError(rdfAgents);
    }
View Full Code Here

        marko.addCreatedDirectionBothError(rdfAgents);
    }

    @Test
    public void testAddAdjacencyIn() {
        Project rdfAgents = framedGraph.addVertex(null, Project.class);
        rdfAgents.addCreatedByPersonAdjacency(marko);
        assertEquals(marko, getOnlyElement(rdfAgents.getCreatedByPeople()));
    }
View Full Code Here

        assertEquals(marko, getOnlyElement(rdfAgents.getCreatedByPeople()));
    }

    @Test
    public void testAddIncidenceIn() {
        Project rdfAgents = framedGraph.addVertex(null, Project.class);
        CreatedInfo createdInfo = rdfAgents.addCreatedByPersonInfo(marko);
          
        assertEquals(marko, createdInfo.getPerson());
        assertEquals(rdfAgents, createdInfo.getProject());
        assertEquals(marko, getOnlyElement(rdfAgents.getCreatedByPeople()));
    }
View Full Code Here

    /**
     * Use deprecated Domain/Range annotations on edge
     */
    @Test
    public void testAddIncidenceInDeprecated() {
        Project rdfAgents = framedGraph.addVertex(null, Project.class);
        CreatedBy createdBy = rdfAgents.addCreatedByPersonIncidence(marko);
          
        assertEquals(marko, createdBy.getRange());
        assertEquals(rdfAgents, createdBy.getDomain());
        assertEquals(marko, getOnlyElement(rdfAgents.getCreatedByPeople()));
    }
View Full Code Here

        Person marko = framedGraph.getVertex(1, Person.class);
        assertEquals(marko.getName(), "marko");
        assertEquals(marko.getAge(), new Integer(29));

        Project lop = framedGraph.getVertex(3, Project.class);
        assertEquals(lop.getName(), "lop");
        assertEquals(lop.getLanguage(), "java");

        CreatedInfo markoCreatedLopInfo = framedGraph.getEdge(9, CreatedInfo.class);
        assertEquals(markoCreatedLopInfo.getWeight(), 0.4f, 0.1f);
        //Same with using deprecated Domain/Range annotations:
        Created markoCreatedLop = framedGraph.getEdge(9, Direction.OUT, Created.class);
View Full Code Here

TOP

Related Classes of com.tinkerpop.frames.domain.classes.Project

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.