Module.java

1
package fi.eis.libraries.di;
2
3
import java.lang.reflect.Constructor;
4
import java.lang.reflect.InvocationTargetException;
5
import java.util.HashMap;
6
import java.util.List;
7
import java.util.Map;
8
9
import fi.eis.libraries.di.SimpleLogger.LogLevel;
10
11
/**
12
 * Creation Date: 30.11.2014
13
 * Creation Time: 22:49
14
 *
15
 * @author eis
16
 */
17
public class Module {
18
19
    protected final SimpleLogger logger = new SimpleLogger(this.getClass());
20
    
21
    private static final Object NO_INSTANCE = new Object();
22 6 1. <init> : removed call to java/util/HashMap::<init> → KILLED
2. <init> : Removed assignment to member variable providers → KILLED
3. <init> : removed call to java/util/HashMap::<init> → KILLED
4. <init> : Removed assignment to member variable providers → KILLED
5. <init> : removed call to java/util/HashMap::<init> → KILLED
6. <init> : Removed assignment to member variable providers → KILLED
    private Map<Class, Object> providers = new HashMap<>();
23
    public Module(Class... classes) {
24 15 1. <init> : Incremented (a++) integer local variable number 4 → SURVIVED
2. <init> : Decremented (a--) integer local variable number 3 → SURVIVED
3. <init> : Decremented (a--) integer local variable number 4 → TIMED_OUT
4. <init> : Negated integer local variable number 4 → KILLED
5. <init> : Negated integer local variable number 3 → KILLED
6. <init> : Negated integer local variable number 4 → KILLED
7. <init> : Incremented (a++) integer local variable number 4 → KILLED
8. <init> : Incremented (a++) integer local variable number 3 → KILLED
9. <init> : Decremented (a--) integer local variable number 4 → KILLED
10. <init> : Incremented (++a) integer local variable number 4 → KILLED
11. <init> : Incremented (++a) integer local variable number 3 → KILLED
12. <init> : Incremented (++a) integer local variable number 4 → KILLED
13. <init> : Decremented (--a) integer local variable number 4 → KILLED
14. <init> : Decremented (--a) integer local variable number 3 → KILLED
15. <init> : Decremented (--a) integer local variable number 4 → KILLED
        for (Class clazz: classes) {
25 2 1. <init> : replaced call to java/util/Map::put with argument → KILLED
2. <init> : removed call to java/util/Map::put → KILLED
            this.providers.put(clazz, NO_INSTANCE );
26
        }
27
    }
28
    public Module(List<Class> classes) {
29
        for (Class clazz: classes) {
30 2 1. <init> : replaced call to java/util/Map::put with argument → KILLED
2. <init> : removed call to java/util/Map::put → KILLED
            this.providers.put(clazz, NO_INSTANCE );
31
        }
32
    }
33
    public Module(Map<Class,Object> classesWithInstances) {
34 1 1. <init> : removed call to java/util/Map::entrySet → KILLED
        for (Map.Entry<Class,Object> entry: classesWithInstances.entrySet()) {
35
            logger.debug("Storing %s with key %s", entry.getValue(), entry.getKey());
36 4 1. <init> : replaced call to java/util/Map::put with argument → KILLED
2. <init> : removed call to java/util/Map$Entry::getKey → KILLED
3. <init> : removed call to java/util/Map$Entry::getValue → KILLED
4. <init> : removed call to java/util/Map::put → KILLED
            this.providers.put(entry.getKey(), entry.getValue());
37
        }
38
    }
39
    public void setLogLevel(LogLevel level) {
40
        this.logger.setLogLevel(level);
41
    }
42
43
    public void add(Module module) {
44 1 1. add : removed call to java/util/Map::putAll → KILLED
        this.providers.putAll(module.providers);
45
    }
46
47
    public boolean has(Class type) {
48
        logger.debug("Has %s? (in %s)%n", type, providers.keySet());
49 1 1. has : removed call to java/util/Map::keySet → KILLED
        for (Class clazz: providers.keySet()) {
50
            logger.debug("Comparing %s with %s%n", clazz, type);
51 9 1. has : negated conditional → SURVIVED
2. has : removed conditional - replaced equality check with true → SURVIVED
3. has : equal to less than → SURVIVED
4. has : equal to less or equal → SURVIVED
5. has : equal to greater than → SURVIVED
6. has : equal to not equal → SURVIVED
7. has : removed call to java/lang/Class::isAssignableFrom → KILLED
8. has : removed conditional - replaced equality check with false → KILLED
9. has : equal to greater or equal → KILLED
            if (type.isAssignableFrom(clazz)) {
52 8 1. has : Substituted 1 with -1 → SURVIVED
2. has : Substituted 1 with -1 → SURVIVED
3. has : replaced boolean return with false for fi/eis/libraries/di/Module::has → KILLED
4. has : Substituted 1 with 0 → KILLED
5. has : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
6. has : Substituted 1 with 0 → KILLED
7. has : Substituted 1 with 2 → KILLED
8. has : Substituted 1 with 0 → KILLED
                return true;
53
            }
54
        }
55 7 1. has : replaced boolean return with true for fi/eis/libraries/di/Module::has → NO_COVERAGE
2. has : Substituted 0 with 1 → NO_COVERAGE
3. has : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE
4. has : Substituted 0 with 1 → NO_COVERAGE
5. has : Substituted 0 with -1 → NO_COVERAGE
6. has : Substituted 0 with 1 → NO_COVERAGE
7. has : Substituted 0 with -1 → NO_COVERAGE
        return false;
56
    }
57
    private Class getImplClassFor(Class type) {
58 1 1. getImplClassFor : removed call to java/util/Map::keySet → KILLED
        for (Class clazz: providers.keySet()) {
59 9 1. getImplClassFor : equal to less or equal → SURVIVED
2. getImplClassFor : negated conditional → KILLED
3. getImplClassFor : removed call to java/lang/Class::isAssignableFrom → KILLED
4. getImplClassFor : removed conditional - replaced equality check with false → KILLED
5. getImplClassFor : removed conditional - replaced equality check with true → KILLED
6. getImplClassFor : equal to less than → KILLED
7. getImplClassFor : equal to greater than → KILLED
8. getImplClassFor : equal to greater or equal → KILLED
9. getImplClassFor : equal to not equal → KILLED
            if (type.isAssignableFrom(clazz)) {
60 2 1. getImplClassFor : replaced return value with null for fi/eis/libraries/di/Module::getImplClassFor → KILLED
2. getImplClassFor : mutated return of Object value for fi/eis/libraries/di/Module::getImplClassFor to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return clazz;
61
            }
62
        }
63 7 1. getImplClassFor : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. getImplClassFor : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. getImplClassFor : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. getImplClassFor : removed call to java/lang/StringBuilder::append → NO_COVERAGE
5. getImplClassFor : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
6. getImplClassFor : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
7. getImplClassFor : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
        throw new IllegalArgumentException("not allowed: " + type);
64
    }
65
    private <T> T getInstance(Class <T> type) {
66 1 1. getInstance : removed call to java/util/Map::entrySet → KILLED
        for (Map.Entry<Class,Object> classObjEntry: providers.entrySet()) {
67 10 1. getInstance : equal to less or equal → SURVIVED
2. getInstance : negated conditional → KILLED
3. getInstance : removed call to java/util/Map$Entry::getKey → KILLED
4. getInstance : removed call to java/lang/Class::isAssignableFrom → KILLED
5. getInstance : removed conditional - replaced equality check with false → KILLED
6. getInstance : removed conditional - replaced equality check with true → KILLED
7. getInstance : equal to less than → KILLED
8. getInstance : equal to greater than → KILLED
9. getInstance : equal to greater or equal → KILLED
10. getInstance : equal to not equal → KILLED
            if (type.isAssignableFrom(classObjEntry.getKey())) {
68 3 1. getInstance : removed call to java/util/Map$Entry::getValue → KILLED
2. getInstance : replaced return value with null for fi/eis/libraries/di/Module::getInstance → KILLED
3. getInstance : mutated return of Object value for fi/eis/libraries/di/Module::getInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return (T)classObjEntry.getValue();
69
            }
70
        }
71 7 1. getInstance : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. getInstance : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. getInstance : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. getInstance : removed call to java/lang/StringBuilder::append → NO_COVERAGE
5. getInstance : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
6. getInstance : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
7. getInstance : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
        throw new IllegalArgumentException("not allowed: " + type);
72
73
    }
74
    public <T>T get(Class<T> type) {
75 9 1. get : removed conditional - replaced equality check with false → SURVIVED
2. get : not equal to greater than → SURVIVED
3. get : not equal to greater or equal → SURVIVED
4. get : negated conditional → KILLED
5. get : removed call to fi/eis/libraries/di/Module::has → KILLED
6. get : removed conditional - replaced equality check with true → KILLED
7. get : not equal to less than → KILLED
8. get : not equal to less or equal → KILLED
9. get : not equal to equal → KILLED
        if (!has(type)) {
76 7 1. get : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. get : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. get : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. get : removed call to java/lang/StringBuilder::append → NO_COVERAGE
5. get : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
6. get : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
7. get : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
            throw new IllegalArgumentException("not supported: " + type);
77
        }
78 1 1. get : removed call to fi/eis/libraries/di/Module::getInstance → KILLED
        Object storedValue = getInstance(type);
79 4 1. get : negated conditional → KILLED
2. get : removed conditional - replaced equality check with false → KILLED
3. get : removed conditional - replaced equality check with true → KILLED
4. get : equal to not equal → KILLED
        if (storedValue != NO_INSTANCE) {
80 2 1. get : replaced return value with null for fi/eis/libraries/di/Module::get → KILLED
2. get : mutated return of Object value for fi/eis/libraries/di/Module::get to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return (T)storedValue;
81
        } else {
82
            try {
83 2 1. get : replaced call to fi/eis/libraries/di/Module::getImplClassFor with argument → KILLED
2. get : removed call to fi/eis/libraries/di/Module::getImplClassFor → KILLED
                Class implClass = getImplClassFor(type);
84 1 1. get : removed call to fi/eis/libraries/di/Module::newInstance → KILLED
                storedValue = newInstance(implClass);
85 2 1. get : replaced call to java/util/Map::put with argument → SURVIVED
2. get : removed call to java/util/Map::put → SURVIVED
                providers.put(implClass, storedValue);
86 2 1. get : replaced return value with null for fi/eis/libraries/di/Module::get → KILLED
2. get : mutated return of Object value for fi/eis/libraries/di/Module::get to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return (T)storedValue;
87
            } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
88 1 1. get : removed call to java/lang/IllegalStateException::<init> → NO_COVERAGE
                throw new IllegalStateException(e);
89
            }
90
        }
91
    }
