mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-09-27 14:59:09 +02:00
some more refactoring
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user