PatternFactory.java

1
package com.takenoko.shape;
2
3
import com.takenoko.layers.tile.TileColor;
4
5
/** This class is a factory for the creation of patterns. */
6
public enum PatternFactory {
7
    LINE {
8
        @Override
9
        public Pattern createPattern(TileColor tileColor) {
10 1 1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$1::createPattern → KILLED
            return new Line(tileColor);
11
        }
12
    },
13
14
    CURVE {
15
        @Override
16
        public Pattern createPattern(TileColor tileColor) {
17 1 1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$2::createPattern → KILLED
            return new Curve(tileColor);
18
        }
19
    },
20
21
    TRIANGLE {
22
        @Override
23
        public Pattern createPattern(TileColor tileColor) {
24 1 1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$3::createPattern → KILLED
            return new Triangle(tileColor);
25
        }
26
    },
27
28
    DIAMOND {
29
        @Override
30
        public Pattern createPattern(TileColor tileColor) {
31 1 1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$4::createPattern → KILLED
            return new Diamond(tileColor);
32
        }
33
    },
34
35
    MIXED_COLORS_DIAMOND {
36
        @Override
37
        public Pattern createPattern(TileColor tileColor) {
38 1 1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$5::createPattern → KILLED
            return new MixedColorsDiamond(tileColor);
39
        }
40
    };
41
42
    public abstract Pattern createPattern(TileColor tileColor);
43
}

Mutations

10

1.1
Location : createPattern
Killed by : com.takenoko.shape.PatternFactoryTest.[engine:junit-jupiter]/[class:com.takenoko.shape.PatternFactoryTest]/[nested-class:TestCreateLine]/[method:createShape_shouldReturnLineOfLength3()]
replaced return value with null for com/takenoko/shape/PatternFactory$1::createPattern → KILLED

17

1.1
Location : createPattern
Killed by : com.takenoko.asset.GameAssetsTest.[engine:junit-jupiter]/[class:com.takenoko.asset.GameAssetsTest]/[nested-class:TestEquals]/[method:equals_WhenGameAssets_S_AreEqual_ThenReturnsTrue()]
replaced return value with null for com/takenoko/shape/PatternFactory$2::createPattern → KILLED

24

1.1
Location : createPattern
Killed by : com.takenoko.asset.GameAssetsTest.[engine:junit-jupiter]/[class:com.takenoko.asset.GameAssetsTest]/[nested-class:TestEquals]/[method:equals_WhenGameAssets_S_AreEqual_ThenReturnsTrue()]
replaced return value with null for com/takenoko/shape/PatternFactory$3::createPattern → KILLED

31

1.1
Location : createPattern
Killed by : com.takenoko.shape.PatternTest.[engine:junit-jupiter]/[class:com.takenoko.shape.PatternTest]/[nested-class:TestEquals]/[method:equals_shouldReturnFalseWhenPatternsAreNotEqual()]
replaced return value with null for com/takenoko/shape/PatternFactory$4::createPattern → KILLED

38

1.1
Location : createPattern
Killed by : com.takenoko.asset.GameAssetsTest.[engine:junit-jupiter]/[class:com.takenoko.asset.GameAssetsTest]/[nested-class:TestEquals]/[method:equals_WhenGameAssets_S_AreEqual_ThenReturnsTrue()]
replaced return value with null for com/takenoko/shape/PatternFactory$5::createPattern → KILLED

Active mutators

Tests examined


Report generated by PIT 1.8.0