CommentProcessors.java

1
package pro.verron.officestamper.core;
2
3
import pro.verron.officestamper.api.*;
4
5
import java.util.AbstractMap;
6
import java.util.Map;
7
import java.util.Set;
8
9
public class CommentProcessors
10
        extends AbstractMap<Class<?>, CommentProcessor> {
11
12
    private final Map<Class<?>, CommentProcessor> processors;
13
14
    public CommentProcessors(Map<Class<?>, CommentProcessor> processors) {
15
        this.processors = processors;
16
    }
17
18
    public void setContext(ProcessorContext context) {
19
        for (var processor : processors.values()) {
20 1 1. setContext : removed call to pro/verron/officestamper/api/CommentProcessor::setProcessorContext → KILLED
            processor.setProcessorContext(context);
21
        }
22
    }
23
24
    void commitChanges(DocxPart source) {
25
        for (var processor : processors.values()) {
26 1 1. commitChanges : removed call to pro/verron/officestamper/api/CommentProcessor::commitChanges → KILLED
            processor.commitChanges(source);
27 1 1. commitChanges : removed call to pro/verron/officestamper/api/CommentProcessor::reset → KILLED
            processor.reset();
28
        }
29
    }
30
31
    @Override public Set<Entry<Class<?>, CommentProcessor>> entrySet() {
32 1 1. entrySet : replaced return value with Collections.emptySet for pro/verron/officestamper/core/CommentProcessors::entrySet → KILLED
        return processors.entrySet();
33
    }
34
}

Mutations

20

1.1
Location : setContext
Killed by : pro.verron.officestamper.test.DefaultTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.DefaultTests]/[test-template:features(java.lang.String, pro.verron.officestamper.api.OfficeStamperConfiguration, java.lang.Object, java.io.InputStream, java.lang.String)]/[test-template-invocation:#22]
removed call to pro/verron/officestamper/api/CommentProcessor::setProcessorContext → KILLED

26

1.1
Location : commitChanges
Killed by : pro.verron.officestamper.test.DefaultTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.DefaultTests]/[test-template:features(java.lang.String, pro.verron.officestamper.api.OfficeStamperConfiguration, java.lang.Object, java.io.InputStream, java.lang.String)]/[test-template-invocation:#22]
removed call to pro/verron/officestamper/api/CommentProcessor::commitChanges → KILLED

27

1.1
Location : commitChanges
Killed by : pro.verron.officestamper.test.DefaultTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.DefaultTests]/[test-template:features(java.lang.String, pro.verron.officestamper.api.OfficeStamperConfiguration, java.lang.Object, java.io.InputStream, java.lang.String)]/[test-template-invocation:#3]
removed call to pro/verron/officestamper/api/CommentProcessor::reset → KILLED

32

1.1
Location : entrySet
Killed by : pro.verron.officestamper.test.DefaultTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.DefaultTests]/[test-template:features(java.lang.String, pro.verron.officestamper.api.OfficeStamperConfiguration, java.lang.Object, java.io.InputStream, java.lang.String)]/[test-template-invocation:#22]
replaced return value with Collections.emptySet for pro/verron/officestamper/core/CommentProcessors::entrySet → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.1