92
93
    protected Object newInstance(Class implClass) throws InstantiationException,
94
            IllegalAccessException, NoSuchMethodException, InvocationTargetException {
95 18 1. newInstance : Negated integer local variable number 4 → SURVIVED
2. newInstance : Incremented (a++) integer local variable number 4 → SURVIVED
3. newInstance : Decremented (a--) integer local variable number 3 → SURVIVED
4. newInstance : Removed increment 1 → TIMED_OUT
5. newInstance : Decremented (a--) integer local variable number 4 → TIMED_OUT
6. newInstance : Changed increment from 1 to -1 → KILLED
7. newInstance : removed call to java/lang/Class::getConstructors → KILLED
8. newInstance : Negated integer local variable number 4 → KILLED
9. newInstance : Negated integer local variable number 3 → KILLED
10. newInstance : Incremented (a++) integer local variable number 4 → KILLED
11. newInstance : Incremented (a++) integer local variable number 3 → KILLED
12. newInstance : Decremented (a--) integer local variable number 4 → KILLED
13. newInstance : Incremented (++a) integer local variable number 4 → KILLED
14. newInstance : Incremented (++a) integer local variable number 3 → KILLED
15. newInstance : Incremented (++a) integer local variable number 4 → KILLED
16. newInstance : Decremented (--a) integer local variable number 4 → KILLED
17. newInstance : Decremented (--a) integer local variable number 3 → KILLED
18. newInstance : Decremented (--a) integer local variable number 4 → KILLED
        for (Constructor constructor: implClass.getConstructors()) {
96 9 1. newInstance : removed conditional - replaced equality check with true → SURVIVED
2. newInstance : equal to less than → SURVIVED
3. newInstance : equal to less or equal → SURVIVED
4. newInstance : negated conditional → KILLED
5. newInstance : removed call to java/lang/reflect/Constructor::isAnnotationPresent → KILLED
6. newInstance : removed conditional - replaced equality check with false → KILLED
7. newInstance : equal to greater than → KILLED
8. newInstance : equal to greater or equal → KILLED
9. newInstance : equal to not equal → KILLED
            if (constructor.isAnnotationPresent(Inject.class)) {
97
98 1 1. newInstance : removed call to java/lang/reflect/Constructor::getParameterTypes → KILLED
                Class[] parameterTypes = constructor.getParameterTypes();
99
                Object[] objArr = new Object[parameterTypes.length];
100
101 5 1. newInstance : Substituted 0 with 1 → KILLED
2. newInstance : Substituted 0 with 1 → KILLED
3. newInstance : Substituted 0 with -1 → KILLED
4. newInstance : Substituted 0 with 1 → KILLED
5. newInstance : Substituted 0 with -1 → KILLED
                int i = 0;
102
103 15 1. newInstance : Negated integer local variable number 11 → SURVIVED
2. newInstance : Incremented (a++) integer local variable number 11 → SURVIVED
3. newInstance : Decremented (a--) integer local variable number 10 → SURVIVED
4. newInstance : Negated integer local variable number 11 → KILLED
5. newInstance : Negated integer local variable number 10 → KILLED
6. newInstance : Incremented (a++) integer local variable number 11 → KILLED
7. newInstance : Incremented (a++) integer local variable number 10 → KILLED
8. newInstance : Decremented (a--) integer local variable number 11 → KILLED
9. newInstance : Decremented (a--) integer local variable number 11 → KILLED
10. newInstance : Incremented (++a) integer local variable number 11 → KILLED
11. newInstance : Incremented (++a) integer local variable number 10 → KILLED
12. newInstance : Incremented (++a) integer local variable number 11 → KILLED
13. newInstance : Decremented (--a) integer local variable number 11 → KILLED
14. newInstance : Decremented (--a) integer local variable number 10 → KILLED
15. newInstance : Decremented (--a) integer local variable number 11 → KILLED
                for(Class c : parameterTypes) {
104 8 1. newInstance : Changed increment from 1 to -1 → SURVIVED
2. newInstance : Removed increment 1 → SURVIVED
3. newInstance : Negated integer local variable number 8 → SURVIVED
4. newInstance : Incremented (a++) integer local variable number 8 → SURVIVED
5. newInstance : Decremented (a--) integer local variable number 8 → SURVIVED
6. newInstance : removed call to fi/eis/libraries/di/Module::get → KILLED
7. newInstance : Incremented (++a) integer local variable number 8 → KILLED
8. newInstance : Decremented (--a) integer local variable number 8 → KILLED
                    objArr[i++] = get(c);
105
                }
106
107 3 1. newInstance : removed call to java/lang/reflect/Constructor::newInstance → KILLED
2. newInstance : replaced return value with null for fi/eis/libraries/di/Module::newInstance → KILLED
3. newInstance : mutated return of Object value for fi/eis/libraries/di/Module::newInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return constructor.newInstance(objArr);
108
            }
109
        }
110 3 1. newInstance : removed call to java/lang/Class::newInstance → KILLED
2. newInstance : replaced return value with null for fi/eis/libraries/di/Module::newInstance → KILLED
3. newInstance : mutated return of Object value for fi/eis/libraries/di/Module::newInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return implClass.newInstance();
111
    }
