|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
lp.struct.LpStructureUnitTestUtils
lp.struct.LpPredicateTest
public class LpPredicateTest
Contains tests of the LpPredicate class.
LpPredicate| Constructor Summary | |
|---|---|
LpPredicateTest(String testName)
A default test case constructor. |
|
| Method Summary | |
|---|---|
void |
testConstructorExceptions()
Tests if the constructor throws the appropriate exceptions. |
private void |
testEquals(LpPredicate p1,
LpPredicate p2)
Asserts that the given predicate symbols are equal and that their hash codes are equal. |
void |
testEqualsAndHashCode()
Tests the LpPredicate.equals(Object) and
LpPredicate.hashCode() methods. |
void |
testGetArity()
Test of LpPredicate.getArity() method. |
private void |
testNotEquals(LpPredicate p1,
LpPredicate p2)
Asserts that the given predicate symbols are not equal. |
void |
testToString()
Tests LpPredicate.toString() method. |
| Methods inherited from class lp.struct.LpStructureUnitTestUtils |
|---|
testToString |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LpPredicateTest(String testName)
testName - the name of the test case| Method Detail |
|---|
public void testConstructorExceptions()
public void testGetArity()
LpPredicate.getArity() method.
public void testEqualsAndHashCode()
LpPredicate.equals(Object) and
LpPredicate.hashCode() methods.
private void testEquals(LpPredicate p1,
LpPredicate p2)
p1 - first tested literalp2 - second tested literal
private void testNotEquals(LpPredicate p1,
LpPredicate p2)
p1 - first tested literalp2 - second tested literalpublic void testToString()
LpPredicate.toString() method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||