-
Notifications
You must be signed in to change notification settings - Fork 4
TNTAnimationController Test Plan
Mohamad Dabboussi edited this page Sep 11, 2023
·
1 revision
Animations add life to game elements and contribute to an immersive user experience. It's crucial to ensure that the TNTAnimationController
behaves as expected to provide a consistent game atmosphere. This test plan outlines the testing procedures.
The aim is to validate that the TNTAnimationController
correctly triggers animations in response to various events, ensuring:
- The correct animation plays when the "digStart" event is triggered.
- The correct animation plays when the "defaultStart" event is triggered.
- The correct animation plays when the "explodeStart" event is triggered.
- Initialize necessary services and resources for testing using ServiceLocator.
- Register PhysicsService, ResourceService, and RenderService with ServiceLocator.
- Load textures and texture atlases for the TNT Tower using a new ResourceService instance.
Objective: To verify that the "dig" animation plays when "digStart" is triggered.
Steps:
- Trigger the "digStart" event on the entity.
- Verify that the
AnimationRenderComponent
'sgetCurrentAnimation
method returns "dig".
Objective: To verify that the "default" animation plays when "defaultStart" is triggered.
Steps:
- Trigger the "defaultStart" event on the entity.
- Verify that the
AnimationRenderComponent
'sgetCurrentAnimation
method returns "default".
Objective: To verify that the "explode" animation plays when "explodeStart" is triggered.
Steps:
- Trigger the "explodeStart" event on the entity.
- Verify that the
AnimationRenderComponent
'sgetCurrentAnimation
method returns "explode".
- The
ServiceLocator
class functions as expected and has been previously tested. - The
AnimationRenderComponent
class has methods and behavior that are correctly implemented. - External extensions such as
MockitoExtension
andGameExtension
function as expected.