Skip to content

Test Plan for FireExtinguisherHandlerComponent

Caleb Murphy edited this page Sep 11, 2024 · 1 revision

Test Environment

  • Framework: JUnit 5
  • Objects Used:
  • FireExtinguisherHandlerComponent
  • InventoryComponent
  • Entity (mocked)
  • EventHandler (mocked)

Test Cases - Testing FireExtinguisherHandlerComponent Methods

  1. Test Case: Should give extinguisher

Purpose: To verify that the FireExtinguisherHandlerComponent can add a fire extinguisher to the entity's inventory. Expected Results:

Initially, the entity's inventory should not contain a fire extinguisher. After calling givePutExtinguisher() on the handler, the inventory should contain one fire extinguisher item.

  1. Test Case: Should return extinguisher

Purpose: To verify that the FireExtinguisherHandlerComponent can remove a fire extinguisher from the entity's inventory if it is already present. Expected Results:

After ensuring that the inventory contains a fire extinguisher by calling shouldGiveExtinguisher(), calling givePutExtinguisher() again should remove the fire extinguisher from the inventory. The inventory should not contain a fire extinguisher after the second call to givePutExtinguisher().

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