1   /*
2       StatCvs - CVS statistics generation 
3       Copyright (C) 2002  Lukasz Pekacki <lukasz@pekacki.de>
4       http://statcvs.sf.net/
5       
6       This library is free software; you can redistribute it and/or
7       modify it under the terms of the GNU Lesser General Public
8       License as published by the Free Software Foundation; either
9       version 2.1 of the License, or (at your option) any later version.
10  
11      This library is distributed in the hope that it will be useful,
12      but WITHOUT ANY WARRANTY; without even the implied warranty of
13      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14      Lesser General Public License for more details.
15  
16      You should have received a copy of the GNU Lesser General Public
17      License along with this library; if not, write to the Free Software
18      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19      
20  	$RCSfile: AllTests.java,v $ 
21  	Created on $Date: 2002/08/23 14:49:29 $ 
22  */
23  package net.sf.statcvs;
24  
25  import java.util.logging.Level;
26  import java.util.logging.Logger;
27  
28  import junit.framework.Test;
29  import junit.framework.TestSuite;
30  import junit.textui.TestRunner;
31  
32  /**
33   * JUnit Test suite containing all tests for StatCvs.
34   * 
35   * @author Manuel Schulze
36   * @version $Id: AllTests.java,v 1.13 2002/08/23 14:49:29 cyganiak Exp $
37   */
38  public class AllTests {
39  
40      /**
41       * Method suite.
42       * @return Test suite
43       */
44      public static Test suite() {
45          Logger.getLogger("net.sf.statcvs").setLevel(Level.OFF);
46          final TestSuite suite = new TestSuite("Test for net.sf.statcvs");
47          //$JUnit-BEGIN$
48          suite.addTest(net.sf.statcvs.input.AllTests.suite());
49          suite.addTest(net.sf.statcvs.model.AllTests.suite());
50          suite.addTest(net.sf.statcvs.util.AllTests.suite());
51          suite.addTest(net.sf.statcvs.pages.AllTests.suite());
52          suite.addTest(net.sf.statcvs.renderer.AllTests.suite());
53          suite.addTest(net.sf.statcvs.reportmodel.AllTests.suite());
54          suite.addTest(net.sf.statcvs.output.AllTests.suite());
55          //$JUnit-END$
56          return suite;
57      }
58  
59      /**
60       * Runs all StatCvs unit tests with the text TestRunner
61       * @param args Ignored.
62       */
63      public static void main(final String[] args) {
64          TestRunner.run(suite());
65      }
66  }