some more refactoring

This commit is contained in:
nossr50
2024-05-24 13:30:17 -07:00
parent 6c1502fc67
commit 0708b0a6a2
2 changed files with 108 additions and 202 deletions

View File

@@ -17,6 +17,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -72,7 +73,7 @@ class WoodcuttingTest extends MMOTestEnvironment {
Mockito.when(blockState.getBlock()).thenReturn(block);
// return empty collection if ItemStack
Mockito.when(blockState.getBlock().getDrops(any())).thenReturn(Collections.EMPTY_LIST);
Mockito.when(blockState.getBlock().getDrops(any())).thenReturn(Collections.emptyList());
Mockito.when(blockState.getType()).thenReturn(Material.OAK_LOG);
woodcuttingManager.processBonusDropCheck(blockState);