Package MAKBPInterpreter.agents.tests
Class TestCommonKnowledge
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- MAKBPInterpreter.agents.tests.TestCommonKnowledge
-
- All Implemented Interfaces:
junit.framework.Test
public class TestCommonKnowledge extends junit.framework.TestCaseTest class for theCommonKnowledgeclass.
-
-
Constructor Summary
Constructors Constructor Description TestCommonKnowledge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestConstructor()Tests theCommonKnowledge(Formula, java.util.Set)constructor.voidtestContains()Tests theCommonKnowledge.contains(Formula)method.voidtestEquals()Tests theCommonKnowledge.equals(Object)method.voidtestEvaluate()Tests theCommonKnowledge.evaluate(MAKBPInterpreter.logic.LogicAssignment)method.voidtestEvaluateLikeEverybodyKnowledge()Tests theCommonKnowledge.evaluate(MAKBPInterpreter.logic.LogicAssignment)method.voidtestGetNegation()Tests theCommonKnowledge.getNegation()method.voidtestGetters()Tests theCommonKnowledge.getAgents()andCommonKnowledge.getInnerFormula()methods.voidtestSimplify()Tests theCommonKnowledge.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
-
testConstructor
public void testConstructor()
Tests theCommonKnowledge(Formula, java.util.Set)constructor.
-
testGetters
public void testGetters()
Tests theCommonKnowledge.getAgents()andCommonKnowledge.getInnerFormula()methods.
-
testSimplify
public void testSimplify()
Tests theCommonKnowledge.simplify()method.
-
testGetNegation
public void testGetNegation()
Tests theCommonKnowledge.getNegation()method.
-
testEquals
public void testEquals()
Tests theCommonKnowledge.equals(Object)method.
-
testContains
public void testContains()
Tests theCommonKnowledge.contains(Formula)method.
-
testEvaluateLikeEverybodyKnowledge
public void testEvaluateLikeEverybodyKnowledge()
Tests theCommonKnowledge.evaluate(MAKBPInterpreter.logic.LogicAssignment)method.
-
testEvaluate
public void testEvaluate()
Tests theCommonKnowledge.evaluate(MAKBPInterpreter.logic.LogicAssignment)method.
-
-