PropertyFileReader.java

1
package org.europa.together.application;
2
3
import java.io.BufferedReader;
4
import java.io.IOException;
5
import java.io.InputStreamReader;
6
import java.io.UnsupportedEncodingException;
7
import java.nio.file.Files;
8
import java.nio.file.Paths;
9
import java.util.HashMap;
10
import java.util.List;
11
import java.util.Map;
12
import java.util.stream.Collectors;
13
import java.util.stream.Stream;
14
import org.europa.together.business.Logger;
15
import org.europa.together.business.PropertyReader;
16
import org.europa.together.domain.LogLevel;
17
import org.europa.together.exceptions.MisconfigurationException;
18
import org.springframework.context.ApplicationContext;
19
import org.springframework.context.support.ClassPathXmlApplicationContext;
20
import org.springframework.stereotype.Repository;
21
22
/**
23
 * Implementation of the Property Reader.
24
 */
25
@Repository
26
public class PropertyFileReader implements PropertyReader {
27
28
    private static final long serialVersionUID = 4L;
29
    private static final Logger LOGGER = new LogbackLogger(PropertyFileReader.class);
30
31
    private Map<String, String> propertyList = new HashMap<>();
32
33
    /**
34
     * Constructor.
35
     */
36
    public PropertyFileReader() {
37
        LOGGER.log("instance class", LogLevel.INFO);
38
    }
39
40
    @Override
41
    public boolean addProperty(final String key, final String value) {
42
        boolean success = false;
43
        try {
44
            this.lookupForPropertyKey(key);
45
        } catch (Exception ex) {
46
            propertyList.put(key, value);
47
            LOGGER.catchException(ex);
48
            success = true;
49
        }
50 2 1. addProperty : replaced boolean return with true for org/europa/together/application/PropertyFileReader::addProperty → KILLED
2. addProperty : replaced boolean return with false for org/europa/together/application/PropertyFileReader::addProperty → KILLED
        return success;
51
    }
52
53
    @Override
54
    public boolean addPropertyList(final Map<String, String> resource) {
55
        boolean success = false;
56
        int sizeOrginalList = propertyList.size();
57
        int sizeNewList = resource.size();
58 1 1. addPropertyList : Replaced integer addition with subtraction → KILLED
        int size = sizeOrginalList + sizeNewList;
59 1 1. addPropertyList : removed call to java/util/Map::putAll → KILLED
        propertyList.putAll(resource);
60 2 1. addPropertyList : changed conditional boundary → KILLED
2. addPropertyList : negated conditional → KILLED
        if (size > sizeOrginalList) {
61
            success = true;
62
            LOGGER.log(sizeNewList + " Properties appended.", LogLevel.DEBUG);
63
        } else {
64
            LOGGER.log("Could not append Properties. Size Original List: "
65
                    + sizeOrginalList + " : Size New List: " + sizeNewList, LogLevel.WARN);
66
        }
67 2 1. addPropertyList : replaced boolean return with true for org/europa/together/application/PropertyFileReader::addPropertyList → KILLED
2. addPropertyList : replaced boolean return with false for org/europa/together/application/PropertyFileReader::addPropertyList → KILLED
        return success;
68
    }
69
70
    @Override
71
    public boolean appendPropertiesFromClasspath(final String resource)
72
            throws UnsupportedEncodingException, IOException {
73
        boolean success = false;
74
        ApplicationContext context = new ClassPathXmlApplicationContext();
75
        BufferedReader reader = new BufferedReader(
76
                new InputStreamReader(
77
                        context.getResource(resource).getInputStream(), "UTF8")
78
        );
79
        String line;
80
        int count = 1;
81 1 1. appendPropertiesFromClasspath : negated conditional → KILLED
        while ((line = reader.readLine()) != null) {
82
            String test = line;
83 2 1. appendPropertiesFromClasspath : negated conditional → KILLED
2. appendPropertiesFromClasspath : negated conditional → KILLED
            if (test.isEmpty() || test.charAt(0) == '#') {
84
                continue;
85
            }
86
            String[] parts = test.split("=");
87
            String key = parts[0];
88
            String value = "";
89 1 1. appendPropertiesFromClasspath : negated conditional → KILLED
            if (parts.length == 2) {
90
                value = parts[1];
91
            }
92
            propertyList.put(key, value);
93 1 1. appendPropertiesFromClasspath : Changed increment from 1 to -1 → SURVIVED
            count++;
94
        }
95 1 1. appendPropertiesFromClasspath : removed call to java/io/BufferedReader::close → SURVIVED
        reader.close();
96
        String logMsg = "readPropertyFromClasspath(" + resource + ") "
97
                + count + " Properties read.";
98
        LOGGER.log(logMsg, LogLevel.DEBUG);
99
        success = true;
100 1 1. appendPropertiesFromClasspath : removed call to org/europa/together/application/PropertyFileReader::printPropertyList → SURVIVED
        this.printPropertyList();
101 2 1. appendPropertiesFromClasspath : replaced boolean return with false for org/europa/together/application/PropertyFileReader::appendPropertiesFromClasspath → SURVIVED
2. appendPropertiesFromClasspath : replaced boolean return with true for org/europa/together/application/PropertyFileReader::appendPropertiesFromClasspath → SURVIVED
        return success;
102
    }
103
104
    @Override
105
    public boolean appendPropertiesFromFile(final String resource)
106
            throws IOException {
107
        boolean success = false;
108
        Stream<String> stream = Files.lines(Paths.get(resource));
109
        List<String> content = stream
110 2 1. lambda$appendPropertiesFromFile$0 : negated conditional → KILLED
2. lambda$appendPropertiesFromFile$0 : replaced boolean return with true for org/europa/together/application/PropertyFileReader::lambda$appendPropertiesFromFile$0 → KILLED
                .filter(line -> !line.startsWith("#"))
111 2 1. lambda$appendPropertiesFromFile$1 : negated conditional → KILLED
2. lambda$appendPropertiesFromFile$1 : replaced boolean return with true for org/europa/together/application/PropertyFileReader::lambda$appendPropertiesFromFile$1 → KILLED
                .filter(line -> !line.isEmpty())
112
                .collect(Collectors.toList());
113
        int count = 1;
114
        for (String entry : content) {
115
            String[] parts = entry.split("=");
116
            String key = parts[0];
117
            String value = "";
118 1 1. appendPropertiesFromFile : negated conditional → KILLED
            if (parts.length == 2) {
119
                value = parts[1];
120
            }
121
            propertyList.put(key, value);
122 1 1. appendPropertiesFromFile : Changed increment from 1 to -1 → SURVIVED
            count++;
123
        }
124
        String logMsg = "readPropertyFromFile(" + resource + ") "
125
                + count + " Properties read.";
126
        LOGGER.log(logMsg, LogLevel.DEBUG);
127
        success = true;
128 1 1. appendPropertiesFromFile : removed call to org/europa/together/application/PropertyFileReader::printPropertyList → SURVIVED
        this.printPropertyList();
129 2 1. appendPropertiesFromFile : replaced boolean return with true for org/europa/together/application/PropertyFileReader::appendPropertiesFromFile → SURVIVED
2. appendPropertiesFromFile : replaced boolean return with false for org/europa/together/application/PropertyFileReader::appendPropertiesFromFile → SURVIVED
        return success;
130
    }
131
132
    @Override
133
    public boolean clear() {
134
        boolean success = false;
135 1 1. clear : negated conditional → KILLED
        if (propertyList.isEmpty()) {
136
            LOGGER.log("PropertyList is EMPTY, nothing to remove.", LogLevel.WARN);
137
        } else {
138 1 1. clear : removed call to java/util/Map::clear → KILLED
            propertyList.clear();
139
            success = true;
140
            LOGGER.log("PropertyList cleaned.", LogLevel.TRACE);
141
        }
142 2 1. clear : replaced boolean return with true for org/europa/together/application/PropertyFileReader::clear → SURVIVED
2. clear : replaced boolean return with false for org/europa/together/application/PropertyFileReader::clear → SURVIVED
        return success;
143
    }
144
145
    @Override
146
    public boolean removeProperty(final String key) {
147
        boolean success = false;
148
        try {
149
            this.lookupForPropertyKey(key);
150
            propertyList.remove(key);
151
            success = true;
152
            LOGGER.log(key + " successful removed.", LogLevel.DEBUG);
153
        } catch (Exception ex) {
154
            LOGGER.catchException(ex);
155
        }
156 2 1. removeProperty : replaced boolean return with true for org/europa/together/application/PropertyFileReader::removeProperty → KILLED
2. removeProperty : replaced boolean return with false for org/europa/together/application/PropertyFileReader::removeProperty → KILLED
        return success;
157
    }
158
159
    @Override
160
    public boolean updateProperty(final String key, final String value) {
161
        try {
162
            this.lookupForPropertyKey(key);
163
            propertyList.put(key, value);
164
            LOGGER.log("Entry " + key + " will be updated.", LogLevel.INFO);
165
        } catch (Exception ex) {
166
            LOGGER.catchException(ex);
167
            propertyList.put(key, value);
168
        }
169 1 1. updateProperty : replaced boolean return with false for org/europa/together/application/PropertyFileReader::updateProperty → KILLED
        return true;
170
    }
171
172
    @Override
173
    public int count() {
174 1 1. count : replaced int return with 0 for org/europa/together/application/PropertyFileReader::count → KILLED
        return propertyList.size();
175
    }
176
177
    @Override
178
    public Boolean getPropertyAsBoolean(final String key)
179
            throws MisconfigurationException {
180
        this.lookupForPropertyKey(key);
181 1 1. getPropertyAsBoolean : negated conditional → KILLED
        if (propertyList.get(key).matches("true|false|TRUE|FALSE|0")) {
182 2 1. getPropertyAsBoolean : replaced Boolean return with False for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED
2. getPropertyAsBoolean : replaced Boolean return with True for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED
            return Boolean.parseBoolean(propertyList.get(key));
183 1 1. getPropertyAsBoolean : negated conditional → KILLED
        } else if (propertyList.get(key).equals("1")) {
184 1 1. getPropertyAsBoolean : replaced Boolean return with False for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED
            return true;
185
        } else {
186
            throw new MisconfigurationException(key + " is not a Boolean value. ("
187
                    + propertyList.get(key) + ")");
188
        }
189
    }
190
191
    @Override
192
    public Double getPropertyAsDouble(final String key)
193
            throws MisconfigurationException {
194
        this.lookupForPropertyKey(key);
195 1 1. getPropertyAsDouble : replaced Double return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsDouble → KILLED
        return Double.parseDouble(propertyList.get(key));
196
    }
197
198
    @Override
199
    public Float getPropertyAsFloat(final String key)
200
            throws MisconfigurationException {
201
        this.lookupForPropertyKey(key);
202 1 1. getPropertyAsFloat : replaced Float return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsFloat → KILLED
        return Float.parseFloat(propertyList.get(key));
203
    }
204
205
    @Override
206
    public Integer getPropertyAsInt(final String key)
207
            throws MisconfigurationException {
208
        this.lookupForPropertyKey(key);
209 1 1. getPropertyAsInt : replaced Integer return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsInt → KILLED
        return Integer.parseInt(propertyList.get(key));
210
    }
211
212
    @Override
213
    public String getPropertyAsString(final String key)
214
            throws MisconfigurationException {
215
        this.lookupForPropertyKey(key);
216 1 1. getPropertyAsString : replaced return value with "" for org/europa/together/application/PropertyFileReader::getPropertyAsString → KILLED
        return propertyList.get(key);
217
    }
218
219
    @Override
220
    public Map<String, String> getPropertyList() {
221 1 1. getPropertyList : replaced return value with Collections.emptyMap for org/europa/together/application/PropertyFileReader::getPropertyList → KILLED
        return Map.copyOf(propertyList);
222
    }
223
224
    private void printPropertyList() {
225
        LOGGER.log(propertyList.toString(), LogLevel.TRACE);
226
    }
227
228
    private boolean lookupForPropertyKey(final String key)
229
            throws MisconfigurationException {
230
        boolean success = false;
231 1 1. lookupForPropertyKey : negated conditional → KILLED
        if (propertyList.containsKey(key)) {
232
            success = true;
233
        } else {
234
            LOGGER.log("Property Entry " + key + " don't exist.", LogLevel.WARN);
235
            throw new MisconfigurationException(
236
                    "Configuration entry in property file not found.");
237
        }
238 2 1. lookupForPropertyKey : replaced boolean return with false for org/europa/together/application/PropertyFileReader::lookupForPropertyKey → SURVIVED
2. lookupForPropertyKey : replaced boolean return with true for org/europa/together/application/PropertyFileReader::lookupForPropertyKey → SURVIVED
        return success;
239
    }
240
}

