ps2.test
Class DrivingRouteFormatterTest

java.lang.Object
  extended by ps2.test.DrivingRouteFormatterTest

public class DrivingRouteFormatterTest
extends Object

Unit tests for the DrivingRouteFormatter class.


Constructor Summary
Constructor and Description
DrivingRouteFormatterTest()
           
 
Method Summary
Modifier and Type Method and Description
 void setupBeforeTests()
           
 void testDistance()
          Test rounding distance, especially if rounded up to 0.1 and rounded down to 0.0.
 void testLongRoute()
          Long route with no repeats.
 void testRepeatedRoute()
          Just like long route, but different makeup of geosegements.
 void testRepeatedSegment()
          Two step route with one geo feature.
 void testShortDirections()
          Test simple directions with one distance and one origHeading.
 void testTurning()
          Test turning directions with different origHeadings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrivingRouteFormatterTest

public DrivingRouteFormatterTest()
Method Detail

setupBeforeTests

public void setupBeforeTests()

testShortDirections

public void testShortDirections()
                         throws IOException
Test simple directions with one distance and one origHeading.

Throws:
IOException

testTurning

public void testTurning()
Test turning directions with different origHeadings.


testDistance

public void testDistance()
Test rounding distance, especially if rounded up to 0.1 and rounded down to 0.0. Should compute time before rounding.


testRepeatedSegment

public void testRepeatedSegment()
Two step route with one geo feature.


testLongRoute

public void testLongRoute()
Long route with no repeats.


testRepeatedRoute

public void testRepeatedRoute()
Just like long route, but different makeup of geosegements.