Skip to content

PotionFactory Unit Testing

0ceanfloor edited this page Oct 18, 2022 · 5 revisions

Introduction

This section explains the unit testing for the following unit tests. This code comes from the file called PotionFactoryTest.

Test Code

Each Test will begin with the following code image

The code below tests to check if each potion can be created and assigned the right entityType.

SpeedPotionTest

image

HealthPotionTest

image

HealthRegenPotionTest

image

Clone this wiki locally