Mutations

50

1.1
Location : addProperty
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddProperty()]
replaced boolean return with true for org/europa/together/application/PropertyFileReader::addProperty → KILLED

2.2
Location : addProperty
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:addProperty()]
replaced boolean return with false for org/europa/together/application/PropertyFileReader::addProperty → KILLED

58

1.1
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
Replaced integer addition with subtraction → KILLED

59

1.1
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:addPropertyList()]
removed call to java/util/Map::putAll → KILLED

60

1.1
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
changed conditional boundary → KILLED

2.2
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
negated conditional → KILLED

67

1.1
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
replaced boolean return with true for org/europa/together/application/PropertyFileReader::addPropertyList → KILLED

2.2
Location : addPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
replaced boolean return with false for org/europa/together/application/PropertyFileReader::addPropertyList → KILLED

81

1.1
Location : appendPropertiesFromClasspath
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
negated conditional → KILLED

83

1.1
Location : appendPropertiesFromClasspath
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
negated conditional → KILLED

2.2
Location : appendPropertiesFromClasspath
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
negated conditional → KILLED

89

1.1
Location : appendPropertiesFromClasspath
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
negated conditional → KILLED

93

1.1
Location : appendPropertiesFromClasspath
Killed by : none
Changed increment from 1 to -1 → SURVIVED
Covering tests

