01: /*
02: * Copyright (C) 1999-2004 <a href="mailto:mandarax@jbdietrich.com">Jens Dietrich</a>
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package test.org.mandarax.jdbc;
20:
21: import junit.framework.TestSuite;
22:
23: /**
24: * A test suite for creating connections.
25: * @author <A HREF="mailto:mandarax@jbdietrich.com">Jens Dietrich</A>
26: * @version 3.3.2 <29 December 2004>
27: * @since 3.0
28: */
29:
30: public class CreateConnectionTests implements TestURLs {
31:
32: /**
33: * Launch the test suite. See TestRunner for interpretation
34: * of command line parameters.
35: * @see test.org.mandarax.testsupport.TestRunner
36: * @param args parameters
37: */
38: public static void main(String[] args) {
39: test.org.mandarax.testsupport.TestRunner.run(
40: CreateConnectionTests.class, args);
41: }
42:
43: /**
44: * Get the test suite.
45: * @return a test suite
46: */
47: public static TestSuite suite() {
48:
49: TestSuite suite = new TestSuite(
50: "Test connections using different mandarax urls");
51: suite.addTest(new CreateConnectionTestCase(null, false));
52: suite.addTest(new CreateConnectionTestCase("jdbc:mandarax:abc",
53: false));
54: suite.addTest(new CreateConnectionTestCase(
55: "jdbc:mandarax:zkb2:" + TestKB.ZKB_FILE, false));
56: suite.addTest(new CreateConnectionTestCase("jdbc:mandarax:zkb:"
57: + TestKB.ZKB_FILE, true));
58: suite.addTest(new CreateConnectionTestCase("jdbc:mandarax:xkb:"
59: + TestKB.XKB_FILE, true));
60: suite.addTest(new CreateConnectionTestCase(
61: "jdbc:mandarax:ruleml:" + TestKB.RULE_ML_FILE, true));
62: suite.addTest(new CreateConnectionTestCase("jdbc:mandarax:ref:"
63: + TestKnowledgeBaseRef.class.getName(), true));
64: suite.addTest(new CreateConnectionTestCase("jdbc:mandarax:ref:"
65: + TestKnowledgeBaseRef.class.getName()
66: + ":some parameters", true));
67: return suite;
68: }
69: }
|