Skip to content

Commit

Permalink
Added Test classes WaveFactoryTest, LevelWavesTest and WaveClassTest …
Browse files Browse the repository at this point in the history
…to aid in testing of the waves feature.
  • Loading branch information
BlairCannon97 committed Sep 30, 2023
1 parent 251b0a6 commit 6e056bc
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.csse3200.game.components.tasks.waves;

import com.csse3200.game.areas.ForestGameArea;
import com.csse3200.game.extensions.GameExtension;
import com.csse3200.game.services.GameTime;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

@ExtendWith(GameExtension.class)
@ExtendWith(MockitoExtension.class)
class LevelWavesTest {

@BeforeEach
void setUp() {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.csse3200.game.components.tasks.waves;

class WaveClassTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

@ExtendWith(GameExtension.class)
@ExtendWith(MockitoExtension.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.csse3200.game.entities.factories;

import com.csse3200.game.extensions.GameExtension;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;

@ExtendWith(GameExtension.class)
@ExtendWith(MockitoExtension.class)
class WaveFactoryTest {

@BeforeEach
void setUp() {

}
}

0 comments on commit 6e056bc

Please sign in to comment.