95

1.1
Location : appendPropertiesFromClasspath
Killed by : none
removed call to java/io/BufferedReader::close → SURVIVED
Covering tests

100

1.1
Location : appendPropertiesFromClasspath
Killed by : none
removed call to org/europa/together/application/PropertyFileReader::printPropertyList → SURVIVED
Covering tests

101

1.1
Location : appendPropertiesFromClasspath
Killed by : none
replaced boolean return with false for org/europa/together/application/PropertyFileReader::appendPropertiesFromClasspath → SURVIVED
Covering tests

2.2
Location : appendPropertiesFromClasspath
Killed by : none
replaced boolean return with true for org/europa/together/application/PropertyFileReader::appendPropertiesFromClasspath → SURVIVED Covering tests

110

1.1
Location : lambda$appendPropertiesFromFile$0
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:appendPropertiesFromExternalFile()]
negated conditional → KILLED

2.2
Location : lambda$appendPropertiesFromFile$0
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:appendPropertiesFromExternalFile()]
replaced boolean return with true for org/europa/together/application/PropertyFileReader::lambda$appendPropertiesFromFile$0 → KILLED

111

1.1
Location : lambda$appendPropertiesFromFile$1
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:appendPropertiesFromExternalFile()]
negated conditional → KILLED

2.2
Location : lambda$appendPropertiesFromFile$1
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:appendPropertiesFromExternalFile()]
replaced boolean return with true for org/europa/together/application/PropertyFileReader::lambda$appendPropertiesFromFile$1 → KILLED

