Skip to content

Test Plan for CookIngredientComponent

Zachary Adams edited this page Oct 3, 2024 · 1 revision

The purpose of this plan is to test the basic functionality of the cook ingredient component.

Test Environment

  • Framework: JUnit4
  • Objects Used: Oven, stove

Test Cases - Testing CookIngredientComponent

Ingredient starts cooking

Purpose:

The purpose of this test is to verify that an ingredient starts cooking when the cooking event is triggered.

Test Method:

testCookingStarts()

Expected Outcome:

When the 'cookIngredient' event is triggered, the getIsCooking() method of the CookIngredientComponent should return true.

Test ingredient becomes cooked

Purpose:

The purpose of this test is to verify that an ingredient becomes cooked after a certain event is triggered.

Test Method:

testIngredientBecomesCooked()

Expected Outcomes:

  • When the 'cookIngredient' event is triggered, the cooking process should start.
  • After the specified time has passes the cookItem() method should be triggered on the IngredientComponent.

Test that ingredient stops cooking

Purpose:

The purpose of this test is to verify that the cooking process stops when the stopCookingIngredient event is triggered.

Test Method:

testStopCooking()

Expected Outcome:

  • When the 'stopCookIngredient' event is triggered, the getIsCooking() method should return false.

Test that ingredient becomes burnt

Purpose:

The purpose of this test is to verify that the ingredient becomes burnt if too much time has passed since it was cooked.

Test Method:

testIngredientBecomesBurnt()

Expected Outcome:

  • After the cooking time has passed and the ingredient is cooked, the burnItem method on the IngredientComponent should be triggered.
  • The cooking process should stop and the getIsCooking method should return false

Test that rage mode affects cooking

Purpose:

The purpose of this test is to verify that rage mode affects the cooking time.

Test Method:

testRageMode

Expected Outcome:

  • When the rageModeOn event is triggered cooking times should be reduced allowing the ingredient to cook faster.
  • The cookItem() method should be called after a reduced amount of time compared to normal conditions.

Table of Contents

Home

Team Design Document

Game Features

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

Game

Getting Started

Entities and Components

World Backstory

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Map Design

Test Plans

Sensor Component

Customer Sensor Component

Interaction Component

Inventory Component

Inventory Display

Station Meal Component

Station Progress Display

Keyboard Input Component

Fire Extinguisher Handler Component

Score System

HoverBox Component

MainGameActions Create Docket Triggers

End Day Display Component

Cutscene Area

Docket

Docket Line Display

Docket Meal Display

Main Game Order Button Display

Order Actions

Recipe

Ticket Details Component

BackstoryCutscene Test Plan

BackstoryCutsceneDisplay Test Plan

Test Plan for Tutorial

Keybinds

Keybinds Test Plan

Test Plan for MainGameOrderTicketDisplay

Test Plan for MainGameOrderBtnDisplay

Test Plan for Docket

Test Plan for DocketLineDisplay

Test Plan for OrderActions

Ticket Details

Test plan for RandomComboService

Test plan for LoanUpgrade

Test plan for UpgradesDisplay

Test plan for RageUpgrade

Test plan for SpeedBoostUpgrade

Test plan for DancePartyUpgrade

Test plan for ExtortionUpgrade

Troubleshooting

MacOS Setup Guide

Clone this wiki locally