112
    @Override
113
    public String toString() {
114 14 1. toString : replaced return value with "" for fi/eis/libraries/di/Module::toString → SURVIVED
2. toString : removed call to java/lang/Object::getClass → SURVIVED
3. toString : removed call to java/lang/Object::toString → SURVIVED
4. toString : removed call to java/lang/StringBuilder::toString → SURVIVED
5. toString : mutated return of Object value for fi/eis/libraries/di/Module::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED
6. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
7. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
8. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
9. toString : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
10. toString : removed call to java/lang/StringBuilder::<init> → KILLED
11. toString : removed call to java/lang/StringBuilder::append → KILLED
12. toString : removed call to java/lang/StringBuilder::append → KILLED
13. toString : removed call to java/lang/StringBuilder::append → KILLED
14. toString : removed call to java/lang/StringBuilder::append → KILLED
        return this.getClass() + " [providers=" + providers.toString() + "]";
115
    }
116
}

Mutations

22

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/util/HashMap::<init> → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Removed assignment to member variable providers → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/util/HashMap::<init> → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
Removed assignment to member variable providers → KILLED

5.5
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/HashMap::<init> → KILLED

6.6
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Removed assignment to member variable providers → KILLED

24

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 4 → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 3 → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 4 → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (a++) integer local variable number 4 → KILLED

