-
Notifications
You must be signed in to change notification settings - Fork 1
TaskTest
remmy edited this page Oct 12, 2024
·
6 revisions
This plan outlines the tests designed to verify the proper creation and functionality of tasks within the game. The tests cover key features related to task attributes, event handling, and state management.
private Task stepsTask;
@BeforeEach
void setUp() {
stepsTask = new Task("steps",
"Take your first steps", "Just start moving!",
1,0,false,false);
}
-
getTaskName()
Verifies that the task name is correctly returned as "steps". -
getDescription()
Checks that the task description is accurately returned as "Take your first steps". -
getHint()
Verifies that the correct hint is returned for the task. -
handleEvents()
Tests event handling by verifying task completion status and trigger count before and after an event. -
getRequiredTriggers()
Checks that the task requires the correct number of triggers to complete. -
failure()
Tests the task's failure state, ensuring it correctly transitions from not failed to failed.
ADD PIC HERE!!!