001: /*
002: * Copyright 2001-2006 Stephen Colebourne
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.joda.time;
017:
018: import junit.framework.Test;
019: import junit.framework.TestCase;
020: import junit.framework.TestSuite;
021:
022: /**
023: * Entry point for all tests in this package.
024: *
025: * @version $Revision: 1232 $ $Date: 2007-08-04 17:23:22 +0000 (Sat, 04 Aug 2007) $
026: *
027: * @author Stephen Colebourne
028: */
029: public class TestAll extends TestCase {
030:
031: public TestAll(String testName) {
032: super (testName);
033: }
034:
035: public static Test suite() {
036: TestSuite suite = new TestSuite();
037: suite.addTest(TestChronology.suite());
038: suite.addTest(TestDateTimeFieldType.suite());
039: suite.addTest(TestDurationFieldType.suite());
040:
041: suite.addTest(TestInstant_Constructors.suite());
042: suite.addTest(TestInstant_Basics.suite());
043:
044: suite.addTest(TestDateTime_Constructors.suite());
045: suite.addTest(TestDateTime_Basics.suite());
046: suite.addTest(TestDateTime_Properties.suite());
047:
048: suite.addTest(TestMutableDateTime_Constructors.suite());
049: suite.addTest(TestMutableDateTime_Basics.suite());
050: suite.addTest(TestMutableDateTime_Sets.suite());
051: suite.addTest(TestMutableDateTime_Adds.suite());
052: suite.addTest(TestMutableDateTime_Properties.suite());
053:
054: suite.addTest(TestDateMidnight_Constructors.suite());
055: suite.addTest(TestDateMidnight_Basics.suite());
056: suite.addTest(TestDateMidnight_Properties.suite());
057:
058: suite.addTest(TestDuration_Constructors.suite());
059: suite.addTest(TestDuration_Basics.suite());
060:
061: suite.addTest(TestInterval_Constructors.suite());
062: suite.addTest(TestInterval_Basics.suite());
063:
064: suite.addTest(TestLocalDateTime_Constructors.suite());
065: suite.addTest(TestLocalDateTime_Basics.suite());
066: suite.addTest(TestLocalDateTime_Properties.suite());
067:
068: suite.addTest(TestLocalDate_Constructors.suite());
069: suite.addTest(TestLocalDate_Basics.suite());
070: suite.addTest(TestLocalDate_Properties.suite());
071:
072: suite.addTest(TestLocalTime_Constructors.suite());
073: suite.addTest(TestLocalTime_Basics.suite());
074: suite.addTest(TestLocalTime_Properties.suite());
075:
076: suite.addTest(TestMutableInterval_Constructors.suite());
077: suite.addTest(TestMutableInterval_Basics.suite());
078: suite.addTest(TestMutableInterval_Updates.suite());
079:
080: suite.addTest(TestPeriod_Constructors.suite());
081: suite.addTest(TestPeriod_Basics.suite());
082:
083: suite.addTest(TestMutablePeriod_Constructors.suite());
084: suite.addTest(TestMutablePeriod_Basics.suite());
085: suite.addTest(TestMutablePeriod_Updates.suite());
086:
087: suite.addTest(TestBaseSingleFieldPeriod.suite());
088: suite.addTest(TestYears.suite());
089: suite.addTest(TestMonths.suite());
090: suite.addTest(TestWeeks.suite());
091: suite.addTest(TestDays.suite());
092: suite.addTest(TestHours.suite());
093: suite.addTest(TestMinutes.suite());
094: suite.addTest(TestSeconds.suite());
095:
096: suite.addTest(TestTimeOfDay_Basics.suite());
097: suite.addTest(TestTimeOfDay_Constructors.suite());
098: suite.addTest(TestTimeOfDay_Properties.suite());
099:
100: suite.addTest(TestYearMonthDay_Basics.suite());
101: suite.addTest(TestYearMonthDay_Constructors.suite());
102: suite.addTest(TestYearMonthDay_Properties.suite());
103:
104: suite.addTest(TestPartial_Basics.suite());
105: suite.addTest(TestPartial_Constructors.suite());
106: suite.addTest(TestPartial_Properties.suite());
107: suite.addTest(TestPartial_Match.suite());
108:
109: suite.addTest(TestAbstractPartial.suite());
110: suite.addTest(TestBasePartial.suite());
111:
112: suite.addTest(TestDateTimeComparator.suite());
113: suite.addTest(TestDateTimeConstants.suite());
114: suite.addTest(TestDateTimeUtils.suite());
115: suite.addTest(TestDateTimeZone.suite());
116: suite.addTest(TestDateTimeZoneCutover.suite());
117: suite.addTest(TestPeriodType.suite());
118: // suite.addTest(TestParseISO.suite());
119: suite.addTest(TestDurationField.suite());
120:
121: suite.addTest(TestSerialization.suite());
122: suite.addTest(TestIllegalFieldValueException.suite());
123: return suite;
124: }
125:
126: public static void main(String args[]) {
127: String[] testCaseName = { TestAll.class.getName() };
128: junit.textui.TestRunner.main(testCaseName);
129: }
130:
131: }
|