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

  1. Get Current Big Ticket Info (Initial State)
    Purpose: To verify that the initial state of getCurrentBigTicketInfo() returns null values.
    Expected Results:

    • When getCurrentBigTicketInfo() is called initially, all elements in the returned array should be null.
  2. 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"), the getCurrentBigTicketInfo() method should return the following:
      • "ABC" as the first element.
      • "MEAL" as the second element.
      • "10S" as the third element.