mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-30 07:37:34 +02:00
Added test for isCheckForBlocks
This commit is contained in:
parent
bae0e6c36f
commit
a8473c27a9
@ -231,4 +231,15 @@ public class DefaultNewIslandLocationStrategyTest {
|
|||||||
assertEquals(Result.BLOCKS_IN_AREA, dnils.isIsland(location));
|
assertEquals(Result.BLOCKS_IN_AREA, dnils.isIsland(location));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test method for {@link world.bentobox.bentobox.managers.island.DefaultNewIslandLocationStrategy#isIsland(org.bukkit.Location)}.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testIsIslandBlocksInAreaNoCheck() {
|
||||||
|
when(iwm.isCheckForBlocks(any())).thenReturn(false);
|
||||||
|
when(adjBlock.getType()).thenReturn(Material.STONE);
|
||||||
|
when(adjBlock.isEmpty()).thenReturn(false);
|
||||||
|
assertEquals(Result.FREE, dnils.isIsland(location));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user