taxisrus.tests
Class ZoneUnitTest

taxisrus.tests.ZoneUnitTest

public class ZoneUnitTest

Author:
MIKAM Tribe ZoneUnitTest class This is the unit test to test the Zone class. It tests if each of Zone class's method works.

Constructor Summary
ZoneUnitTest(String s)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testAddCabToBack()
          Tests addCabToBack method of Zone class
 void testAddCabToFront()
          Tests addCabToFront method of Zone class
 void testGetCab()
          Tests getCab method of Zone class
 void testGetCabList_GetNumCabs()
          Tests getCabList and getNumCabs methods of Zone class
 void testGetZoneID()
          Tests getZoneID method of Zone class
 void testRemoveCab_ClearCabList()
          Tests removeCab and clearCabList method of Zone class.
 

Constructor Detail

ZoneUnitTest

public ZoneUnitTest(String s)
Method Detail

suite

public static junit.framework.Test suite()

testGetZoneID

public void testGetZoneID()
Tests getZoneID method of Zone class

testGetCab

public void testGetCab()
Tests getCab method of Zone class

testGetCabList_GetNumCabs

public void testGetCabList_GetNumCabs()
Tests getCabList and getNumCabs methods of Zone class

testRemoveCab_ClearCabList

public void testRemoveCab_ClearCabList()
Tests removeCab and clearCabList method of Zone class. Assumes addCabToFront, addCabToBack, and getNumCabs methods work.

testAddCabToFront

public void testAddCabToFront()
Tests addCabToFront method of Zone class

testAddCabToBack

public void testAddCabToBack()
Tests addCabToBack method of Zone class


API documentation for build 958