DefaultBoundingBoxesProvider.java

1
package g0803.bindingofshiba.bundles;
2
3
import g0803.bindingofshiba.math.BoundingBox;
4
5
public class DefaultBoundingBoxesProvider implements BundleProvider<BoundingBox> {
6
7
    private final Bundle<BoundingBox> boundingBoxes = new HashMapBundle<>();
8
9
    public DefaultBoundingBoxesProvider() {
10 1 1. <init> : removed call to g0803/bindingofshiba/bundles/DefaultBoundingBoxesProvider::registerBoundingBoxes → KILLED
        this.registerBoundingBoxes();
11
    }
12
13
    private void registerBoundingBoxes() {
14 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("monster", new BoundingBox(-4, -3, 10, 4));
15 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("shiba", new BoundingBox(-3, -6, 7, 7));
16 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("room", new BoundingBox(3, 3, 137, 60));
17 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("heart", new BoundingBox(-2, -2, 5, 5));
18 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("rock", new BoundingBox(-4, -2, 9, 3));
19
20
        BoundingBox horizontalDoorBoundingBox = new BoundingBox(-10, -2, 21, 5);
21
        BoundingBox verticalDoorBoundingBox = new BoundingBox(-2, -10, 5, 21);
22 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.open.bottom", horizontalDoorBoundingBox);
23 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.open.left", verticalDoorBoundingBox);
24 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.open.top", horizontalDoorBoundingBox);
25 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.open.right", verticalDoorBoundingBox);
26
27 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.closed.bottom", horizontalDoorBoundingBox);
28 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.closed.left", verticalDoorBoundingBox);
29 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.closed.top", horizontalDoorBoundingBox);
30 1 1. registerBoundingBoxes : removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED
        boundingBoxes.register("door.closed.right", verticalDoorBoundingBox);
31
    }
32
33
    @Override
34
    public Bundle<BoundingBox> getBundle() {
35 1 1. getBundle : replaced return value with null for g0803/bindingofshiba/bundles/DefaultBoundingBoxesProvider::getBundle → KILLED
        return boundingBoxes;
36
    }
37
}

Mutations

10

1.1
Location : <init>
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/DefaultBoundingBoxesProvider::registerBoundingBoxes → KILLED

14

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

15

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

16

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

17

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

18

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

22

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

23

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

24

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

25

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

27

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

28

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

29

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

30

1.1
Location : registerBoundingBoxes
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
removed call to g0803/bindingofshiba/bundles/Bundle::register → KILLED

35

1.1
Location : getBundle
Killed by : g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.bundles.DefaultBoundingBoxesProviderTest]/[method:hasRequiredKeys()]
replaced return value with null for g0803/bindingofshiba/bundles/DefaultBoundingBoxesProvider::getBundle → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0