tests
Class ConnectionsFinderTaskTest

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

public class ConnectionsFinderTaskTest
extends junit.framework.TestCase

Tests the ConnectionsFinderTask class.

Author:
Piotrek

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConnectionsFinderTaskTest()
           
 
Method Summary
 void testAddConnectionChunk()
          Tests adding of the single connection chunk.
 void testAddVisitedStation()
          Tests adding of visited stations.
 void testClearVisitedStations()
          Tests clearing a list of visited stations.
 void testClone()
          Tests cloning.
 void testConnectionsFinderTask()
          Tests the constructor.
 void testGetAverageChangeDuration()
          Tests getting of the average change duration.
 void testGetChangesCount()
          Tests getting a number of changes.
 void testGetChunk()
          Tests getting of the chunks by their indecies.
 void testGetConnectionChunks()
          Tests getting of the connection chunks iterator.
 void testGetConnectionChunksCount()
          Tests getting of a number of connection chunks.
 void testGetFirstConnectionChunk()
          Tests getting of the first connection chunk.
 void testGetLastConnectionChunk()
          Tests getting of the last connection chunk.
 void testGetLastConnectionChunkWithEndDate()
          Tests getting of the last connection chunkwith the end date set.
 void testGetMaxChangeDuration()
          Tests getting of the max change duration.
 void testGetTotalDistance()
          Tests getting of the total distance.
 void testGetTotalDuration()
          Tests getting of the total duration of travel.
 void testGetUnsetDatesChunksIndecies()
          Tests getting of the indecies of the connection chunks with at least one unset date.
 void testGetUsedMeansOfTransportation()
          Tests getting of the used means of transportation.
 void testHasUnsetDatesChunks()
          Tests checking if the task has chunks with at least one unset date.
 void testHasVisitedStation()
          Tests of checking if the given station has been visited.
 void testIsSimilar()
          Test the similarity test.
 void testSetCurrentWorkingData()
          Tests setting of the current working data to the same values as of the other task's.
 
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

ConnectionsFinderTaskTest

public ConnectionsFinderTaskTest()
Method Detail

testConnectionsFinderTask

public void testConnectionsFinderTask()
Tests the constructor.


testAddVisitedStation

public void testAddVisitedStation()
Tests adding of visited stations.


testHasVisitedStation

public void testHasVisitedStation()
Tests of checking if the given station has been visited.


testGetUnsetDatesChunksIndecies

public void testGetUnsetDatesChunksIndecies()
Tests getting of the indecies of the connection chunks with at least one unset date.


testHasUnsetDatesChunks

public void testHasUnsetDatesChunks()
Tests checking if the task has chunks with at least one unset date.


testGetChunk

public void testGetChunk()
Tests getting of the chunks by their indecies.


testAddConnectionChunk

public void testAddConnectionChunk()
Tests adding of the single connection chunk.


testGetConnectionChunks

public void testGetConnectionChunks()
Tests getting of the connection chunks iterator.


testGetFirstConnectionChunk

public void testGetFirstConnectionChunk()
Tests getting of the first connection chunk.


testGetLastConnectionChunk

public void testGetLastConnectionChunk()
Tests getting of the last connection chunk.


testGetLastConnectionChunkWithEndDate

public void testGetLastConnectionChunkWithEndDate()
Tests getting of the last connection chunkwith the end date set.


testClone

public void testClone()
Tests cloning.


testGetChangesCount

public void testGetChangesCount()
Tests getting a number of changes.


testClearVisitedStations

public void testClearVisitedStations()
Tests clearing a list of visited stations.


testSetCurrentWorkingData

public void testSetCurrentWorkingData()
Tests setting of the current working data to the same values as of the other task's.


testGetConnectionChunksCount

public void testGetConnectionChunksCount()
Tests getting of a number of connection chunks.


testGetTotalDuration

public void testGetTotalDuration()
Tests getting of the total duration of travel.


testIsSimilar

public void testIsSimilar()
Test the similarity test.


testGetMaxChangeDuration

public void testGetMaxChangeDuration()
Tests getting of the max change duration.


testGetAverageChangeDuration

public void testGetAverageChangeDuration()
Tests getting of the average change duration.


testGetTotalDistance

public void testGetTotalDistance()
Tests getting of the total distance.


testGetUsedMeansOfTransportation

public void testGetUsedMeansOfTransportation()
Tests getting of the used means of transportation.