001 /*
002 * Copyright 2001-2005 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.field;
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 $Id$
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 void main(String args[]) {
036 String[] testCaseName = {
037 TestAll.class.getName()
038 };
039 junit.textui.TestRunner.main(testCaseName);
040 }
041
042 public static Test suite() {
043 TestSuite suite = new TestSuite();
044
045 suite.addTest(TestFieldUtils.suite());
046
047 suite.addTest(TestBaseDateTimeField.suite());
048 suite.addTest(TestOffsetDateTimeField.suite());
049 suite.addTest(TestPreciseDurationDateTimeField.suite());
050 suite.addTest(TestPreciseDateTimeField.suite());
051
052 suite.addTest(TestMillisDurationField.suite());
053 suite.addTest(TestPreciseDurationField.suite());
054 suite.addTest(TestScaledDurationField.suite());
055 suite.addTest(TestUnsupportedDateTimeField.suite());
056 return suite;
057 }
058
059 }