01: /******************************************************************
02: * File: TestPackage.java
03: * Created by: Dave Reynolds
04: * Created on: 30-Mar-03
05: *
06: * (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
07: * [See end of file]
08: * $Id: TestPackage.java,v 1.30 2008/01/22 15:15:03 chris-dollin Exp $
09: *****************************************************************/package com.hp.hpl.jena.reasoner.rulesys.test;
10:
11: import junit.framework.*;
12:
13: /**
14: * Aggregate tester that runs all the test associated with the rulesys package.
15: *
16: * @author <a href="mailto:der@hplb.hpl.hp.com">Dave Reynolds</a>
17: * @version $Revision: 1.30 $ on $Date: 2008/01/22 15:15:03 $
18: */
19:
20: public class TestPackage extends TestSuite {
21:
22: static public TestSuite suite() {
23: return new TestPackage();
24: }
25:
26: /** Creates new TestPackage */
27: private TestPackage() {
28: super ("RuleSys");
29:
30: addTestSuite(TestConfigVocabulary.class);
31: addTestSuite(TestGenericRuleReasonerConfig.class);
32: addTest("TestBasics", TestBasics.suite());
33: addTest("TestBackchainer", TestBackchainer.suite());
34: addTest("TestLPBasics", TestBasicLP.suite());
35: addTest("TestLPDerivation", TestLPDerivation.suite());
36: addTest("TestFBRules", TestFBRules.suite());
37: addTest("TestGenericRules", TestGenericRules.suite());
38: addTest("TestRETE", TestRETE.suite());
39: addTest(TestSetRules.suite());
40: addTest("TestOWLRules", TestOWLRules.suite());
41: addTest("OWLRuleUnitTests", OWLUnitTest.suite());
42: addTest("TestBugs", TestBugs.suite());
43: addTest("TestCapabilities", TestCapabilities.suite());
44: addTestSuite(TestInferenceReification.class);
45: addTestSuite(TestRestrictionsDontNeedTyping.class);
46:
47: // No longer needed because the tests are now subsumed in OWLUnitTest
48: // addTest( "TestOWLConsistency", TestOWLRules.suite() );
49: }
50:
51: // helper method
52: private void addTest(String name, TestSuite tc) {
53: tc.setName(name);
54: addTest(tc);
55: }
56:
57: }
58:
59: /*
60: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
61: All rights reserved.
62:
63: Redistribution and use in source and binary forms, with or without
64: modification, are permitted provided that the following conditions
65: are met:
66:
67: 1. Redistributions of source code must retain the above copyright
68: notice, this list of conditions and the following disclaimer.
69:
70: 2. Redistributions in binary form must reproduce the above copyright
71: notice, this list of conditions and the following disclaimer in the
72: documentation and/or other materials provided with the distribution.
73:
74: 3. The name of the author may not be used to endorse or promote products
75: derived from this software without specific prior written permission.
76:
77: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
78: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
79: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
80: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
81: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
82: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
83: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
84: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
85: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
86: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87: */
|