CancellableEvent.java

1
package g0803.bindingofshiba.events;
2
3
import g0803.bindingofshiba.App;
4
5
public class CancellableEvent extends Event {
6
7
    private boolean cancelled = false;
8
9
    public CancellableEvent(double dt, App app) {
10
        super(dt, app);
11
    }
12
13
    public boolean isCancelled() {
14 2 1. isCancelled : replaced boolean return with false for g0803/bindingofshiba/events/CancellableEvent::isCancelled → KILLED
2. isCancelled : replaced boolean return with true for g0803/bindingofshiba/events/CancellableEvent::isCancelled → KILLED
        return cancelled;
15
    }
16
17
    public void setCancelled(boolean cancelled) {
18
        this.cancelled = cancelled;
19
    }
20
}

Mutations

14

1.1
Location : isCancelled
Killed by : g0803.bindingofshiba.controller.game.PlayerControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.PlayerControllerTest]/[method:unlockDoorWithNotEnoughKeys()]
replaced boolean return with false for g0803/bindingofshiba/events/CancellableEvent::isCancelled → KILLED

2.2
Location : isCancelled
Killed by : g0803.bindingofshiba.controller.game.PlayerControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.PlayerControllerTest]/[method:unlockDoor()]
replaced boolean return with true for g0803/bindingofshiba/events/CancellableEvent::isCancelled → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0