1 | package fr.sii.ogham.spring.env; | |
2 | ||
3 | import org.springframework.core.env.Environment; | |
4 | ||
5 | import fr.sii.ogham.core.env.PropertyResolver; | |
6 | ||
7 | public class SpringEnvironmentPropertyResolver implements PropertyResolver { | |
8 | private final Environment environment; | |
9 | | |
10 | public SpringEnvironmentPropertyResolver(Environment environment) { | |
11 | super(); | |
12 | this.environment = environment; | |
13 | } | |
14 | ||
15 | @Override | |
16 | public boolean containsProperty(String key) { | |
17 |
2
1. containsProperty : replaced boolean return with false for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::containsProperty → TIMED_OUT 2. containsProperty : replaced boolean return with true for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::containsProperty → TIMED_OUT |
return environment.containsProperty(key); |
18 | } | |
19 | ||
20 | @Override | |
21 | public String getProperty(String key) { | |
22 |
1
1. getProperty : replaced return value with "" for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getProperty → TIMED_OUT |
return environment.getProperty(key); |
23 | } | |
24 | ||
25 | @Override | |
26 | public String getProperty(String key, String defaultValue) { | |
27 |
1
1. getProperty : replaced return value with "" for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getProperty → NO_COVERAGE |
return environment.getProperty(key, defaultValue); |
28 | } | |
29 | ||
30 | @Override | |
31 | public <T> T getProperty(String key, Class<T> targetType) { | |
32 |
1
1. getProperty : replaced return value with null for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getProperty → TIMED_OUT |
return environment.getProperty(key, targetType); |
33 | } | |
34 | ||
35 | @Override | |
36 | public <T> T getProperty(String key, Class<T> targetType, T defaultValue) { | |
37 |
1
1. getProperty : replaced return value with null for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getProperty → NO_COVERAGE |
return environment.getProperty(key, targetType, defaultValue); |
38 | } | |
39 | ||
40 | @Override | |
41 | public String getRequiredProperty(String key) { | |
42 |
1
1. getRequiredProperty : replaced return value with "" for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getRequiredProperty → NO_COVERAGE |
return environment.getRequiredProperty(key); |
43 | } | |
44 | ||
45 | @Override | |
46 | public <T> T getRequiredProperty(String key, Class<T> targetType) { | |
47 |
1
1. getRequiredProperty : replaced return value with null for fr/sii/ogham/spring/env/SpringEnvironmentPropertyResolver::getRequiredProperty → NO_COVERAGE |
return environment.getRequiredProperty(key, targetType); |
48 | } | |
49 | ||
50 | } | |
Mutations | ||
17 |
1.1 2.2 |
|
22 |
1.1 |
|
27 |
1.1 |
|
32 |
1.1 |
|
37 |
1.1 |
|
42 |
1.1 |
|
47 |
1.1 |