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.convert;
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 suite.addTest(TestConverterManager.suite());
038 suite.addTest(TestConverterSet.suite());
039
040 suite.addTest(TestCalendarConverter.suite());
041 suite.addTest(TestDateConverter.suite());
042 suite.addTest(TestLongConverter.suite());
043 suite.addTest(TestNullConverter.suite());
044 suite.addTest(TestReadableDurationConverter.suite());
045 suite.addTest(TestReadableIntervalConverter.suite());
046 suite.addTest(TestReadableInstantConverter.suite());
047 suite.addTest(TestReadablePartialConverter.suite());
048 suite.addTest(TestReadablePeriodConverter.suite());
049 suite.addTest(TestStringConverter.suite());
050 return suite;
051 }
052
053 public static void main(String args[]) {
054 String[] testCaseName = {
055 TestAll.class.getName()
056 };
057 junit.textui.TestRunner.main(testCaseName);
058 }
059
060 }