-
Notifications
You must be signed in to change notification settings - Fork 9
Test Plan for Controls Screen
This test plan covers unit testing for the ControlsScreen
class in the game. The purpose of these tests is to ensure that the ControlsScreen
class behaves as expected, especially in terms of asset loading and screen rendering.
The tests will be conducted in a headless environment using a mock application instance.
- Verify that asset loading in
ControlsScreen
works correctly. - Confirm that rendering and resizing methods in
ControlsScreen
function as expected. - Ensure that specific assets are loaded as intended.
Objective: Verify that asset loading in ControlsScreen
is functioning correctly.
Test Steps:
- Create an instance of the
ControlsScreen
class. - Simulate rendering and resizing operations.
- Verify that specific assets are loaded as expected, e.g., "images/controls-images/Controls.png."
Objective: Ensure that the verifyAssetLoaded
method correctly verifies the loading of assets.
Test Steps:
- Call the
verifyAssetLoaded
method with known loaded and unloaded assets. - Verify that the method correctly identifies loaded assets and asserts their presence.
- Dispose the assets after testing.
-
Application
(Mock): Used to simulate application behavior. -
GdxGame
(Mock): Represents the game instance. -
ResourceService
(Mock): Simulates resource loading. -
ServiceLocator
(Mock): Facilitates service registration and retrieval.
Before running the test cases, the necessary mock objects will be created and configured to isolate the ControlsScreen
class.
This test plan ensures that the ControlsScreen
class, responsible for asset loading and screen rendering, behaves as intended. By simulating various scenarios and verifying asset loading, it ensures that the screen is correctly set up for use in the game.
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files