tests
Class WorldTest

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

public class WorldTest
extends junit.framework.TestCase

Tests the World class.

Author:
Piotrek

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
WorldTest()
           
 
Method Summary
 void testAddAirport()
          Tests the addition of airports to the world.
 void testAddBusStop()
          Tests adding of bus stops to the world.
 void testAddCity()
          Tests the adding of cities.
 void testAddConnection()
          Tests adding of connections to the world.
 void testAddHarbour()
          Tests the adding of harbours to the world.
 void testAddTrainStation()
          Tests the adding of the train stations to the world.
 void testClear()
          Tests the Clear() method.
 void testGetInstance()
          Tests the getting of the World instance.
 void testGetNextConnectionName()
          Tests the getting of names for the connections.
 void testRemoveAirport()
          Tests the removing of airports from the world.
 void testRemoveBusStop()
          Tests the removing of bus stops from the world.
 void testRemoveCity()
          Tests the removing of cities from the world.
 void testRemoveConnection()
          Tests the removing of connections from the world.
 void testRemoveHarbour()
          Tests the removing of the harbours from the world.
 void testRemoveTrainStation()
          Tests the removing of the train stations from the world.
 
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

WorldTest

public WorldTest()
Method Detail

testGetInstance

public void testGetInstance()
Tests the getting of the World instance.


testClear

public void testClear()
Tests the Clear() method.


testAddCity

public void testAddCity()
Tests the adding of cities.


testRemoveCity

public void testRemoveCity()
Tests the removing of cities from the world.


testAddAirport

public void testAddAirport()
Tests the addition of airports to the world.


testRemoveAirport

public void testRemoveAirport()
Tests the removing of airports from the world.


testAddTrainStation

public void testAddTrainStation()
Tests the adding of the train stations to the world.


testRemoveTrainStation

public void testRemoveTrainStation()
Tests the removing of the train stations from the world.


testAddBusStop

public void testAddBusStop()
Tests adding of bus stops to the world.


testRemoveBusStop

public void testRemoveBusStop()
Tests the removing of bus stops from the world.


testAddHarbour

public void testAddHarbour()
Tests the adding of harbours to the world.


testRemoveHarbour

public void testRemoveHarbour()
Tests the removing of the harbours from the world.


testAddConnection

public void testAddConnection()
Tests adding of connections to the world.


testRemoveConnection

public void testRemoveConnection()
Tests the removing of connections from the world.


testGetNextConnectionName

public void testGetNextConnectionName()
Tests the getting of names for the connections.