taxisrus.tests
Class ModelUnitTest

taxisrus.tests.ModelUnitTest

public class ModelUnitTest

Template for creating new JUnit testcases. Replace all instances of UnitTestTemplate with the desired test name. All methods beginning with the the lowercase word "test" will be invoked (via Java's reflection).


Constructor Summary
ModelUnitTest(String s)
           
 
Method Summary
static junit.framework.Test suite()
           
 void test_cabIsScheduled()
          Tests cabIsScheduled method works correctly.
 void test_cabRefusedRide()
          Tests Model's cabRefusedRide method works correctly.
 void test_rideRequest()
          Tests rideRequest method used by scheduler.
 void testAddCustomer()
          Tests adding a customer.
 void testCancelCustomerAndCancelCab()
          Tests canceling a customer.
 void testChangeCustomer()
          Tests changing a customer.
 void testMoveCabFromBusyToZoneANDZoneToBusy()
           
 void testRemoveCabFromZone()
           
 void testUpdateModelCabInfo0()
          test UpdateModelCabInfo() method dropoff case, case 0, is done
 void testUpdateModelCabInfo2()
          test UpdateModelCabInfo() method pickup case, case 2, not done, Margaret will be back at around 6pm to finish
 

Constructor Detail

ModelUnitTest

public ModelUnitTest(String s)
Method Detail

suite

public static junit.framework.Test suite()

testAddCustomer

public void testAddCustomer()
Tests adding a customer.

testCancelCustomerAndCancelCab

public void testCancelCustomerAndCancelCab()
Tests canceling a customer. cancelCab() is tested because scheduler might call cancelCab depending on whether a cab is scheduled for the customer or not.

testChangeCustomer

public void testChangeCustomer()
Tests changing a customer.

testMoveCabFromBusyToZoneANDZoneToBusy

public void testMoveCabFromBusyToZoneANDZoneToBusy()

testRemoveCabFromZone

public void testRemoveCabFromZone()

testUpdateModelCabInfo0

public void testUpdateModelCabInfo0()
test UpdateModelCabInfo() method dropoff case, case 0, is done

testUpdateModelCabInfo2

public void testUpdateModelCabInfo2()
test UpdateModelCabInfo() method pickup case, case 2, not done, Margaret will be back at around 6pm to finish

test_cabIsScheduled

public void test_cabIsScheduled()
Tests cabIsScheduled method works correctly.

test_cabRefusedRide

public void test_cabRefusedRide()
Tests Model's cabRefusedRide method works correctly.

test_rideRequest

public void test_rideRequest()
Tests rideRequest method used by scheduler.


API documentation for build 958