KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > UtilTests


1 /*
2
3  This software is OSI Certified Open Source Software.
4  OSI Certified is a certification mark of the Open Source Initiative.
5
6  The license (Mozilla version 1.0) can be read at the MMBase site.
7  See http://www.MMBase.org/license
8
9  */

10 package org.mmbase.util;
11
12 import junit.framework.*;
13
14 /**
15  * TestSuite that runs all the util junit tests.
16  *
17  * @author Jaco de Groot
18  */

19 public class UtilTests {
20
21     public static void main(String JavaDoc[] args) {
22         try {
23             junit.textui.TestRunner.run(suite());
24         } catch (Exception JavaDoc e) {
25             System.out.println(e);
26         }
27     }
28
29     public static Test suite() throws Exception JavaDoc {
30         // Create the test suite
31
TestSuite suite = new TestSuite("Util Tests");
32         suite.addTestSuite(ResourceLoaderTest.class);
33         suite.addTestSuite(EncodeTest.class);
34         suite.addTestSuite(DateParserTest.class);
35         suite.addTestSuite(org.mmbase.util.transformers.XmlFieldTest.class);
36         suite.addTestSuite(LocalizedEntryListFactoryTest.class);
37         suite.addTestSuite(org.mmbase.util.xml.DocumentReaderTest.class);
38         return suite;
39     }
40 }
41
Popular Tags