tests
Class ConnectionTest

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

public class ConnectionTest
extends junit.framework.TestCase

Tests the Connection class.

Author:
Piotrek

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConnectionTest()
           
 
Method Summary
 void testCalendarToConnectionDayOfWeek()
          Tests converting of java calendar day of week to the connection's day of week.
 void testConnection()
          Tests the constructor.
 void testEquals()
          Tests the equality test.
 void testGetArrivalTime()
          Tests getting of the arrival time for the stations.
 void testGetDepartureTime()
          Tests getting of the departure time for the stations.
 void testGetStationIndex()
          Tests the method returning the index of the station on the list of stations of the connection.
 void testGetStationsCount()
          Tests getting of the stations count.
 void testIsEqual()
          Tests the equality test.
 void testShiftDayOfWeek()
          Tests shifting days of week.
 
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

ConnectionTest

public ConnectionTest()
Method Detail

testConnection

public void testConnection()
Tests the constructor.


testGetStationIndex

public void testGetStationIndex()
Tests the method returning the index of the station on the list of stations of the connection.


testGetArrivalTime

public void testGetArrivalTime()
Tests getting of the arrival time for the stations.


testGetDepartureTime

public void testGetDepartureTime()
Tests getting of the departure time for the stations.


testCalendarToConnectionDayOfWeek

public void testCalendarToConnectionDayOfWeek()
Tests converting of java calendar day of week to the connection's day of week.


testShiftDayOfWeek

public void testShiftDayOfWeek()
Tests shifting days of week.


testGetStationsCount

public void testGetStationsCount()
Tests getting of the stations count.


testEquals

public void testEquals()
Tests the equality test.


testIsEqual

public void testIsEqual()
Tests the equality test.