LastPrestige.java

1
package sh.okx.rankup.prestige;
2
3
import java.util.Collections;
4
import org.bukkit.entity.Player;
5
import sh.okx.rankup.RankupPlugin;
6
import sh.okx.rankup.ranks.Rank;
7
import sh.okx.rankup.ranks.requirements.LastRankRequirements;
8
9
public class LastPrestige extends Prestige {
10
  public LastPrestige(RankupPlugin plugin, String name) {
11
    super(null, plugin, null, name, new LastRankRequirements(), Collections.emptyList(), null, null);
12
  }
13
14
  @Override
15
  public boolean isIn(Player player) {
16 2 1. isIn : replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isIn → SURVIVED
2. isIn : replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::isIn → KILLED
    return plugin.getPermissions().inGroup(player.getUniqueId(), rank);
17
  }
18
19
  @Override
20
  public boolean hasRequirements(Player player) {
21 1 1. hasRequirements : replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::hasRequirements → NO_COVERAGE
    return false;
22
  }
23
24
  @Override
25
  public void applyRequirements(Player player) {
26
  }
27
28
  @Override
29
  public void runCommands(Player player, Rank next) {
30
  }
31
32
  @Override
33
  public boolean isEligible(Player player) {
34 1 1. isEligible : replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isEligible → NO_COVERAGE
    return true;
35
  }
36
}

Mutations

16

1.1
Location : isIn
Killed by : none
replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isIn → SURVIVED

2.2
Location : isIn
Killed by : sh.okx.rankup.prestige.BrokenPrestigeTest.[engine:junit-jupiter]/[class:sh.okx.rankup.prestige.BrokenPrestigeTest]/[method:testPrestige()]
replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::isIn → KILLED

21

1.1
Location : hasRequirements
Killed by : none
replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::hasRequirements → NO_COVERAGE

34

1.1
Location : isEligible
Killed by : none
replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isEligible → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.7.0