5.5
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (a++) integer local variable number 3 → KILLED

6.6
Location : <init>
Killed by : none
Incremented (a++) integer local variable number 4 → SURVIVED

7.7
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (a--) integer local variable number 4 → KILLED

8.8
Location : <init>
Killed by : none
Decremented (a--) integer local variable number 3 → SURVIVED

9.9
Location : <init>
Killed by : none
Decremented (a--) integer local variable number 4 → TIMED_OUT

10.10
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 4 → KILLED

11.11
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 3 → KILLED

12.12
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 4 → KILLED

13.13
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 4 → KILLED

14.14
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 3 → KILLED

15.15
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 4 → KILLED

25

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced call to java/util/Map::put with argument → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map::put → KILLED

30

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/util/Map::put with argument → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/util/Map::put → KILLED

34

1.1
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/util/Map::entrySet → KILLED

36

1.1
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
replaced call to java/util/Map::put with argument → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/util/Map$Entry::getKey → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/util/Map$Entry::getValue → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/util/Map::put → KILLED

44

1.1
Location : add
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map::putAll → KILLED

49

1.1
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map::keySet → KILLED

51

1.1
Location : has
Killed by : none
negated conditional → SURVIVED

2.2
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/Class::isAssignableFrom → KILLED

3.3
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : has
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

