111 lines
4.6 KiB
Plaintext
111 lines
4.6 KiB
Plaintext
An instance of the Website class was created successfully.
|
|
An instance of the Member class was created successfully.
|
|
An instance of the Holiday class was created successfully.
|
|
FOUND: websiteName initialised, incrementing 0.3333333333333333
|
|
FOUND: hits initialised, incrementing 0.3333333333333333
|
|
Extra discount field not found inside website class, no penalty incurred !
|
|
FOUND: initialising salesTotal to 0.0, incrementing 0.3333333333333333
|
|
FOUND: 3 accessor, incrementing 1.0
|
|
FOUND: Three mutator, incrementing 1.0
|
|
CHECKING: memberLogin(member) invoked.
|
|
Club 18 welcome member 123, you are now logged in
|
|
CHECKING: memberLogin(member) finished.
|
|
FOUND: memberLogin(member) method set loginStatus to true, incrementing 1.0
|
|
FOUND: memberLogin(member) method adds 1 to hits, incrementing 1.0
|
|
CHECKING: memberLogin() invoked.
|
|
CHECKING: memberLogin() finished.
|
|
|
|
|
|
FEEDBACK: You were expected to declare memberLogin(member) method that outputs a proper message.
|
|
|
|
|
|
CHECKING: memberLogout(member) invoked.
|
|
Club 18: goodbye member 123, you are now logged out
|
|
CHECKING: memberLogout(member) finished.
|
|
FOUND: memberLogout(member) method set loginStatus to false, incrementing 1.0
|
|
|
|
|
|
FEEDBACK: You were expected to declare checkHitDiscount() method as a private method.
|
|
|
|
|
|
FOUND: checkHitDiscount() method returns a Boolean, incrementing 1.0
|
|
|
|
|
|
FEEDBACK: You were expected to declare checkHitDiscount() method that can check the hits correctly.
|
|
FEEDBACK: You were expected to declare checkHitDiscount() method that makes sure that hits > 0.
|
|
|
|
|
|
FOUND: checkout() method has only one parameter, incrementing 1.0
|
|
FOUND: checkout() method has a local Holiday variable, incrementing 0.5
|
|
CHECKING: checkout(Member) invoked.
|
|
Your purchase totaling £100.0 was sucessful, user 123, thank you for using Tops Travel.
|
|
CHECKING: checkout(Member) finished.
|
|
FOUND: checkout() method adds holiday price to salesTotal, incrementing 1.0
|
|
CHECKING: checkout(Member) invoked.
|
|
Congratulations! You are the 10th user to book a holiday, you will recieve a 10% discount on this holiday.
|
|
Your purchase totaling £90.0 was sucessful, user 123, thank you for using Tops Travel.
|
|
CHECKING: checkout(Member) finished.
|
|
FOUND: checkout() method adds holiday price to salesTotal, incrementing 2.0
|
|
CHECKING: checkout(Member) invoked.
|
|
Congratulations! You are the 10th user to book a holiday, you will recieve a 10% discount on this holiday.
|
|
Your purchase totaling £90.0 was sucessful, user 123, thank you for using Tops Travel.
|
|
CHECKING: checkout(Member) finished.
|
|
|
|
|
|
FEEDBACK: You were expected to logs out the member inside the checkout() method.
|
|
|
|
|
|
|
|
Website Class OVERALL: 11.5
|
|
|
|
An instance of the Website class was created successfully.
|
|
An instance of the Member class was created successfully.
|
|
An instance of the Holiday class was created successfully.
|
|
CHECKING: getHoliday() invoked.
|
|
CHECKING: getHoliday() finished.
|
|
FOUND: accessor method getHoliday(), incrementing 1.0
|
|
CHECKING: getWebsite() invoked.
|
|
CHECKING: getWebsite() finished.
|
|
FOUND: accessor method getWebsite(), incrementing 1.0
|
|
FOUND: Three other accessor, incrementing 1.0
|
|
CHECKING: setWebsite() invoked.
|
|
CHECKING: setWebsite() finished.
|
|
FOUND: mutator method setWebsite(), incrementing 0.5
|
|
CHECKING: selectHoliday(Holiday) invoked.
|
|
You are not logged in
|
|
CHECKING: selectHoliday(Holiday) finished.
|
|
FOUND: Checking that member is logged in before choosing a holiday, incrementing 1.0
|
|
CHECKING: selectHoliday(Holiday) invoked.
|
|
member ID: 123
|
|
holiday ref number: A1
|
|
holiday type: beach
|
|
holiday price: £100
|
|
CHECKING: selectHoliday(Holiday) finished.
|
|
FOUND: Checking that selectHoliday gives a value to the holiday field, incrementing 1.0
|
|
CHECKING: selectHoliday() invoked.
|
|
CHECKING: selectHoliday() finished.
|
|
FOUND: selectHoliday(Holiday) method output message as expected, incrementing 1.0
|
|
FOUND: Three other mutator, incrementing 1.0
|
|
|
|
|
|
FEEDBACK: You need to initialize email to a value inside the constructor method.
|
|
FEEDBACK: You need to initialize membershipNumber to a value inside the constructor method.
|
|
|
|
|
|
FOUND: loggedInStatus initialised, incrementing 1.0
|
|
FOUND: You declared an extra field of Website type inside the Member class, incrementing 1.0
|
|
FOUND: website initialised, incrementing 0.5
|
|
FOUND: You declared an extra field of Holiday type inside the Member class, incrementing 1.0
|
|
FOUND: holiday initialised, incrementing 0.5
|
|
FOUND: Use of this inside payForHoliday() method, incrementing 1.0
|
|
|
|
Member Class OVERALL: 12.5
|
|
|
|
FOUND: refNumber initialised, incrementing 0.3333333333333333
|
|
FOUND: type initialised, incrementing 0.3333333333333333
|
|
FOUND: price initialised, incrementing 0.3333333333333333
|
|
|
|
Holiday Class OVERALL: 1.0
|
|
|
|
OVERALL: 25.0
|