tests
Class TravelTimeTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytests.TravelTimeTest
All Implemented Interfaces:
junit.framework.Test

public class TravelTimeTest
extends junit.framework.TestCase

Tests the TravelTime class.

Author:
Piotrek

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TravelTimeTest()
           
 
Method Summary
 void testGetChangeTime()
          Tests the getting of the change times.
 void testGetDatesDifference()
          Tests counting of a time difference of the two dates in minutes.
 void testGetShiftTime()
          Tests the getting of the shift time in a string format.
 void testGetTime()
          Tests the getting of the time in a string format.
 void testGetTimeSinceSunday()
          Test getting the time since Sunday in minutes for the given day of week and time on that day (also in minutes).
 void testGetTimesPerDay()
          Tests the getting the times per day generation.
 void testGetTravelTime()
          Tests the counting of the travel time between locations.
 void testParseDuration()
          Test the parsing of the duration time.
 void testParseTime()
          Tests the parsing of time from a string.
 void testShiftDate()
          Tests shifting of dates by the given number of minutes.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TravelTimeTest

public TravelTimeTest()
Method Detail

testGetTravelTime

public void testGetTravelTime()
Tests the counting of the travel time between locations.


testGetChangeTime

public void testGetChangeTime()
Tests the getting of the change times.


testGetShiftTime

public void testGetShiftTime()
Tests the getting of the shift time in a string format.


testGetTime

public void testGetTime()
Tests the getting of the time in a string format.


testParseDuration

public void testParseDuration()
Test the parsing of the duration time.


testParseTime

public void testParseTime()
Tests the parsing of time from a string.


testGetTimesPerDay

public void testGetTimesPerDay()
Tests the getting the times per day generation.


testGetTimeSinceSunday

public void testGetTimeSinceSunday()
Test getting the time since Sunday in minutes for the given day of week and time on that day (also in minutes).


testShiftDate

public void testShiftDate()
Tests shifting of dates by the given number of minutes.


testGetDatesDifference

public void testGetDatesDifference()
Tests counting of a time difference of the two dates in minutes.