Test clean up.

This commit is contained in:
tastybento 2024-01-08 22:21:31 +09:00
parent 54a7b8b0f2
commit ca2976cc4b
2 changed files with 1 additions and 3 deletions

View File

@ -80,8 +80,6 @@ public class IslandBanCommandTest extends RanksManagerBeforeClassTest {
@Mock
private Player targetPlayer;
private RanksManager rm;
@Before
public void setUp() throws Exception {
super.setUp();

View File

@ -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);