tests
Class TravelPartsGeneratorTest

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

public class TravelPartsGeneratorTest
extends junit.framework.TestCase

Tests the TravelPartsGenerator class.

Author:
Piotrek

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TravelPartsGeneratorTest()
           
 
Method Summary
 void testAreCloseEnough()
          Tests the AreCloseEnough() method.
 void testGenerateTravelParts()
          Tests if the GenerateTravelParts() method is checking for null parameters and does return an empty list if there is no division.
 void testGetMaxPartsCount()
          Tests the getting of the max parts count.
 void testMaxDepthValue()
          Tests the MAX_DEPTH value.
 void testMaxNumbersOfStationsInRange()
          Tests the maximal numbers of stations in range of each type.
 void testMaxTravelPartsSpace()
          Tests the value of the max space between the travel parts.
 void testSearchStartValues()
          Tests the values of search ranges for the all types of stations.
 
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

TravelPartsGeneratorTest

public TravelPartsGeneratorTest()
Method Detail

testAreCloseEnough

public void testAreCloseEnough()
Tests the AreCloseEnough() method.


testMaxDepthValue

public void testMaxDepthValue()
Tests the MAX_DEPTH value.


testGetMaxPartsCount

public void testGetMaxPartsCount()
Tests the getting of the max parts count.


testSearchStartValues

public void testSearchStartValues()
Tests the values of search ranges for the all types of stations.


testMaxTravelPartsSpace

public void testMaxTravelPartsSpace()
Tests the value of the max space between the travel parts.


testMaxNumbersOfStationsInRange

public void testMaxNumbersOfStationsInRange()
Tests the maximal numbers of stations in range of each type.


testGenerateTravelParts

public void testGenerateTravelParts()
Tests if the GenerateTravelParts() method is checking for null parameters and does return an empty list if there is no division.