Skip to content

Commit

Permalink
added costructor
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieleMerighi committed Jul 9, 2024
1 parent ea77a36 commit 6c9a2d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/it/bombardero/TestPowerUp.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ class TestPowerUp {
private final PowerUpFactory factory = new PowerUpFactoryImpl();
private PowerUp powerUP;

/**
* Constructor to initialize manager.
*/
TestPowerUp() {
this.manager = new MyGameManager();
}

/**
* Sets up the test environment before each test.
* Initializes the game manager and the spawn coordinates of the PowerUp.
Expand Down

0 comments on commit 6c9a2d1

Please sign in to comment.