src/test/java/org/thegalactic/lattice/ConceptTest.java
@Test
    public void testCopyConcept() {
        Concept tt = new Concept(true, true);
        Concept copytt = new Concept(tt);
        assertEquals(tt, copytt);
        Concept ft = new Concept(false, true);
        Concept copyft = new Concept(ft);
        assertTrue(copyft.getSetA() == null);
        assertFalse(copyft.getSetB() == null);
        Concept tf = new Concept(true, false);
        Concept copytf = new Concept(tf);
        assertFalse(copytf.getSetA() == null);
        assertTrue(copytf.getSetB() == null);
        Concept ff = new Concept(false, false);
        Concept copyff = new Concept(ff);
        assertTrue(copyff.getSetA() == null);
        assertTrue(copyff.getSetB() == null);
    }
/**
     * Test the constructor from a copy.
     */
Test the constructor from a copy.
Test the constructor from a copy .
@Test
    public void testCopyConcept() {
        Concept tt = new Concept(true, true);
        Concept copytt = new Concept(tt);
        assertEquals(tt, copytt);
        Concept ft = new Concept(false, true);
        Concept copyft = new Concept(ft);
        assertTrue(copyft.getSetA() == null);
        assertFalse(copyft.getSetB() == null);
        Concept tf = new Concept(true, false);
        Concept copytf = new Concept(tf);
        assertFalse(copytf.getSetA() == null);
        assertTrue(copytf.getSetB() == null);
        Concept ff = new Concept(false, false);
        Concept copyff = new Concept(ff);
        assertTrue(copyff.getSetA() == null);
        assertTrue(copyff.getSetB() == null);
    }
@ Test public void testCopyConcept ( ) { Concept tt = new Concept ( true , true ) ; Concept copytt = new Concept ( tt ) ; assertEquals ( tt , copytt ) ; Concept ft = new Concept ( false , true ) ; Concept copyft = new Concept ( ft ) ; assertTrue ( copyft . getSetA ( ) == null ) ; assertFalse ( copyft . getSetB ( ) == null ) ; Concept tf = new Concept ( true , false ) ; Concept copytf = new Concept ( tf ) ; assertFalse ( copytf . getSetA ( ) == null ) ; assertTrue ( copytf . getSetB ( ) == null ) ; Concept ff = new Concept ( false , false ) ; Concept copyff = new Concept ( ff ) ; assertTrue ( copyff . getSetA ( ) == null ) ; assertTrue ( copyff . getSetB ( ) == null ) ; }
Test the constructor from a copy.
Test the constructor from a copy .