Ticket Details Component - UQcsse3200/2024-studio-3 GitHub Wiki
Test Environment
- Framework: JUnit 5
- Objects Used:
TicketDetails(under test)
Test Cases - Testing TicketDetails Component Methods
-
Get Current Big Ticket Info (Initial State)
Purpose: To verify that the initial state ofgetCurrentBigTicketInfo()returnsnullvalues.
Expected Results:- When
getCurrentBigTicketInfo()is called initially, all elements in the returned array should benull.
- When
-
Update and Retrieve Big Ticket Info
Purpose: To ensure that the ticket details are correctly updated and retrieved.
Expected Results:- After calling
onUpdateBigTicket("ABC", "MEAL", "10S"), thegetCurrentBigTicketInfo()method should return the following:"ABC"as the first element."MEAL"as the second element."10S"as the third element.
- After calling