001: /*
002: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
003: [See end of file]
004: $Id: TestPackage.java,v 1.44 2008/01/02 12:09:47 andy_seaborne Exp $
005: */
006:
007: package com.hp.hpl.jena.test;
008:
009: import junit.framework.Test;
010: import junit.framework.TestSuite;
011:
012: import com.hp.hpl.jena.assembler.test.TestAssemblerPackage;
013:
014: /**
015: * All developers should edit this file to add their tests.
016: * Please try to name your tests and test suites appropriately.
017: * Note, it is better to name your test suites on creation
018: * rather than in this file.
019: * @author jjc
020: */
021: public class TestPackage extends TestSuite {
022:
023: static public Test suite() {
024: return new TestPackage();
025: }
026:
027: /** Creates new TestPackage */
028: private TestPackage() {
029: super ("Jena");
030: addTest("Enhanced", com.hp.hpl.jena.enhanced.test.TestPackage
031: .suite());
032: addTest("Graph", com.hp.hpl.jena.graph.test.TestPackage.suite());
033: addTest(com.hp.hpl.jena.mem.test.TestMemPackage.suite());
034: addTest("Model", com.hp.hpl.jena.rdf.model.test.TestPackage
035: .suite());
036: addTest("N3", com.hp.hpl.jena.n3.test.N3TestSuite.suite());
037: addTest("Turtle",
038: com.hp.hpl.jena.n3.turtle.test.TurtleTestSuite.suite());
039:
040: // RDQL is deprecated and will be removed
041: // addTest("RDQL", com.hp.hpl.jena.rdql.test.RDQLTestSuite.suite());
042:
043: // Avoid a compile time dependency on ARQ.
044: {
045: TestSuite arqSuite = TestPackageARQ.suite();
046: if (arqSuite != null)
047: addTest("ARQ", arqSuite);
048: else
049: System.err.println("ARQ test suite not run");
050: }
051: addTest("XML Output",
052: com.hp.hpl.jena.xmloutput.test.TestPackage.suite());
053: addTest("Util", com.hp.hpl.jena.util.test.TestPackage.suite());
054: addTest(com.hp.hpl.jena.util.iterator.test.TestPackage.suite());
055: addTest("Mega", com.hp.hpl.jena.regression.MegaTestSuite
056: .suite());
057: addTest(com.hp.hpl.jena.rdf.arp.test.TestPackage.suite());
058: addTest(TestAssemblerPackage.suite());
059: addTest(com.hp.hpl.jena.rdf.arp.test.SAX2RDFTest.suite());
060: addTest(com.hp.hpl.jena.rdf.arp.test.MoreTests.suite());
061: addTest(com.hp.hpl.jena.rdf.arp.states.test.TestARPStates
062: .suite());
063: addTest(com.hp.hpl.jena.rdf.arp.test.URITests.suite());
064: addTest(com.hp.hpl.jena.rdf.arp.test.TaintingTests.suite());
065: addTest("Vocabularies",
066: com.hp.hpl.jena.vocabulary.test.TestVocabularies
067: .suite());
068: addTest(com.hp.hpl.jena.shared.test.TestSharedPackage.suite());
069: addTest("Reasoners", com.hp.hpl.jena.reasoner.test.TestPackage
070: .suite());
071: addTest("Composed graphs",
072: com.hp.hpl.jena.graph.compose.test.TestPackage.suite());
073: addTest("Ontology",
074: com.hp.hpl.jena.ontology.impl.test.TestPackage.suite());
075: addTest("cmd line utils", jena.test.TestPackage.suite());
076: }
077:
078: private void addTest(String name, TestSuite tc) {
079: tc.setName(name);
080: addTest(tc);
081: }
082: }
083:
084: /*
085: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
086: All rights reserved.
087:
088: Redistribution and use in source and binary forms, with or without
089: modification, are permitted provided that the following conditions
090: are met:
091:
092: 1. Redistributions of source code must retain the above copyright
093: notice, this list of conditions and the following disclaimer.
094:
095: 2. Redistributions in binary form must reproduce the above copyright
096: notice, this list of conditions and the following disclaimer in the
097: documentation and/or other materials provided with the distribution.
098:
099: 3. The name of the author may not be used to endorse or promote products
100: derived from this software without specific prior written permission.
101:
102: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
103: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
104: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
105: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
106: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
107: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
108: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
109: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
110: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
111: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
112: */
|