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
  10. * under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  16. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  17. * License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this library; if not, write to the Free Software Foundation,
  21. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  22. *
  23. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  24. * in the United States and other countries.]
  25. *
  26. * ------------------------
  27. * JFreeChartTestSuite.java
  28. * ------------------------
  29. * (C) Copyright 2002-2005, by Object Refinery Limited.
  30. *
  31. * Original Author: David Gilbert (for Object Refinery Limited);
  32. * Contributor(s): -;
  33. *
  34. * $Id: JFreeChartTestSuite.java,v 1.4 2005/03/08 10:45:44 mungady Exp $
  35. *
  36. * Changes:
  37. * --------
  38. * 11-Jun-2002 : Version 1 (DG);
  39. * 30-Sep-2002 : Added tests for com.jrefinery.data (DG);
  40. * 17-Oct-2002 : Fixed errors reported by Checkstyle (DG);
  41. * 13-Mar-2003 : Added tests for new com.jrefinery.data.time package (DG);
  42. * 17-Feb-2004 : Added tests for org.jfree.chart.title package (DG);
  43. * 20-May-2004 : Added tests for org.jfree.chart.entity package (DG);
  44. * 30-Jul-2004 : Added tests for org.jfree.data.gantt package (DG);
  45. * 23-Aug-2004 : Restructured org.jfree.data (DG);
  46. * 18-Jan-2005 : Added main() method (DG);
  47. *
  48. */
  49. package org.jfree.chart.junit;
  50. import junit.framework.Test;
  51. import junit.framework.TestCase;
  52. import junit.framework.TestSuite;
  53. import org.jfree.chart.annotations.junit.AnnotationsPackageTests;
  54. import org.jfree.chart.axis.junit.AxisPackageTests;
  55. import org.jfree.chart.block.junit.BlockPackageTests;
  56. import org.jfree.chart.entity.junit.EntityPackageTests;
  57. import org.jfree.chart.labels.junit.LabelsPackageTests;
  58. import org.jfree.chart.plot.junit.PlotPackageTests;
  59. import org.jfree.chart.renderer.category.junit.RendererCategoryPackageTests;
  60. import org.jfree.chart.renderer.junit.RendererPackageTests;
  61. import org.jfree.chart.renderer.xy.junit.RendererXYPackageTests;
  62. import org.jfree.chart.title.junit.TitlePackageTests;
  63. import org.jfree.chart.ui.junit.ChartUIPackageTests;
  64. import org.jfree.chart.urls.junit.UrlsPackageTests;
  65. import org.jfree.data.category.junit.DataCategoryPackageTests;
  66. import org.jfree.data.gantt.junit.DataGanttPackageTests;
  67. import org.jfree.data.junit.DataPackageTests;
  68. import org.jfree.data.statistics.junit.DataStatisticsPackageTests;
  69. import org.jfree.data.time.junit.DataTimePackageTests;
  70. import org.jfree.data.xy.junit.DataXYPackageTests;
  71. /**
  72. * A test suite for the JFreeChart class library that can be run using
  73. * JUnit (<code>http://www.junit.org<code>).
  74. */
  75. public class JFreeChartTestSuite extends TestCase {
  76. /**
  77. * Returns a test suite to the JUnit test runner.
  78. *
  79. * @return The test suite.
  80. */
  81. public static Test suite() {
  82. TestSuite suite = new TestSuite("JFreeChart");
  83. suite.addTest(ChartPackageTests.suite());
  84. suite.addTest(AnnotationsPackageTests.suite());
  85. suite.addTest(AxisPackageTests.suite());
  86. suite.addTest(BlockPackageTests.suite());
  87. suite.addTest(EntityPackageTests.suite());
  88. suite.addTest(LabelsPackageTests.suite());
  89. suite.addTest(PlotPackageTests.suite());
  90. suite.addTest(RendererPackageTests.suite());
  91. suite.addTest(RendererCategoryPackageTests.suite());
  92. suite.addTest(RendererXYPackageTests.suite());
  93. suite.addTest(TitlePackageTests.suite());
  94. suite.addTest(ChartUIPackageTests.suite());
  95. suite.addTest(UrlsPackageTests.suite());
  96. suite.addTest(DataPackageTests.suite());
  97. suite.addTest(DataCategoryPackageTests.suite());
  98. suite.addTest(DataStatisticsPackageTests.suite());
  99. suite.addTest(DataTimePackageTests.suite());
  100. suite.addTest(DataXYPackageTests.suite());
  101. suite.addTest(DataGanttPackageTests.suite());
  102. return suite;
  103. }
  104. /**
  105. * Runs the test suite using JUnit's text-based runner.
  106. *
  107. * @param args ignored.
  108. */
  109. public static void main(String[] args) {
  110. junit.textui.TestRunner.run(suite());
  111. }
  112. }