Element.java

1
package g0803.bindingofshiba.model.game.elements;
2
3
import g0803.bindingofshiba.math.Vec2D;
4
5
public class Element {
6
7
    private Vec2D position;
8
9
    public Element(Vec2D position) {
10
        this.position = position;
11
    }
12
13
    public Element(int x, int y) {
14
        this.position = new Vec2D(x, y);
15
    }
16
17
    public Vec2D getPosition() {
18 1 1. getPosition : replaced return value with null for g0803/bindingofshiba/model/game/elements/Element::getPosition → KILLED
        return position;
19
    }
20
21
    public void setPosition(Vec2D position) {
22
        this.position = position;
23
    }
24
}

Mutations

18

1.1
Location : getPosition
Killed by : g0803.bindingofshiba.model.game.elements.MoveableElementTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.model.game.elements.MoveableElementTest]/[method:moveWithConstantVelocity()]
replaced return value with null for g0803/bindingofshiba/model/game/elements/Element::getPosition → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0