src/test/java/org/thegalactic/lattice/ConceptLatticeTest.java
@Test
    public void testContainsAllSetB() {
        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 instance = new ConceptLattice(l);
        boolean expResult = true;
        for (Object node : instance.getNodes()) {
            expResult &= ((Concept) node).hasSetB();
        }
        boolean result = instance.containsAllSetB();
        assertEquals(expResult, result);
    }
/**
     * Test of containsAllSetB method, of class ConceptLattice.
     */
Test of containsAllSetB method, of class ConceptLattice.
Test of containsAllSetB method of class ConceptLattice .
@Test
    public void testContainsAllSetB() {
        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 instance = new ConceptLattice(l);
        boolean expResult = true;
        for (Object node : instance.getNodes()) {
            expResult &= ((Concept) node).hasSetB();
        }
        boolean result = instance.containsAllSetB();
        assertEquals(expResult, result);
    }
@ Test public void testContainsAllSetB ( ) { 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 instance = new ConceptLattice ( l ) ; boolean expResult = true ; for ( Object node : instance . getNodes ( ) ) { expResult &= ( ( Concept ) node ) . hasSetB ( ) ; } boolean result = instance . containsAllSetB ( ) ; assertEquals ( expResult , result ) ; }
Test of containsAllSetB method, of class ConceptLattice.
Test of containsAllSetB method of class ConceptLattice .