001 package ps2.test;
002
003 import junit.framework.*;
004
005
006 /**
007 * SpecificationTests is a simple TestSuite that includes and runs all
008 * the tests in {@link GeoPointTest}, {@link GeoSegmentTest}, {@link
009 * GeoFeatureTest}, {@link RouteTest}, {@link
010 * WalkingRouteFormatterTest}, and {@link DrivingRouteFormatterTest}.
011 **/
012 public final class SpecificationTests extends TestSuite {
013
014 public SpecificationTests() {
015 this("Problem Set 2 Specification Tests");
016 }
017
018 public SpecificationTests(String name) {
019 super(name);
020
021 addTestSuite(GeoPointTest.class);
022 addTestSuite(GeoSegmentTest.class);
023 addTestSuite(GeoFeatureTest.class);
024 addTestSuite(RouteTest.class);
025 addTestSuite(WalkingRouteFormatterTest.class);
026 addTestSuite(DrivingRouteFormatterTest.class);
027 }
028
029 public static Test suite() {
030 return new SpecificationTests();
031 }
032 }