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.TestCaseTest class for theAndclass.
-
-
Constructor Summary
Constructors Constructor Description TestAnd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestConstructors()Tests theAnd(Formula...)andAnd(java.util.Collection)constructors.voidtestContains()Tests theAnd.contains(Formula)method.voidtestEquals()Tests theAnd.equals(Object)method.voidtestEvaluate()Tests theAnd.evaluate(MAKBPInterpreter.logic.LogicAssignment)method.voidtestGetNegation()Tests theAnd.getNegation()method.voidtestGetOperands()Tests theAnd.getOperands()method.voidtestSimplify()Tests theAnd.simplify()method.voidtestSimplify2()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.
-
-