-
Notifications
You must be signed in to change notification settings - Fork 1
Test Plan for 'AnimalSelectionActionsTest'
To validate the functionality and correctness of the AnimalSelectionActions class, focusing on animal selection, navigation, and dialog display within the game.
Purpose: Confirm that all dependencies are correctly mocked and that the AnimalSelectionActions class is initialized properly with these mocks.
- Validate that mockDisplay returns expected mock objects for images and buttons.
- Verify that AnimalSelectionActions is instantiated correctly with the mocked dependencies.
Animal Selection
Purpose: Validate that selecting an animal correctly highlights the image and updates the selected animal path.
Ensure that the selected image is highlighted in red. Check that the selectedAnimalImagePath is updated to the expected value.
Confirm that the method handles different animal images and paths correctly. Back Button Functionality
Purpose: Verify that clicking the back button transitions the game to the main menu.
- Ensure that a ClickListener is added to the back button.
- Confirm that clicking the button invokes the transition to the main menu screen in GdxGame.
Purpose: Ensure that the dialog for the selected animal displays the correct title, content, and image.
- Verify that displayDialog is called with the correct title, content, image path, width, and height.
- Check that the values match the expected title, content, and dimensions.