package conformance;
import test.*;
/** Runs all conformance tests on distributed filesystem components.
Tests performed are:
- {@link conformance.rmi.SkeletonTest}
- {@link conformance.rmi.StubTest}
- {@link conformance.rmi.ConnectionTest}
- {@link conformance.rmi.ThreadTest}
*/
public class ConformanceTests
{
/** Runs the tests.
@param arguments Ignored.
*/
public static void main(String[] arguments)
{
// Create the test list, the series object, and run the test series.
@SuppressWarnings("unchecked")
Class extends Test>[] tests =
new Class[] {conformance.rmi.SkeletonTest.class,
conformance.rmi.StubTest.class,
conformance.rmi.ConnectionTest.class,
conformance.rmi.ThreadTest.class};
Series series = new Series(tests);
SeriesReport report = series.run(3, System.out);
// Print the report and exit with an appropriate exit status.
report.print(System.out);
System.exit(report.successful() ? 0 : 2);
}
}