PlayerUnlockDoorEvent.java

1
package g0803.bindingofshiba.events.game;
2
3
import g0803.bindingofshiba.App;
4
import g0803.bindingofshiba.events.CancellableEvent;
5
import g0803.bindingofshiba.model.game.elements.Player;
6
import g0803.bindingofshiba.model.game.room.Door;
7
8
public class PlayerUnlockDoorEvent extends CancellableEvent {
9
10
    private final Player player;
11
    private final Door door;
12
13
    public PlayerUnlockDoorEvent(double dt, App app, Player player, Door door) {
14
        super(dt, app);
15
16
        this.player = player;
17
        this.door = door;
18
    }
19
20
    public Player getPlayer() {
21 1 1. getPlayer : replaced return value with null for g0803/bindingofshiba/events/game/PlayerUnlockDoorEvent::getPlayer → KILLED
        return player;
22
    }
23
24
    public Door getDoor() {
25 1 1. getDoor : replaced return value with null for g0803/bindingofshiba/events/game/PlayerUnlockDoorEvent::getDoor → KILLED
        return door;
26
    }
27
}

Mutations

21

1.1
Location : getPlayer
Killed by : g0803.bindingofshiba.controller.game.PlayerControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.PlayerControllerTest]/[method:unlockDoorWithNotEnoughKeys()]
replaced return value with null for g0803/bindingofshiba/events/game/PlayerUnlockDoorEvent::getPlayer → KILLED

25

1.1
Location : getDoor
Killed by : g0803.bindingofshiba.controller.game.RoomControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.RoomControllerTest]/[method:tick2()]
replaced return value with null for g0803/bindingofshiba/events/game/PlayerUnlockDoorEvent::getDoor → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0