ps2.test
Class WalkingRouteFormatterTest

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

public class WalkingRouteFormatterTest
extends Object

Unit tests for the WalkingRouteFormatter class.


Constructor Summary
Constructor and Description
WalkingRouteFormatterTest()
           
 
Method Summary
Modifier and Type Method and Description
 void setupBeforeTests()
           
 void testDistance()
          Test rounding distance, specifically if it rounds up to 0.1 and rounds 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

WalkingRouteFormatterTest

public WalkingRouteFormatterTest()
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, specifically if it rounds up to 0.1 and rounds 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.