Skip to content

Test Plan for IngredientStationHandlerComponent

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

The purpose of this plan is to test the basic functionality of the StationFactory calsss components.

Test Environment

  • Framework: JUnit4
  • Objects Used: IngredientStationHandler, InventoryComponent, StationCollectionComponent

Test Cases - Testing IngredientStationHandlerComponent

Test that Station Gives Item to Player

Purpose:

The purpose of this test is to verify that the station gives the correct item to the player.

Test Method:

testStationGivesItemToPlayer()

Expected Outcome:

  • The player inventory should contain the item provided by the station.
  • The station should spawn another item in it after a player collects one.
  • The player inventory display should be updated.

Test Interaction When Full Inventory

Purpose:

The purpose of this test is to verify that no item should be added to inventory if it is full already.

Test Method:

testStationInteractionWhenPlayerInventoryIsFull()

Expected Outcome:

  • The player inventory should remain full and unchanged.
  • The station inventory should remain the same with no item being removed or replaced.

Test Station Repopulate After Giving Item

Purpose:

The purpose of this test is to verify that a station respawns an item in its inventory after the player takes one out of it.

Test Method:

testStationRepopulatesAfterGivingItem()

Expected Outcome:

  • The player should receive the item from the stations inventory.
  • The station should immediately repopulate the item that was taken.

Test No Interaction on Non-Default Type

Purpose:

The purpose of this test is to verify that the interaction with the station does not occur if the interaction type is different from the expected default type.

Test Method:

testNoInteractionOnNonDefaultType()

Expected Outcome:

  • The player inventory should remain unchanged with no item added.
  • The stations inventory should remain unchanged with no item removed.

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