5.5
Location : has
Killed by : none
equal to less than → SURVIVED

6.6
Location : has
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : has
Killed by : none
equal to greater than → SURVIVED

8.8
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater or equal → KILLED

9.9
Location : has
Killed by : none
equal to not equal → SURVIVED

52

1.1
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced boolean return with false for fi/eis/libraries/di/Module::has → KILLED

2.2
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 1 with 0 → KILLED

3.3
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

4.4
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 1 with 0 → KILLED

5.5
Location : has
Killed by : none
Substituted 1 with -1 → SURVIVED

6.6
Location : has
Killed by : none
Substituted 1 with -1 → SURVIVED

7.7
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 1 with 2 → KILLED

8.8
Location : has
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 1 with 0 → KILLED

55

1.1
Location : has
Killed by : none
replaced boolean return with true for fi/eis/libraries/di/Module::has → NO_COVERAGE

2.2
Location : has
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

3.3
Location : has
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE

4.4
Location : has
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

5.5
Location : has
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

6.6
Location : has
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

7.7
Location : has
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

58

1.1
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map::keySet → KILLED

59

1.1
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
negated conditional → KILLED

2.2
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/Class::isAssignableFrom → KILLED

3.3
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to less than → KILLED

6.6
Location : getImplClassFor
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater than → KILLED

8.8
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater or equal → KILLED

9.9
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to not equal → KILLED

60

1.1
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return value with null for fi/eis/libraries/di/Module::getImplClassFor → KILLED

2.2
Location : getImplClassFor
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
mutated return of Object value for fi/eis/libraries/di/Module::getImplClassFor to ( if (x != null) null else throw new RuntimeException ) → KILLED

63

1.1
Location : getImplClassFor
Killed by : none
removed call to java/lang/StringBuilder::<init> → NO_COVERAGE

2.2
Location : getImplClassFor
Killed by : none
removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE

3.3
Location : getImplClassFor
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

4.4
Location : getImplClassFor
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

5.5
Location : getImplClassFor
Killed by : none
removed call to java/lang/StringBuilder::toString → NO_COVERAGE

6.6
Location : getImplClassFor
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

7.7
Location : getImplClassFor
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

66

1.1
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map::entrySet → KILLED

67

1.1
Location : getInstance
Killed by : fi.eis.libraries.di.DIInheritanceTest.testDi(fi.eis.libraries.di.DIInheritanceTest)
negated conditional → KILLED

2.2
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map$Entry::getKey → KILLED

3.3
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/Class::isAssignableFrom → KILLED

4.4
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with false → KILLED

5.5
Location : getInstance
Killed by : fi.eis.libraries.di.DIInheritanceTest.testDi(fi.eis.libraries.di.DIInheritanceTest)
removed conditional - replaced equality check with true → KILLED

6.6
Location : getInstance
Killed by : fi.eis.libraries.di.DIInheritanceTest.testDi(fi.eis.libraries.di.DIInheritanceTest)
equal to less than → KILLED

