src/test/java/org/thegalactic/dgraph/EdgeTest.java
@Test
    public void testGetSource() {
        Node<String> source = new Node<String>("Hello");
        Node<String> target = new Node<String>("World");
        Edge<String, String> edge = new Edge<String, String>(source, target, "happy new year");
        assertEquals(source, edge.getSource());
    }
/**
     * Test of getTarget method, of class Edge.
     */
Test of getTarget method, of class Edge.
Test of getTarget method of class Edge .
@Test
    public void testGetSource() {
        Node<String> source = new Node<String>("Hello");
        Node<String> target = new Node<String>("World");
        Edge<String, String> edge = new Edge<String, String>(source, target, "happy new year");
        assertEquals(source, edge.getSource());
    }
@ Test public void testGetSource ( ) { Node < String > source = new Node < String > ( "Hello" ) ; Node < String > target = new Node < String > ( "World" ) ; Edge < String , String > edge = new Edge < String , String > ( source , target , "happy new year" ) ; assertEquals ( source , edge . getSource ( ) ) ; }
Test of getTarget method, of class Edge.
Test of getTarget method of class Edge .