Skip to content

Commit

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

public class BadEndCutsceneTest {
class BadEndCutsceneTest {

private BadEndCutscene badEndCutscene;
private ResourceService resourceService;

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

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

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

Expand All @@ -43,7 +43,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(() -> badEndCutscene.createEntities());
}
Expand Down

0 comments on commit 912d8b5

Please sign in to comment.