7.7
Location : getInstance
Killed by : none
equal to less or equal → SURVIVED

8.8
Location : getInstance
Killed by : fi.eis.libraries.di.DIInheritanceTest.testDi(fi.eis.libraries.di.DIInheritanceTest)
equal to greater than → KILLED

9.9
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater or equal → KILLED

10.10
Location : getInstance
Killed by : fi.eis.libraries.di.DIInheritanceTest.testDi(fi.eis.libraries.di.DIInheritanceTest)
equal to not equal → KILLED

68

1.1
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/util/Map$Entry::getValue → KILLED

2.2
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return value with null for fi/eis/libraries/di/Module::getInstance → KILLED

3.3
Location : getInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
mutated return of Object value for fi/eis/libraries/di/Module::getInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED

71

1.1
Location : getInstance
Killed by : none
removed call to java/lang/StringBuilder::<init> → NO_COVERAGE

2.2
Location : getInstance
Killed by : none
removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE

3.3
Location : getInstance
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

4.4
Location : getInstance
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

5.5
Location : getInstance
Killed by : none
removed call to java/lang/StringBuilder::toString → NO_COVERAGE

6.6
Location : getInstance
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

7.7
Location : getInstance
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

75

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
negated conditional → KILLED

2.2
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to fi/eis/libraries/di/Module::has → KILLED

3.3
Location : get
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

4.4
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
not equal to less than → KILLED

6.6
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
not equal to less or equal → KILLED

7.7
Location : get
Killed by : none
not equal to greater than → SURVIVED

8.8
Location : get
Killed by : none
not equal to greater or equal → SURVIVED

9.9
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
not equal to equal → KILLED

76

1.1
Location : get
Killed by : none
removed call to java/lang/StringBuilder::<init> → NO_COVERAGE

2.2
Location : get
Killed by : none
removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE

3.3
Location : get
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

4.4
Location : get
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

5.5
Location : get
Killed by : none
removed call to java/lang/StringBuilder::toString → NO_COVERAGE

6.6
Location : get
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

7.7
Location : get
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

78

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to fi/eis/libraries/di/Module::getInstance → KILLED

79

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
negated conditional → KILLED

2.2
Location : get
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed conditional - replaced equality check with false → KILLED

3.3
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with true → KILLED

4.4
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to not equal → KILLED

80

1.1
Location : get
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
replaced return value with null for fi/eis/libraries/di/Module::get → KILLED

2.2
Location : get
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
mutated return of Object value for fi/eis/libraries/di/Module::get to ( if (x != null) null else throw new RuntimeException ) → KILLED

83

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced call to fi/eis/libraries/di/Module::getImplClassFor with argument → KILLED

2.2
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to fi/eis/libraries/di/Module::getImplClassFor → KILLED

84

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to fi/eis/libraries/di/Module::newInstance → KILLED

85

1.1
Location : get
Killed by : none
replaced call to java/util/Map::put with argument → SURVIVED

2.2
Location : get
Killed by : none
removed call to java/util/Map::put → SURVIVED

86

1.1
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return value with null for fi/eis/libraries/di/Module::get → KILLED

2.2
Location : get
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
mutated return of Object value for fi/eis/libraries/di/Module::get to ( if (x != null) null else throw new RuntimeException ) → KILLED

88

1.1
Location : get
Killed by : none
removed call to java/lang/IllegalStateException::<init> → NO_COVERAGE

95

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Changed increment from 1 to -1 → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/Class::getConstructors → KILLED

3.3
Location : newInstance
Killed by : none
Removed increment 1 → TIMED_OUT

4.4
Location : newInstance
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Negated integer local variable number 4 → KILLED

5.5
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 3 → KILLED

6.6
Location : newInstance
Killed by : none
Negated integer local variable number 4 → SURVIVED

7.7
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (a++) integer local variable number 4 → KILLED

8.8
Location : newInstance
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (a++) integer local variable number 3 → KILLED

9.9
Location : newInstance
Killed by : none
Incremented (a++) integer local variable number 4 → SURVIVED

10.10
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (a--) integer local variable number 4 → KILLED

11.11
Location : newInstance
Killed by : none
Decremented (a--) integer local variable number 3 → SURVIVED

12.12
Location : newInstance
Killed by : none
Decremented (a--) integer local variable number 4 → TIMED_OUT