118

1.1
Location : appendPropertiesFromFile
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:appendPropertiesFromExternalFile()]
negated conditional → KILLED

122

1.1
Location : appendPropertiesFromFile
Killed by : none
Changed increment from 1 to -1 → SURVIVED
Covering tests

128

1.1
Location : appendPropertiesFromFile
Killed by : none
removed call to org/europa/together/application/PropertyFileReader::printPropertyList → SURVIVED
Covering tests

129

1.1
Location : appendPropertiesFromFile
Killed by : none
replaced boolean return with true for org/europa/together/application/PropertyFileReader::appendPropertiesFromFile → SURVIVED
Covering tests

2.2
Location : appendPropertiesFromFile
Killed by : none
replaced boolean return with false for org/europa/together/application/PropertyFileReader::appendPropertiesFromFile → SURVIVED Covering tests

135

1.1
Location : clear
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:addPropertyList()]
negated conditional → KILLED

138

1.1
Location : clear
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failAddEmptyPropertyList()]
removed call to java/util/Map::clear → KILLED

142

1.1
Location : clear
Killed by : none
replaced boolean return with true for org/europa/together/application/PropertyFileReader::clear → SURVIVED
Covering tests

2.2
Location : clear
Killed by : none
replaced boolean return with false for org/europa/together/application/PropertyFileReader::clear → SURVIVED Covering tests

