Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.reasoner.rulesys.test
Class TestGenericRules  view TestGenericRules download TestGenericRules.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.hp.hpl.jena.reasoner.rulesys.test.TestGenericRules
All Implemented Interfaces:
junit.framework.Test

public class TestGenericRules
extends junit.framework.TestCase

Test the packaging of all the reasoners into the GenericRuleReasoner. The other tests check out this engine. These tests just need to touch enough to validate the packaging.

Version:
$Revision: 1.16 $ on $Date: 2005/04/12 16:40:16 $

Field Summary
(package private)  com.hp.hpl.jena.graph.Node a
           
(package private)  com.hp.hpl.jena.graph.Triple[] ans
           
(package private)  com.hp.hpl.jena.graph.Node b
           
(package private)  com.hp.hpl.jena.graph.Node c
           
(package private)  com.hp.hpl.jena.graph.Node C1
           
(package private)  com.hp.hpl.jena.graph.Node C2
           
(package private)  com.hp.hpl.jena.graph.Node C3
           
(package private)  com.hp.hpl.jena.graph.Node d
           
protected static org.apache.commons.logging.Log logger
           
(package private)  com.hp.hpl.jena.graph.Node p
           
(package private)  com.hp.hpl.jena.graph.Node q
           
(package private)  com.hp.hpl.jena.graph.Node r
           
(package private)  java.util.List ruleList
           
(package private)  com.hp.hpl.jena.graph.Node s
           
(package private)  com.hp.hpl.jena.graph.Node sC
           
(package private)  com.hp.hpl.jena.graph.Node t
           
(package private)  com.hp.hpl.jena.graph.Node ty
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestGenericRules(java.lang.String name)
          Boilerplate for junit
 
Method Summary
 void doTestAddRemove(boolean useTGC)
          Internals of add/remove test.
static junit.framework.TestSuite suite()
          Boilerplate for junit.
 void testAddRemove()
          Test add/remove support
 void testAddRemove2()
          Resolve a bug using remove in rules themselves.
 void testBackward()
          Minimal rule tester to check basic pattern match, backward style.
 void testExtendedRuleParser()
          Test the @prefix and @include extensions to the rule parser
 void testForward()
          Minimal rule tester to check basic pattern match, forward style.
 void testHybrid()
          Test example hybrid rule.
 void testHybridFunctorFilter()
          Test control of functor filtering
 void testParameters()
          Test example parameter setting
 
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
 

Field Detail

logger

protected static org.apache.commons.logging.Log logger

p

com.hp.hpl.jena.graph.Node p

q

com.hp.hpl.jena.graph.Node q

r

com.hp.hpl.jena.graph.Node r

s

com.hp.hpl.jena.graph.Node s

t

com.hp.hpl.jena.graph.Node t

a

com.hp.hpl.jena.graph.Node a

b

com.hp.hpl.jena.graph.Node b

c

com.hp.hpl.jena.graph.Node c

d

com.hp.hpl.jena.graph.Node d

C1

com.hp.hpl.jena.graph.Node C1

C2

com.hp.hpl.jena.graph.Node C2

C3

com.hp.hpl.jena.graph.Node C3

ty

com.hp.hpl.jena.graph.Node ty

sC

com.hp.hpl.jena.graph.Node sC

ruleList

java.util.List ruleList

ans

com.hp.hpl.jena.graph.Triple[] ans
Constructor Detail

TestGenericRules

public TestGenericRules(java.lang.String name)
Boilerplate for junit

Method Detail

suite

public static junit.framework.TestSuite suite()
Boilerplate for junit. This is its own test suite


testForward

public void testForward()
Minimal rule tester to check basic pattern match, forward style.


testBackward

public void testBackward()
Minimal rule tester to check basic pattern match, backward style.


testHybrid

public void testHybrid()
Test example hybrid rule.


testParameters

public void testParameters()
Test example parameter setting


testHybridFunctorFilter

public void testHybridFunctorFilter()
Test control of functor filtering


testExtendedRuleParser

public void testExtendedRuleParser()
Test the @prefix and @include extensions to the rule parser


testAddRemove

public void testAddRemove()
Test add/remove support


doTestAddRemove

public void doTestAddRemove(boolean useTGC)
Internals of add/remove test.


testAddRemove2

public void testAddRemove2()
Resolve a bug using remove in rules themselves.