01: /*
02: * Copyright 2005 by Lars Torunski
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: *
16: */
17: package com.torunski.crawler;
18:
19: import junit.framework.Test;
20: import junit.framework.TestCase;
21: import junit.framework.TestSuite;
22:
23: /**
24: * Test class for the com.torunski.crawler package.
25: * It invokes all the test suites of all the other classes of the package.
26: *
27: * @author Lars Torunski
28: * @version $Revision: 1.2 $
29: */
30: public final class TestComplete extends TestCase {
31:
32: /**
33: * Constructor for the osCache project main test program
34: */
35: public TestComplete(String str) {
36: super (str);
37: }
38:
39: /**
40: * Main method which is called to perform the tests
41: * @param args Arguments received
42: */
43: public static void main(String[] args) {
44: // Run the test suite
45: junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
46: testRunner.setLoading(false);
47:
48: String[] args2 = { TestComplete.class.getName() };
49: testRunner.start(args2);
50: }
51:
52: /**
53: * Test suite required to test this crawler
54: * @return suite The test suite
55: */
56: public static Test suite() {
57: // Add all the tests suite of all the crawler classes
58: TestSuite suite = new TestSuite("Test all root crawler classes");
59:
60: suite.addTest(TestCrawler.suite());
61: suite.addTest(TestMultiThreadedCrawler.suite());
62:
63: return suite;
64: }
65: }
|