/*
* Copyright 2005 by Lars Torunski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.torunski.crawler;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Test class for the com.torunski.crawler package.
* It invokes all the test suites of all the other classes of the package.
*
* @author Lars Torunski
* @version $Revision: 1.2 $
*/
public final class TestComplete extends TestCase {
/**
* Constructor for the osCache project main test program
*/
public TestComplete(String str) {
super(str);
}
/**
* Main method which is called to perform the tests
* @param args Arguments received
*/
public static void main(String[] args) {
// Run the test suite
junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
testRunner.setLoading(false);
String[] args2 = {TestComplete.class.getName()};
testRunner.start(args2);
}
/**
* Test suite required to test this crawler
* @return suite The test suite
*/
public static Test suite() {
// Add all the tests suite of all the crawler classes
TestSuite suite = new TestSuite("Test all root crawler classes");
suite.addTest(TestCrawler.suite());
suite.addTest(TestMultiThreadedCrawler.suite());
return suite;
}
}
|