Package MAKBPInterpreter.logic.tests
Class TestAnd
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- MAKBPInterpreter.logic.tests.TestAnd
-
- All Implemented Interfaces:
junit.framework.Test
public class TestAnd extends junit.framework.TestCase
Test class for theAnd
class.
-
-
Constructor Summary
Constructors Constructor Description TestAnd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testConstructors()
Tests theAnd(Formula...)
andAnd(java.util.Collection)
constructors.void
testContains()
Tests theAnd.contains(Formula)
method.void
testEquals()
Tests theAnd.equals(Object)
method.void
testEvaluate()
Tests theAnd.evaluate(MAKBPInterpreter.logic.LogicAssignment)
method.void
testGetNegation()
Tests theAnd.getNegation()
method.void
testGetOperands()
Tests theAnd.getOperands()
method.void
testSimplify()
Tests theAnd.simplify()
method.void
testSimplify2()
Tests theAnd.simplify()
method.-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Method Detail
-
testConstructors
public void testConstructors()
Tests theAnd(Formula...)
andAnd(java.util.Collection)
constructors.
-
testGetOperands
public void testGetOperands()
Tests theAnd.getOperands()
method.
-
testEquals
public void testEquals()
Tests theAnd.equals(Object)
method.
-
testSimplify
public void testSimplify()
Tests theAnd.simplify()
method.
-
testSimplify2
public void testSimplify2()
Tests theAnd.simplify()
method. Specialized when we have another "And" formula inside the current "And".
-
testGetNegation
public void testGetNegation()
Tests theAnd.getNegation()
method.
-
testContains
public void testContains()
Tests theAnd.contains(Formula)
method.
-
testEvaluate
public void testEvaluate()
Tests theAnd.evaluate(MAKBPInterpreter.logic.LogicAssignment)
method.
-
-