Skip to content

Commit

Permalink
#652 Fixed code smells for: CutsceneScreenDisplayTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Murphy committed Oct 17, 2024
1 parent 912d8b5 commit 2ce6156
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class CutsceneScreenDisplayTest {

private CutsceneScreenDisplay cutsceneScreenDisplay;
private TextDisplay mockTextDisplay;
private Stage mockStage;
private Entity mockEntity;
private EventHandler mockEventHandler;
Expand All @@ -29,7 +28,6 @@ void setUp() {
mockEntity = mock(Entity.class);
mockEventHandler = mock(EventHandler.class);
mockRenderService = mock(RenderService.class);
mockTextDisplay = mock(TextDisplay.class);
Skin mockSkin = mock(Skin.class);

when(mockEntity.getEvents()).thenReturn(mockEventHandler);
Expand Down Expand Up @@ -60,23 +58,6 @@ void testCreateInitializesUIComponents() {
assertNotNull(cutsceneScreenDisplay.getTable(), "Table should be initialized");
}

//@Test
/*void testDisposeClearsUIComponents() {
// Arrange: Set up the table with some UI elements
Table mockTable = mock(Table.class);
cutsceneScreenDisplay.setTable(mockTable);
CutsceneTextDisplay mockTextDisplay = mock(CutsceneTextDisplay.class);
cutsceneScreenDisplay.setTextDisplay(mockTextDisplay);
assertNotNull(cutsceneScreenDisplay.getTextDisplay());
// Act: Call dispose to clear the UI
cutsceneScreenDisplay.dispose();
// Verify that the table and text display are cleared
verify(mockTable, times(1)).clear();
}*/

@Test
void testSetStage() {
// Act: Set a new stage
Expand Down

0 comments on commit 2ce6156

Please sign in to comment.