src/test/java/org/thegalactic/lattice/BijectiveComponentsTest.java
@Test
    public void testinitalizeContext() {
        Context context = new Context();
        BijectiveComponents bc = new BijectiveComponents(context);
        bc.compute();
        assertTrue(bc.getClosureSystem() != null);
        assertTrue(bc.getLattice() != null);
        assertTrue(bc.getReducedLattice() != null);
        assertTrue(bc.getDependencyGraph() != null);
        assertTrue(bc.getMinimalGenerators() != null);
        assertTrue(bc.getCanonicalDirectBasis() != null);
        assertTrue(bc.getCanonicalBasis() != null);
        assertTrue(bc.getTable() != null);
    }
/**
     * Test the compute method with a context.
     */
Test the compute method with a context.
Test the compute method with a context .
@Test
    public void testinitalizeContext() {
        Context context = new Context();
        BijectiveComponents bc = new BijectiveComponents(context);
        bc.compute();
        assertTrue(bc.getClosureSystem() != null);
        assertTrue(bc.getLattice() != null);
        assertTrue(bc.getReducedLattice() != null);
        assertTrue(bc.getDependencyGraph() != null);
        assertTrue(bc.getMinimalGenerators() != null);
        assertTrue(bc.getCanonicalDirectBasis() != null);
        assertTrue(bc.getCanonicalBasis() != null);
        assertTrue(bc.getTable() != null);
    }
@ Test public void testinitalizeContext ( ) { Context context = new Context ( ) ; BijectiveComponents bc = new BijectiveComponents ( context ) ; bc . compute ( ) ; assertTrue ( bc . getClosureSystem ( ) != null ) ; assertTrue ( bc . getLattice ( ) != null ) ; assertTrue ( bc . getReducedLattice ( ) != null ) ; assertTrue ( bc . getDependencyGraph ( ) != null ) ; assertTrue ( bc . getMinimalGenerators ( ) != null ) ; assertTrue ( bc . getCanonicalDirectBasis ( ) != null ) ; assertTrue ( bc . getCanonicalBasis ( ) != null ) ; assertTrue ( bc . getTable ( ) != null ) ; }
Test the compute method with a context.
Test the compute method with a context .