2 * Copyright 2001 Sun Microsystems, Inc.
4 * See the file "license.terms" for information on usage and
5 * redistribution of this file, and for a DISCLAIMER OF ALL
10 import junit.framework.*;
11 import com.sun.speech.freetts.*;
14 * Peforms all the tests for the freetts system. Adds all of the tests
15 * to the test suite and runs them.
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.
22 * To run the text form of the test use "make tests". To run the
23 * tests within a Swing GUI use "make guitests"
27 public class AllTests {
30 * Main entry point for the tests.
31 * @param args the arguments.
33 public static void main(String[] args) {
34 junit.textui.TestRunner.run(suite());
39 * Factory method that creates the suite of tests.
40 * To add more tests, call 'suite.addTest' with the suite of tests to
43 * @return the test suite.
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());