src/test/java/org/thegalactic/lattice/ConceptLatticeTest.java
@Test
    public void testClone() {
        Lattice l = new Lattice();
        Concept a = new Concept(true, true);
        l.addNode(a);
        Concept b = new Concept(true, true);
        l.addNode(b);
        l.addEdge(a, b);
        ConceptLattice cl = new ConceptLattice(l);
        ConceptLattice result = cl.clone();
        assertEquals(a, result.getNode(a));
        assertEquals(b, result.getNode(b));
        assertEquals(1, result.getEdges().size());
    }
/**
     * Test of clone method, of class ConceptLattice.
     */
Test of clone method, of class ConceptLattice.
Test of clone method of class ConceptLattice .
@Test
    public void testClone() {
        Lattice l = new Lattice();
        Concept a = new Concept(true, true);
        l.addNode(a);
        Concept b = new Concept(true, true);
        l.addNode(b);
        l.addEdge(a, b);
        ConceptLattice cl = new ConceptLattice(l);
        ConceptLattice result = cl.clone();
        assertEquals(a, result.getNode(a));
        assertEquals(b, result.getNode(b));
        assertEquals(1, result.getEdges().size());
    }
@ Test public void testClone ( ) { Lattice l = new Lattice ( ) ; Concept a = new Concept ( true , true ) ; l . addNode ( a ) ; Concept b = new Concept ( true , true ) ; l . addNode ( b ) ; l . addEdge ( a , b ) ; ConceptLattice cl = new ConceptLattice ( l ) ; ConceptLattice result = cl . clone ( ) ; assertEquals ( a , result . getNode ( a ) ) ; assertEquals ( b , result . getNode ( b ) ) ; assertEquals ( 1 , result . getEdges ( ) . size ( ) ) ; }
Test of clone method, of class ConceptLattice.
Test of clone method of class ConceptLattice .