Skip to content

Test Plan for StationCollectionComponent

Zachary Adams edited this page Sep 11, 2024 · 2 revisions

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

Test Environment

  • Framework: JUnit4
  • Objects Used: Fridge, Produce Basket

Test Cases - Testing CollectionComponent

Collecting Fish Item

Purpose:

The purpose of this test is to verify that the StationCollectionComponent correctly collects and returns a fish entity.

Test Method:

TestCollection1()

Expected Outcome:

When the collectItem("fish") is called, the returned entity should contain an IngredientComponent with ItemType.FISH.

Collecting Beef Item

Purpose:

The purpose of this test is to verify that the StationCollectionComponent correctly collects and returns a beef entity.

Test Method:

TestCollection2()

Expected Outcome:

When the collectItem("beef") is called, the returned entity should contain an IngredientComponent with ItemType.BEEF.

Failing to Collect an Invalid Item

Purpose:

The purpose of this test is to verify that the StationCollectionComponent correctly handles an invalid or unrecognised item request.

Test Method:

TestCollectionFail()

Expected Outcome:

  • When collectItem("not an option") is called, the method should return null, indicating that the item is not collectible.

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