Skip to content

Commit

Permalink
Test clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 8, 2024
1 parent 54a7b8b commit ca2976c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ public class IslandBanCommandTest extends RanksManagerBeforeClassTest {
@Mock
private Player targetPlayer;

private RanksManager rm;

@Before
public void setUp() throws Exception {
super.setUp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void setUp() throws Exception {
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);
Expand Down

0 comments on commit ca2976c

Please sign in to comment.