test
Class PredicateTest

java.lang.Object
  extended by test.PredicateTest

public class PredicateTest
extends java.lang.Object

Testing class for Predicate object.


Constructor Summary
PredicateTest()
           
 
Method Summary
 void testAddRelatedClause()
          Test functions of building clause-predicate relationships.
 void testArity()
          Test arity-related functions of Predicate.
 void testEvidence()
          Test functions of marking some atoms as evidence.
 void testGetArgs()
          Test argument-related functions.
 void testGroundAndStoreAtom()
          Test functions of grounding a predicate and store the resulting atoms to database table.
 void testHasQuery()
          Test functions of determining whether there are query atoms belonging to this predication.
 void testSetAllQuery()
          Test the function setAllQuery().
 void testSetClosedWorld()
          Test closed-world-related functions.
 void testSetID()
          Test ID-related functions.
 void testStoreQueries()
          Test functions of marking some atoms as query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateTest

public PredicateTest()
Method Detail

testAddRelatedClause

public final void testAddRelatedClause()
Test functions of building clause-predicate relationships.


testArity

public final void testArity()
Test arity-related functions of Predicate.


testEvidence

public final void testEvidence()
Test functions of marking some atoms as evidence.


testGetArgs

public final void testGetArgs()
Test argument-related functions.


testGroundAndStoreAtom

public final void testGroundAndStoreAtom()
                                  throws java.lang.Exception
Test functions of grounding a predicate and store the resulting atoms to database table.

Throws:
java.lang.Exception

testHasQuery

public final void testHasQuery()
Test functions of determining whether there are query atoms belonging to this predication.


testSetAllQuery

public final void testSetAllQuery()
Test the function setAllQuery().


testSetClosedWorld

public final void testSetClosedWorld()
Test closed-world-related functions.


testSetID

public final void testSetID()
Test ID-related functions.


testStoreQueries

public final void testStoreQueries()
Test functions of marking some atoms as query.