KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > lightcrypto > test > RunTest


1 /*
2   Name: net.sourceforge.lightcrypto.test.RunTest
3   Licensing: LGPL (lesser GNU Public License)
4   API: Bouncy Castle (http://www.bouncycastle.org) lightweight API
5
6   Disclaimer:
7
8   COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND,
9   EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE
10   IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
11   RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE
12   PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR)
13   ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
14   CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED
15   HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
16
17   (C) Copyright 2003 Gert Van Ham
18
19 */

20
21 package net.sourceforge.lightcrypto.test;
22
23 import junit.framework.Test;
24 import junit.framework.TestSuite;
25
26 /**
27  * A collection of tests for net.sourceforge.lightcrypto package
28  * <P>
29  * These tests can be run using JUnit (http://www.junit.org)
30  *
31  * @author Gert Van Ham
32  * @author hamgert@users.sourceforge.net
33  * @author http://jcetaglib.sourceforge.net
34  * @version $Id: RunTest.java,v 1.2 2003/10/05 11:41:29 hamgert Exp $
35  */

36
37 public class RunTest {
38
39      public final static String JavaDoc TEMPFOLDER = "c:/temp/";
40
41      /**
42       * Returns a test suite to the JUnit test runner.
43       *
44       * @return suite of tests
45       */

46      public static Test suite() {
47         TestSuite suite = new TestSuite("net.sourceforge.lightcrypto");
48         suite.addTestSuite(DigestTest.class);
49         suite.addTestSuite(KeyTest.class);
50         suite.addTestSuite(CryptTest.class);
51         suite.addTestSuite(HMacTest.class);
52         suite.addTestSuite(MacTest.class);
53         suite.addTestSuite(HsqldbTest.class);
54         return suite;
55     }
56
57     /**
58      * Main method to run the tests from the command line
59      *
60      * @param args
61      */

62     public static void main(String JavaDoc args[]) {
63         junit.textui.TestRunner.run(suite());
64     }
65 }
66
Popular Tags