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.format;
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$ $Date$
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
038 suite.addTest(TestDateTimeFormatter.suite());
039 suite.addTest(TestDateTimeFormat.suite());
040 suite.addTest(TestDateTimeFormatStyle.suite());
041 suite.addTest(TestISODateTimeFormat.suite());
042 suite.addTest(TestISODateTimeFormat_Fields.suite());
043 suite.addTest(TestISODateTimeFormatParsing.suite());
044 suite.addTest(TestDateTimeFormatterBuilder.suite());
045
046 suite.addTest(TestPeriodFormatter.suite());
047 suite.addTest(TestPeriodFormat.suite());
048 suite.addTest(TestISOPeriodFormat.suite());
049 suite.addTest(TestISOPeriodFormatParsing.suite());
050 suite.addTest(TestPeriodFormatParsing.suite());
051 suite.addTest(TestPeriodFormatterBuilder.suite());
052
053 suite.addTest(TestTextFields.suite());
054
055 return suite;
056 }
057
058 public static void main(String args[]) {
059 String[] testCaseName = {
060 TestAll.class.getName()
061 };
062 junit.textui.TestRunner.main(testCaseName);
063 }
064
065 }