13.13
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 4 → KILLED

14.14
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 3 → KILLED

15.15
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 4 → KILLED

16.16
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 4 → KILLED

17.17
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 3 → KILLED

18.18
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 4 → KILLED

96

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
negated conditional → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/reflect/Constructor::isAnnotationPresent → KILLED

3.3
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : newInstance
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

5.5
Location : newInstance
Killed by : none
equal to less than → SURVIVED

6.6
Location : newInstance
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater than → KILLED

8.8
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to greater or equal → KILLED

9.9
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
equal to not equal → KILLED

98

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/reflect/Constructor::getParameterTypes → KILLED

101

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 0 with 1 → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 0 with 1 → KILLED

3.3
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 0 with -1 → KILLED

4.4
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 0 with 1 → KILLED

5.5
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Substituted 0 with -1 → KILLED

103

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 11 → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Negated integer local variable number 10 → KILLED

3.3
Location : newInstance
Killed by : none
Negated integer local variable number 11 → SURVIVED

4.4
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (a++) integer local variable number 11 → KILLED

5.5
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (a++) integer local variable number 10 → KILLED

6.6
Location : newInstance
Killed by : none
Incremented (a++) integer local variable number 11 → SURVIVED

7.7
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (a--) integer local variable number 11 → KILLED

8.8
Location : newInstance
Killed by : none
Decremented (a--) integer local variable number 10 → SURVIVED

9.9
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (a--) integer local variable number 11 → KILLED

10.10
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 11 → KILLED

11.11
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 10 → KILLED

12.12
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 11 → KILLED

13.13
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 11 → KILLED

14.14
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 10 → KILLED

15.15
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 11 → KILLED

104

1.1
Location : newInstance
Killed by : none
Changed increment from 1 to -1 → SURVIVED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to fi/eis/libraries/di/Module::get → KILLED

3.3
Location : newInstance
Killed by : none
Removed increment 1 → SURVIVED

4.4
Location : newInstance
Killed by : none
Negated integer local variable number 8 → SURVIVED

5.5
Location : newInstance
Killed by : none
Incremented (a++) integer local variable number 8 → SURVIVED

6.6
Location : newInstance
Killed by : none
Decremented (a--) integer local variable number 8 → SURVIVED

7.7
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Incremented (++a) integer local variable number 8 → KILLED

8.8
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
Decremented (--a) integer local variable number 8 → KILLED

107

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/reflect/Constructor::newInstance → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return value with null for fi/eis/libraries/di/Module::newInstance → KILLED

3.3
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
mutated return of Object value for fi/eis/libraries/di/Module::newInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED

110

1.1
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
removed call to java/lang/Class::newInstance → KILLED

2.2
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
replaced return value with null for fi/eis/libraries/di/Module::newInstance → KILLED

3.3
Location : newInstance
Killed by : fi.eis.libraries.di.DIConstructorTest.testDi(fi.eis.libraries.di.DIConstructorTest)
mutated return of Object value for fi/eis/libraries/di/Module::newInstance to ( if (x != null) null else throw new RuntimeException ) → KILLED

114

1.1
Location : toString
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/lang/StringBuilder::<init> → KILLED

2.2
Location : toString
Killed by : none
replaced return value with "" for fi/eis/libraries/di/Module::toString → SURVIVED

3.3
Location : toString
Killed by : none
removed call to java/lang/Object::getClass → SURVIVED

4.4
Location : toString
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/lang/StringBuilder::append → KILLED

5.5
Location : toString
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/lang/StringBuilder::append → KILLED

6.6
Location : toString
Killed by : none
removed call to java/lang/Object::toString → SURVIVED

7.7
Location : toString
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/lang/StringBuilder::append → KILLED

8.8
Location : toString
Killed by : fi.eis.libraries.di.JavaConfigTest.testJavaConfig(fi.eis.libraries.di.JavaConfigTest)
removed call to java/lang/StringBuilder::append → KILLED

9.9
Location : toString
Killed by : none
removed call to java/lang/StringBuilder::toString → SURVIVED

10.10
Location : toString
Killed by : none
mutated return of Object value for fi/eis/libraries/di/Module::toString to ( if (x != null) null else throw new RuntimeException ) → SURVIVED

11.11
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

12.12
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

13.13
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

14.14
Location : toString
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.6.7