PprLangVisitor.java

1
package pro.verron.officestamper.preset.preprocessors.rmlang;
2
3
import org.docx4j.utils.TraversalUtilVisitor;
4
import org.docx4j.wml.P;
5
import org.docx4j.wml.ParaRPr;
6
7
import java.util.ArrayList;
8
import java.util.List;
9
10
public class PprLangVisitor
11
        extends TraversalUtilVisitor<P> {
12
    private final List<ParaRPr> rPrs = new ArrayList<>();
13
14
    @Override
15
    public void apply(P element, Object parent1, List<Object> siblings) {
16 1 1. apply : negated conditional → KILLED
        if (element.getPPr() != null && element.getPPr()
17 1 1. apply : negated conditional → KILLED
                                               .getRPr() != null && element.getPPr()
18
                                                                           .getRPr()
19 1 1. apply : negated conditional → KILLED
                                                                           .getLang() != null)
20
            rPrs.add(element.getPPr()
21
                            .getRPr());
22
    }
23
24
    public List<ParaRPr> getrPrs() {
25 1 1. getrPrs : replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/rmlang/PprLangVisitor::getrPrs → KILLED
        return rPrs;
26
    }
27
}

Mutations

16

1.1
Location : apply
Killed by : pro.verron.officestamper.test.SpelInstantiationTest.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.SpelInstantiationTest]/[test-template:testDateInstantiationAndResolution(pro.verron.officestamper.test.ContextFactory)]/[test-template-invocation:#2]
negated conditional → KILLED

17

1.1
Location : apply
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:#2]
negated conditional → KILLED

19

1.1
Location : apply
Killed by : pro.verron.officestamper.test.ConditionalDisplayTest.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.ConditionalDisplayTest]/[test-template:conditionalDisplayOfEndnotes(pro.verron.officestamper.test.ContextFactory)]/[test-template-invocation:#1]
negated conditional → KILLED

25

1.1
Location : getrPrs
Killed by : pro.verron.officestamper.test.ConditionalDisplayTest.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.ConditionalDisplayTest]/[test-template:conditionalDisplayOfEndnotes(pro.verron.officestamper.test.ContextFactory)]/[test-template-invocation:#1]
replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/rmlang/PprLangVisitor::getrPrs → KILLED

Active mutators

Tests examined


Report generated by PIT 1.20.0