mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-09-27 14:12:57 +02:00
Fix tests
This commit is contained in:
parent
76c582ba1d
commit
05a8a0ebbe
@ -74,7 +74,7 @@ public class LimitTabTest {
|
|||||||
when(world.getEntities()).thenReturn(Collections.singletonList(entity));
|
when(world.getEntities()).thenReturn(Collections.singletonList(entity));
|
||||||
when(nether.getEntities()).thenReturn(Collections.singletonList(entity));
|
when(nether.getEntities()).thenReturn(Collections.singletonList(entity));
|
||||||
when(end.getEntities()).thenReturn(Collections.singletonList(entity));
|
when(end.getEntities()).thenReturn(Collections.singletonList(entity));
|
||||||
lp = new LimitTab(addon, new IslandBlockCount(), Collections.emptyMap(), island, world, null, LimitTab.SORT_BY.A2Z);
|
lp = new LimitTab(addon, new IslandBlockCount("", ""), Collections.emptyMap(), island, world, null, LimitTab.SORT_BY.A2Z);
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
|
@ -63,7 +63,7 @@ public class EntityLimitListenerTest {
|
|||||||
when(island.getUniqueId()).thenReturn(UUID.randomUUID().toString());
|
when(island.getUniqueId()).thenReturn(UUID.randomUUID().toString());
|
||||||
when(island.inIslandSpace(any(Location.class))).thenReturn(true);
|
when(island.inIslandSpace(any(Location.class))).thenReturn(true);
|
||||||
|
|
||||||
ibc = new IslandBlockCount();
|
ibc = new IslandBlockCount("","");
|
||||||
when(bll.getIsland(anyString())).thenReturn(ibc);
|
when(bll.getIsland(anyString())).thenReturn(ibc);
|
||||||
when(addon.getBlockLimitListener()).thenReturn(bll);
|
when(addon.getBlockLimitListener()).thenReturn(bll);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user