update standards version
[debian/freetts] / tests / AllTests.java
1 /**
2  * Copyright 2001 Sun Microsystems, Inc.
3  * 
4  * See the file "license.terms" for information on usage and
5  * redistribution of this file, and for a DISCLAIMER OF ALL 
6  * WARRANTIES.
7  */
8 package tests;
9
10 import junit.framework.*;
11 import com.sun.speech.freetts.*;
12
13 /**
14  * Peforms all the tests for the freetts system. Adds all of the tests
15  * to the test suite and runs them. 
16  *
17  *
18  * FreeTTS tests use the JUnit unit test package. More information on
19  * JUnit and how to use junit can be found at www.junit.org. We have
20  * used JUnit 3.7 in this project.
21  *
22  * To run the text form of the test use "make tests".  To run the
23  * tests within a Swing GUI use "make guitests"
24  *
25  * @version 1.0
26  */
27 public class AllTests {
28
29     /**
30      * Main entry point for the tests.
31      * @param  args    the arguments.
32      */
33     public static void main(String[] args) {
34         junit.textui.TestRunner.run(suite());
35         System.exit(0);
36     }
37
38     /**
39      * Factory method that creates the suite of tests.
40      * To add more tests, call 'suite.addTest' with the suite of tests to
41      * add.
42      * 
43      * @return the test suite.
44      */
45     public static Test suite() {
46         TestSuite suite = new TestSuite("All JUnit Tests");
47         suite.addTest(UtteranceTests.suite());
48         suite.addTest(UnitDatabaseTests.suite());
49         suite.addTest(LetterToSoundTest.suite());
50         suite.addTest(LexiconTest.suite());
51         suite.addTest(SegmenterTests.suite());
52         suite.addTest(PartOfSpeechTests.suite());
53         return suite;
54     }
55 }
56