View Test Harness Source.
Module Testing. Module: User.class - Paul Smith. Tested on: Fri Dec 29 01:55:54 GMT+00:00 2000. UserModuleTestHarness - Paul Smith. ######### #Test 01# ######### Instantise User with default Constructor. toString returns: Cliff Railway Ticketing System. User: Unspecified User ID: Unspecified This user has no permissions. ######### #Test 02# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: false top: false bottom: false toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user has no permissions. ######### #Test 03# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: true top: false bottom: false toString() returns: ######### #Test 04# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: true top: true bottom: false toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user has administration privialges to the system. ######### #Test 05# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: true top: false bottom: true toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user has administration privialges to the system. ######### #Test 06# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: false top: true bottom: false toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user can access the top POST computer. ######### #Test 07# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: false top: false bottom: true toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user can access the bottom POST computer. ######### #Test 08# ######### Instantise User with over-loaded Constructor. Parameters passed: userID: pms9 name: Paul Smith password: none set admin: false top: true bottom: true toString() returns: Cliff Railway Ticketing System. User: Paul Smith User ID: pms9 This user can access the top and bottom POST computers. ######### #Test 09# ######### Instantise User, specifing the userID to:"pms9", and call getUserID(). pms9 ######### #Test 10# ######### Instantise User, specifing the userID to:"pms8", calling setUserID("pms9"), and call getUserID(). pms8 Setting to "pms9" pms9 ######### #Test 11# ######### Instantise User, specifing the userID to:"pms9", and call getUserID(). pms9 ######### #Test 12# ######### Instantise User, specifing the userID to:"pms9", and call getUserID(). pms9 ######### #Test 13# ######### Instantise User, specifing the userID to:"pms9", and call getUserID(). pms9Page automatically generated on: 29/12/00 at: 1:55:55 AM.