01: /**
02: * Copyright (C) 2002
03: */package org.objectweb.util.monolog;
04:
05: import junit.textui.TestRunner;
06:
07: /**
08: *
09: * @author Sebastien Chassande-Barrioz
10: */
11: public class TestMonolog {
12: public static void main(String[] args) {
13: if (args.length < 1) {
14: System.out.println("Syntax error !");
15: System.out
16: .println("java TestAll <logger factory class name>");
17: System.exit(12);
18: }
19: junit.framework.TestSuite suite = new junit.framework.TestSuite();
20: try {
21: suite.addTest(TestConfigurability.getTestSuite(args[0],
22: "default", null, null));
23:
24: suite.addTest(TestConfigurability.getTestSuite(args[0],
25: "property", args[1], null));
26:
27: suite.addTest(TestConfigurability.getTestSuite(args[0],
28: "property", args[2], "true"));
29:
30: suite.addTest(TestHandler.getTestSuite(args[0]));
31:
32: suite.addTest(TestLevel.getTestSuite(args[0]));
33:
34: suite.addTest(TestLogger._getTestSuite(args[0]));
35:
36: suite.addTest(TestIntermediateLevel.getTestSuite(args[0]));
37: } catch (Exception e) {
38: e.printStackTrace();
39: System.exit(1);
40: }
41: TestRunner.run(suite);
42: }
43: }
|