1. /* ===========================================================
  2. * JFreeChart : a free chart library for the Java(tm) platform
  3. * ===========================================================
  4. *
  5. * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
  6. *
  7. * Project Info: http://www.jfree.org/jfreechart/index.html
  8. *
  9. * This library is free software; you can redistribute it and/or modify it under the terms
  10. * of the GNU Lesser General Public License as published by the Free Software Foundation;
  11. * either version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  14. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public License along with this
  18. * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. *
  21. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  22. * in the United States and other countries.]
  23. *
  24. * -------------------------
  25. * DataTimePackageTests.java
  26. * -------------------------
  27. * (C) Copyright 2003-2005, by Object Refinery Limited.
  28. *
  29. * Original Author: David Gilbert (for Object Refinery Limited);
  30. * Contributor(s): -;
  31. *
  32. * $Id: DataTimePackageTests.java,v 1.4 2005/01/19 12:40:20 mungady Exp $
  33. *
  34. * Changes
  35. * -------
  36. * 13-Mar-2001 : Version 1 (DG);
  37. * 23-Aug-2004 : Restructured org.jfree.data package (DG);
  38. * 18-Jan-2005 : Added main() method (DG);
  39. *
  40. */
  41. package org.jfree.data.time.junit;
  42. import junit.framework.Test;
  43. import junit.framework.TestCase;
  44. import junit.framework.TestSuite;
  45. /**
  46. * Some tests for the <code>org.jfree.data.time</code> package that can be run using JUnit.
  47. * You can find more information about JUnit at http://www.junit.org.
  48. */
  49. public class DataTimePackageTests extends TestCase {
  50. /**
  51. * Returns a test suite to the JUnit test runner.
  52. *
  53. * @return The test suite.
  54. */
  55. public static Test suite() {
  56. TestSuite suite = new TestSuite("org.jfree.data.time");
  57. suite.addTestSuite(DateRangeTests.class);
  58. suite.addTestSuite(SimpleTimePeriodTests.class);
  59. suite.addTestSuite(YearTests.class);
  60. suite.addTestSuite(QuarterTests.class);
  61. suite.addTestSuite(MonthTests.class);
  62. suite.addTestSuite(WeekTests.class);
  63. suite.addTestSuite(DayTests.class);
  64. suite.addTestSuite(HourTests.class);
  65. suite.addTestSuite(MinuteTests.class);
  66. suite.addTestSuite(SecondTests.class);
  67. suite.addTestSuite(MillisecondTests.class);
  68. suite.addTestSuite(FixedMillisecondTests.class);
  69. suite.addTestSuite(MovingAverageTests.class);
  70. suite.addTestSuite(TimePeriodAnchorTests.class);
  71. suite.addTestSuite(TimePeriodValueTests.class);
  72. suite.addTestSuite(TimePeriodValuesTests.class);
  73. suite.addTestSuite(TimeSeriesDataItemTests.class);
  74. suite.addTestSuite(TimeSeriesTests.class);
  75. suite.addTestSuite(TimeSeriesCollectionTests.class);
  76. suite.addTestSuite(TimeTableXYDatasetTests.class);
  77. return suite;
  78. }
  79. /**
  80. * Constructs the test suite.
  81. *
  82. * @param name the test suite name.
  83. */
  84. public DataTimePackageTests(String name) {
  85. super(name);
  86. }
  87. /**
  88. * Runs the test suite using JUnit's text-based runner.
  89. *
  90. * @param args ignored.
  91. */
  92. public static void main(String[] args) {
  93. junit.textui.TestRunner.run(suite());
  94. }
  95. }