Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgrandt committed Jul 20, 2024
1 parent 2039f33 commit d25b9a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void onKillAction_WithSuccess_ShouldHandleAction() {

when(eventMock.getEntity()).thenReturn(livingEntityMock);
when(livingEntityMock.getKiller()).thenReturn(playerMock);
when(livingEntityMock.getType().name()).thenReturn("entityName");
when(livingEntityMock.getType().key().asString()).thenReturn("entityName");

JobListener sut = new JobListener(commonJobListenerMock);

Expand All @@ -117,7 +117,7 @@ public void onPlaceAction_WithSuccess_ShouldHandleAction() {
// Arrange
BlockPlaceEvent eventMock = mock(BlockPlaceEvent.class, RETURNS_DEEP_STUBS);
when(eventMock.getPlayer()).thenReturn(playerMock);
when(eventMock.getBlock().getType().name()).thenReturn("blockName");
when(eventMock.getItemInHand().getType().key().asString()).thenReturn("blockName");

JobListener sut = new JobListener(commonJobListenerMock);

Expand Down

0 comments on commit d25b9a7

Please sign in to comment.