156

1.1
Location : removeProperty
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failRemoveProperty()]
replaced boolean return with true for org/europa/together/application/PropertyFileReader::removeProperty → KILLED

2.2
Location : removeProperty
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:removeProperty()]
replaced boolean return with false for org/europa/together/application/PropertyFileReader::removeProperty → KILLED

169

1.1
Location : updateProperty
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:failUpdateProperty()]
replaced boolean return with false for org/europa/together/application/PropertyFileReader::updateProperty → KILLED

174

1.1
Location : count
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:addPropertyList()]
replaced int return with 0 for org/europa/together/application/PropertyFileReader::count → KILLED

181

1.1
Location : getPropertyAsBoolean
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsBoolean()]
negated conditional → KILLED

182

1.1
Location : getPropertyAsBoolean
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsBoolean()]
replaced Boolean return with False for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED

2.2
Location : getPropertyAsBoolean
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsBoolean()]
replaced Boolean return with True for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED

183

1.1
Location : getPropertyAsBoolean
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsBoolean()]
negated conditional → KILLED

184

1.1
Location : getPropertyAsBoolean
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsBoolean()]
replaced Boolean return with False for org/europa/together/application/PropertyFileReader::getPropertyAsBoolean → KILLED

195

1.1
Location : getPropertyAsDouble
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsDouble()]
replaced Double return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsDouble → KILLED

202

1.1
Location : getPropertyAsFloat
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsFloat()]
replaced Float return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsFloat → KILLED

209

1.1
Location : getPropertyAsInt
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyAsInt()]
replaced Integer return value with 0 for org/europa/together/application/PropertyFileReader::getPropertyAsInt → KILLED

216

1.1
Location : getPropertyAsString
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
replaced return value with "" for org/europa/together/application/PropertyFileReader::getPropertyAsString → KILLED

221

1.1
Location : getPropertyList
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]/[method:getPropertyList()]
replaced return value with Collections.emptyMap for org/europa/together/application/PropertyFileReader::getPropertyList → KILLED

231

1.1
Location : lookupForPropertyKey
Killed by : org.europa.together.application.PropertyFileReaderTest.[engine:junit-jupiter]/[class:org.europa.together.application.PropertyFileReaderTest]
negated conditional → KILLED

238

1.1
Location : lookupForPropertyKey
Killed by : none
replaced boolean return with false for org/europa/together/application/PropertyFileReader::lookupForPropertyKey → SURVIVED
Covering tests

2.2
Location : lookupForPropertyKey
Killed by : none
replaced boolean return with true for org/europa/together/application/PropertyFileReader::lookupForPropertyKey → SURVIVED Covering tests

Active mutators

Tests examined


Report generated by PIT 1.22.0