-
Notifications
You must be signed in to change notification settings - Fork 2
Main Game Order Button Display
- Framework: JUnit 5
-
Objects Used:
-
MainGameOrderBtnDisplay
(under test) -
RenderService
,Stage
,DocketService
(mocked) -
Entity
,SpriteBatch
(mocked)
-
-
Component Setup
Purpose: To ensure that theMainGameOrderBtnDisplay
component is correctly initialised and registered with required services.
Expected Results:-
RenderService
andDocketService
should be mocked and registered withServiceLocator
. - The stage for the button display should be correctly assigned during setup.
-
-
Button Creation
Purpose: To verify that the button display correctly adds UI actors when theaddActors()
method is called.
Expected Results:- The
addActors()
method should be called at least once during the test.
- The
-
Component Association with Entity
Purpose: To verify that theMainGameOrderBtnDisplay
component is correctly associated with anEntity
.
Expected Results:- Adding the button display to an entity should allow retrieval of the same entity through
getEntity()
.
- Adding the button display to an entity should allow retrieval of the same entity through
-
Dispose Method Functionality
Purpose: To ensure that thedispose()
method correctly clears UI elements when called.
Expected Results:- Before disposal, the table should contain children elements.
- After calling
dispose()
, the table should have no children elements.
-
Dummy Test for Draw Method
Purpose: To acknowledge that thedraw()
method currently performs no meaningful operations.
Expected Results:- The
draw()
method should run without exceptions or side effects.
- The
-
Get Z Index
Purpose: To confirm that theZIndex
of the button display is correctly set.
Expected Results:-
getZIndex()
should return2f
.
-
-
Get and Set State
Purpose: To verify that the state of the button display can be toggled and retrieved correctly.
Expected Results:- Setting the state to
true
should returntrue
fromgetState()
. - Setting the state to
false
should returnfalse
fromgetState()
.
- Setting the state to
Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes
Entities and Components
Input Handling
Game Screens and Areas
Fire Extinguisher Handler Component
MainGameActions Create Docket Triggers
Main Game Order Button Display
BackstoryCutsceneDisplay Test Plan
Test Plan for MainGameOrderTicketDisplay
Test Plan for MainGameOrderBtnDisplay
Test Plan for DocketLineDisplay
Test plan for RandomComboService
Test plan for SpeedBoostUpgrade
Test plan for DancePartyUpgrade