Skip to content

Commit

Permalink
#652 Fixed code smells for: GoodEndCutsceneTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Murphy committed Oct 17, 2024
1 parent 6a237b2 commit 03c4d5e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import com.csse3200.game.services.ResourceService;
import com.csse3200.game.services.ServiceLocator;

public class GoodEndCutsceneTest {
class GoodEndCutsceneTest {

private GoodEndCutscene goodEndCutscene;

@BeforeEach
public void setUp() {
void setUp() {
// Mock the ServiceLocator's ResourceService
ResourceService resourceService = Mockito.mock(ResourceService.class);
ServiceLocator.registerResourceService(resourceService);
Expand All @@ -23,13 +23,13 @@ public void setUp() {
}

@Test
public void testConstructor() {
void testConstructor() {
// Verify the initial state of the object
assertTrue(goodEndCutscene.isAnimatedScenes);
}

@Test
public void testSetupScenes() {
void testSetupScenes() {
// Act
goodEndCutscene.setupScenes();

Expand All @@ -42,7 +42,7 @@ public void testSetupScenes() {
}

@Test
public void testCreateEntities() {
void testCreateEntities() {
// Since this method is redundant, we simply call it to ensure no exception occurs
assertDoesNotThrow(() -> goodEndCutscene.createEntities());
}
Expand Down

0 comments on commit 03c4d5e

Please sign in to comment.