-
Notifications
You must be signed in to change notification settings - Fork 2
JUnit Testing Plan for Cooking Ingredients
Calvin John edited this page Aug 29, 2024
·
1 revision
- Ensure that Ingredients get cooked when they are placed into a station once their cook times are met.
- Ensure Timers are set up poperly.
- Ensure the event triggers and listeners work.
- Ensure the ingredient states change when their cook time is met.
- Ensure ingredient becomes burnt if 15 seconds pass after the cook time.
- Ensure that stop cooking working properly.
- Specific calculations and edge cases for the
cookEndTime
calculation inCookIngredientComponent.cookIngredient()
method based on different station types and/or different station states weren't tested. It only tested based on a "NORMAL" station state and the station type set to "COOK_TOP" (CookIngredientComponent.cookIngredient(station_station="NORMAL", oven_multiplier=1)
Create mock objects for GameTime
, Event_Handlers
, IngredientComponent
. Create Empty Entity
, and initialize a CookIngredientComponent
. Add the 2 components to the entity and call the Enitity.create()
method.
Verifies that CookIngredientComponent successfully communicates with the components StationItemHandler
and IngredientComponent
.
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