mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 18:55:17 +01:00
Test clean up.
This commit is contained in:
parent
54a7b8b0f2
commit
ca2976cc4b
@ -80,8 +80,6 @@ public class IslandBanCommandTest extends RanksManagerBeforeClassTest {
|
||||
@Mock
|
||||
private Player targetPlayer;
|
||||
|
||||
private RanksManager rm;
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
@ -185,7 +185,7 @@ public class CycleClickTest {
|
||||
when(island.getFlag(any())).thenReturn(RanksManager.MEMBER_RANK);
|
||||
// Set up up and down ranks
|
||||
PowerMockito.mockStatic(RanksManager.class);
|
||||
when(RanksManager.getInstance().getInstance()).thenReturn(rm);
|
||||
when(RanksManager.getInstance()).thenReturn(rm);
|
||||
when(rm.getRankUpValue(eq(RanksManager.VISITOR_RANK))).thenReturn(RanksManager.COOP_RANK);
|
||||
when(rm.getRankUpValue(eq(RanksManager.COOP_RANK))).thenReturn(RanksManager.TRUSTED_RANK);
|
||||
when(rm.getRankUpValue(eq(RanksManager.TRUSTED_RANK))).thenReturn(RanksManager.MEMBER_RANK);
|
||||
|
Loading…
Reference in New Issue
Block a user