01: /*
02: * Copyright 2001-2005 Stephen Colebourne
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.joda.time;
17:
18: import java.util.TimeZone;
19:
20: import junit.framework.Test;
21: import junit.framework.TestCase;
22: import junit.framework.TestSuite;
23:
24: /**
25: * Entry point for all tests in Joda Time.
26: *
27: * @version $Revision: 662 $ $Date: 2005-02-07 23:51:26 +0000 (Mon, 07 Feb 2005) $
28: *
29: * @author Stephen Colebourne
30: */
31: public class TestAllPackages extends TestCase {
32:
33: public TestAllPackages(String testName) {
34: super (testName);
35: }
36:
37: public static Test suite() {
38: TestSuite suite = new TestSuite();
39: suite.addTest(org.joda.time.TestAll.suite());
40: suite.addTest(org.joda.time.chrono.TestAll.suite());
41: suite.addTest(org.joda.time.chrono.gj.TestAll.suite());
42: suite.addTest(org.joda.time.convert.TestAll.suite());
43: suite.addTest(org.joda.time.field.TestAll.suite());
44: suite.addTest(org.joda.time.format.TestAll.suite());
45: suite.addTest(org.joda.time.tz.TestAll.suite());
46: return suite;
47: }
48:
49: public static void main(String args[]) {
50: // setup a time zone other than one tester is in
51: TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
52:
53: // run tests
54: String[] testCaseName = { TestAllPackages.class.getName() };
55: junit.textui.TestRunner.main(testCaseName);
56: }
57:
58: }
|