KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > monolog > TestMonolog


1 /**
2  * Copyright (C) 2002
3  */

4
5 package org.objectweb.util.monolog;
6
7 import junit.textui.TestRunner;
8
9 /**
10  *
11  * @author Sebastien Chassande-Barrioz
12  */

13 public class TestMonolog {
14     public static void main(String JavaDoc[] args) {
15         if (args.length < 1) {
16             System.out.println("Syntax error !");
17             System.out.println("java TestAll <logger factory class name>");
18             System.exit(12);
19         }
20         junit.framework.TestSuite suite = new junit.framework.TestSuite();
21         try {
22             suite.addTest(TestConfigurability
23                 .getTestSuite(args[0],"default", null, null));
24
25             suite.addTest(TestConfigurability
26                 .getTestSuite(args[0],"property", args[1], null));
27
28             suite.addTest(TestConfigurability
29                 .getTestSuite(args[0],"property", args[2], "true"));
30
31             suite.addTest( TestHandler.getTestSuite(args[0]));
32
33             suite.addTest( TestLevel.getTestSuite(args[0]));
34
35             suite.addTest( TestLogger._getTestSuite(args[0]));
36
37             suite.addTest(TestIntermediateLevel.getTestSuite(args[0]));
38         }
39         catch (Exception JavaDoc e) {
40             e.printStackTrace();
41             System.exit(1);
42         }
43         TestRunner.run(suite);
44     }
45 }
46
Popular Tags