SimpleBeanReadWrapper.java

1
package fr.sii.ogham.core.util.bean;
2
3
import static fr.sii.ogham.core.util.bean.BeanWrapperUtils.getClassName;
4
import static fr.sii.ogham.core.util.bean.BeanWrapperUtils.getReadMethods;
5
import static fr.sii.ogham.core.util.bean.BeanWrapperUtils.isInvalid;
6
7
import java.lang.reflect.Method;
8
import java.util.ArrayList;
9
import java.util.Collection;
10
import java.util.HashMap;
11
import java.util.Iterator;
12
import java.util.List;
13
import java.util.Map;
14
import java.util.Map.Entry;
15
16
import fr.sii.ogham.core.exception.util.InvalidPropertyException;
17
18
/**
19
 * Simple implementation that wraps a bean in order to access the properties of
20
 * the bean.
21
 * 
22
 * This implementation delegates the access to the properties to
23
 * {@link Accessor}s.
24
 * 
25
 * @author Aurélien Baudet
26
 *
27
 */
28
public class SimpleBeanReadWrapper implements BeanReadWrapper {
29
	private final Object bean;
30
	private final Map<String, Accessor<Object>> accessors;
31
	private final boolean failOnMissingProperty;
32
33
	/**
34
	 * Builds the map of accessors for each bean property.
35
	 * 
36
	 * If a property doesn't exist, an {@link InvalidPropertyException} is
37
	 * thrown.
38
	 * 
39
	 * @param bean
40
	 *            the bean that may have properties to access later
41
	 */
42
	public SimpleBeanReadWrapper(Object bean) {
43
		this(bean, true);
44
	}
45
46
	/**
47
	 * Builds the map of accessors for each bean property.
48
	 * 
49
	 * @param bean
50
	 *            the bean that may have properties to access later
51
	 * @param failOnMissingProperty
52
	 *            if false null is returned if the property doesn't exist, if
53
	 *            true an {@link InvalidPropertyException} is thrown if the
54
	 *            property doesn't exist
55
	 */
56
	public SimpleBeanReadWrapper(Object bean, boolean failOnMissingProperty) {
57
		super();
58
		this.bean = bean;
59
		this.accessors = new HashMap<>();
60
		this.failOnMissingProperty = failOnMissingProperty;
61 8 1. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → NO_COVERAGE
2. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → TIMED_OUT
3. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
4. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
5. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
6. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
7. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
8. <init> : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED
		initialize(bean);
62
	}
63
64
	@Override
65
	public Object getPropertyValue(String name) {
66 8 1. getPropertyValue : negated conditional → NO_COVERAGE
2. getPropertyValue : negated conditional → TIMED_OUT
3. getPropertyValue : negated conditional → KILLED
4. getPropertyValue : negated conditional → KILLED
5. getPropertyValue : negated conditional → KILLED
6. getPropertyValue : negated conditional → KILLED
7. getPropertyValue : negated conditional → KILLED
8. getPropertyValue : negated conditional → KILLED
		if (getWrappedBean() == null) {
67
			return null;
68
		}
69
70
		Accessor<Object> accessor = accessors.get(name);
71 12 1. getPropertyValue : negated conditional → SURVIVED
2. getPropertyValue : negated conditional → NO_COVERAGE
3. getPropertyValue : negated conditional → NO_COVERAGE
4. getPropertyValue : negated conditional → TIMED_OUT
5. getPropertyValue : negated conditional → TIMED_OUT
6. getPropertyValue : negated conditional → KILLED
7. getPropertyValue : negated conditional → KILLED
8. getPropertyValue : negated conditional → KILLED
9. getPropertyValue : negated conditional → KILLED
10. getPropertyValue : negated conditional → KILLED
11. getPropertyValue : negated conditional → KILLED
12. getPropertyValue : negated conditional → KILLED
		if (failOnMissingProperty && accessor == null) {
72
			throw new InvalidPropertyException("No accessor for property '" + name + "' on bean '" + getClassName(bean) + "'", bean, name);
73
		}
74
75 16 1. getPropertyValue : negated conditional → NO_COVERAGE
2. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → NO_COVERAGE
3. getPropertyValue : negated conditional → TIMED_OUT
4. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → TIMED_OUT
5. getPropertyValue : negated conditional → KILLED
6. getPropertyValue : negated conditional → KILLED
7. getPropertyValue : negated conditional → KILLED
8. getPropertyValue : negated conditional → KILLED
9. getPropertyValue : negated conditional → KILLED
10. getPropertyValue : negated conditional → KILLED
11. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
12. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
13. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
14. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
15. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
16. getPropertyValue : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED
		return accessor == null ? null : accessor.getValue();
76
	}
77
78
	@Override
79
	public List<String> getProperties() {
80 8 1. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → NO_COVERAGE
2. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → TIMED_OUT
3. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
4. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
5. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
6. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
7. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
8. getProperties : replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED
		return new ArrayList<>(accessors.keySet());
81
	}
82
83
	@Override
84
	public Object getWrappedBean() {
85 8 1. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → NO_COVERAGE
2. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → TIMED_OUT
3. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
4. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
5. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
6. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
7. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
8. getWrappedBean : replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED
		return bean;
86
	}
87
88
	@SuppressWarnings("unchecked")
89
	private void initialize(Object bean) {
90 8 1. initialize : negated conditional → NO_COVERAGE
2. initialize : negated conditional → TIMED_OUT
3. initialize : negated conditional → KILLED
4. initialize : negated conditional → KILLED
5. initialize : negated conditional → KILLED
6. initialize : negated conditional → KILLED
7. initialize : negated conditional → KILLED
8. initialize : negated conditional → KILLED
		if (bean == null) {
91
			return;
92
		}
93
94 8 1. initialize : negated conditional → NO_COVERAGE
2. initialize : negated conditional → TIMED_OUT
3. initialize : negated conditional → KILLED
4. initialize : negated conditional → KILLED
5. initialize : negated conditional → KILLED
6. initialize : negated conditional → KILLED
7. initialize : negated conditional → KILLED
8. initialize : negated conditional → KILLED
		if (isInvalid(bean)) {
95
			throw new IllegalArgumentException(getClassName(bean) + " values can't be used as bean");
96 8 1. initialize : negated conditional → NO_COVERAGE
2. initialize : negated conditional → TIMED_OUT
3. initialize : negated conditional → KILLED
4. initialize : negated conditional → KILLED
5. initialize : negated conditional → KILLED
6. initialize : negated conditional → KILLED
7. initialize : negated conditional → KILLED
8. initialize : negated conditional → KILLED
		} else if (bean instanceof Collection) {
97 2 1. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeCollection → NO_COVERAGE
2. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeCollection → KILLED
			initializeCollection((Collection<Object>) bean, accessors);
98 8 1. initialize : negated conditional → NO_COVERAGE
2. initialize : negated conditional → TIMED_OUT
3. initialize : negated conditional → KILLED
4. initialize : negated conditional → KILLED
5. initialize : negated conditional → KILLED
6. initialize : negated conditional → KILLED
7. initialize : negated conditional → KILLED
8. initialize : negated conditional → KILLED
		} else if (bean instanceof Map) {
99 2 1. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeMap → NO_COVERAGE
2. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeMap → KILLED
			initializeMap((Map<Object, Object>) bean, accessors);
100
		} else {
101 8 1. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → NO_COVERAGE
2. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → TIMED_OUT
3. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
4. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
5. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
6. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
7. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
8. initialize : removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED
			initializeBean(bean, accessors);
102
		}
103
	}
104
105
	private static void initializeCollection(Collection<Object> collection, Map<String, Accessor<Object>> accessors) {
106
		int i = 0;
107 4 1. initializeCollection : Changed increment from 1 to -1 → NO_COVERAGE
2. initializeCollection : negated conditional → NO_COVERAGE
3. initializeCollection : Changed increment from 1 to -1 → KILLED
4. initializeCollection : negated conditional → KILLED
		for (Iterator<Object> it = collection.iterator(); it.hasNext(); i++) {
108
			accessors.put(Integer.toString(i), new DirectAccessor<>(it.next()));
109
		}
110
	}
111
112
	private static void initializeMap(Map<Object, Object> map, Map<String, Accessor<Object>> accessors) {
113
		for (Entry<Object, Object> entry : map.entrySet()) {
114
			accessors.put(entry.getKey().toString(), new DirectAccessor<>(entry.getValue()));
115
		}
116
	}
117
118
	private static void initializeBean(Object bean, Map<String, Accessor<Object>> accessors) {
119
		Map<String, Method> readMethods = getReadMethods(bean);
120
		for(Entry<String, Method> entry : readMethods.entrySet()) {
121
			String name = entry.getKey();
122
			Method readMethod = entry.getValue();
123 8 1. initializeBean : negated conditional → NO_COVERAGE
2. initializeBean : negated conditional → TIMED_OUT
3. initializeBean : negated conditional → KILLED
4. initializeBean : negated conditional → KILLED
5. initializeBean : negated conditional → KILLED
6. initializeBean : negated conditional → KILLED
7. initializeBean : negated conditional → KILLED
8. initializeBean : negated conditional → KILLED
			if (readMethod != null) {
124
				accessors.put(name, new ReadMethodAccessor<>(bean, name, readMethod));
125
			}
126
		}
127
	}
128
}

Mutations

61

1.1
Location : <init>
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

2.2
Location : <init>
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

3.3
Location : <init>
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → NO_COVERAGE

4.4
Location : <init>
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

5.5
Location : <init>
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → TIMED_OUT

6.6
Location : <init>
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

7.7
Location : <init>
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

8.8
Location : <init>
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initialize → KILLED

66

1.1
Location : getPropertyValue
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

2.2
Location : getPropertyValue
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

3.3
Location : getPropertyValue
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

4.4
Location : getPropertyValue
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

5.5
Location : getPropertyValue
Killed by : none
negated conditional → TIMED_OUT

6.6
Location : getPropertyValue
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

7.7
Location : getPropertyValue
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
negated conditional → KILLED

8.8
Location : getPropertyValue
Killed by : none
negated conditional → NO_COVERAGE

71

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

2.2
Location : getPropertyValue
Killed by : none
negated conditional → TIMED_OUT

3.3
Location : getPropertyValue
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : getPropertyValue
Killed by : oghamcore.it.core.util.bean.MapBeanReadWrapperSpec
negated conditional → KILLED

5.5
Location : getPropertyValue
Killed by : none
negated conditional → NO_COVERAGE

6.6
Location : getPropertyValue
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

7.7
Location : getPropertyValue
Killed by : oghamthymeleafv3.it.ThymeleafParserTest.invalid(oghamthymeleafv3.it.ThymeleafParserTest)
negated conditional → KILLED

8.8
Location : getPropertyValue
Killed by : none
negated conditional → TIMED_OUT

9.9
Location : getPropertyValue
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

10.10
Location : getPropertyValue
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

11.11
Location : getPropertyValue
Killed by : oghamall.it.email.EmailSMTPDefaultsTest.invalidTemplate(oghamall.it.email.EmailSMTPDefaultsTest)
negated conditional → KILLED

12.12
Location : getPropertyValue
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

75

1.1
Location : getPropertyValue
Killed by : none
negated conditional → TIMED_OUT

2.2
Location : getPropertyValue
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

3.3
Location : getPropertyValue
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : getPropertyValue
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
negated conditional → KILLED

5.5
Location : getPropertyValue
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

6.6
Location : getPropertyValue
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

7.7
Location : getPropertyValue
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

8.8
Location : getPropertyValue
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

9.9
Location : getPropertyValue
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

10.10
Location : getPropertyValue
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

11.11
Location : getPropertyValue
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

12.12
Location : getPropertyValue
Killed by : none
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → NO_COVERAGE

13.13
Location : getPropertyValue
Killed by : none
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → TIMED_OUT

14.14
Location : getPropertyValue
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

15.15
Location : getPropertyValue
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

16.16
Location : getPropertyValue
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getPropertyValue → KILLED

80

1.1
Location : getProperties
Killed by : oghamcore.it.core.util.bean.MapBeanReadWrapperSpec
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

2.2
Location : getProperties
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

3.3
Location : getProperties
Killed by : none
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → TIMED_OUT

4.4
Location : getProperties
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

5.5
Location : getProperties
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

6.6
Location : getProperties
Killed by : none
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → NO_COVERAGE

7.7
Location : getProperties
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

8.8
Location : getProperties
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getProperties → KILLED

85

1.1
Location : getWrappedBean
Killed by : none
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → NO_COVERAGE

2.2
Location : getWrappedBean
Killed by : none
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → TIMED_OUT

3.3
Location : getWrappedBean
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

4.4
Location : getWrappedBean
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

5.5
Location : getWrappedBean
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

6.6
Location : getWrappedBean
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

7.7
Location : getWrappedBean
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

8.8
Location : getWrappedBean
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
replaced return value with null for fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::getWrappedBean → KILLED

90

1.1
Location : initialize
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

2.2
Location : initialize
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : initialize
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
negated conditional → KILLED

4.4
Location : initialize
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

5.5
Location : initialize
Killed by : none
negated conditional → TIMED_OUT

6.6
Location : initialize
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

7.7
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

8.8
Location : initialize
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

94

1.1
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

2.2
Location : initialize
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

3.3
Location : initialize
Killed by : oghamall.it.email.EmailSMTPDefaultsTest.invalidTemplate(oghamall.it.email.EmailSMTPDefaultsTest)
negated conditional → KILLED

4.4
Location : initialize
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

5.5
Location : initialize
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

6.6
Location : initialize
Killed by : none
negated conditional → TIMED_OUT

7.7
Location : initialize
Killed by : none
negated conditional → NO_COVERAGE

8.8
Location : initialize
Killed by : oghamthymeleafv3.it.ThymeleafParserTest.invalid(oghamthymeleafv3.it.ThymeleafParserTest)
negated conditional → KILLED

96

1.1
Location : initialize
Killed by : none
negated conditional → TIMED_OUT

2.2
Location : initialize
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

3.3
Location : initialize
Killed by : oghamthymeleafv3.it.ThymeleafParserTest.invalid(oghamthymeleafv3.it.ThymeleafParserTest)
negated conditional → KILLED

4.4
Location : initialize
Killed by : none
negated conditional → NO_COVERAGE

5.5
Location : initialize
Killed by : oghamall.it.email.EmailSMTPDefaultsTest.invalidTemplate(oghamall.it.email.EmailSMTPDefaultsTest)
negated conditional → KILLED

6.6
Location : initialize
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

7.7
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

8.8
Location : initialize
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

97

1.1
Location : initialize
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeCollection → NO_COVERAGE

2.2
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeCollection → KILLED

98

1.1
Location : initialize
Killed by : oghamall.it.email.EmailSMTPDefaultsTest.invalidTemplate(oghamall.it.email.EmailSMTPDefaultsTest)
negated conditional → KILLED

2.2
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

3.3
Location : initialize
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

4.4
Location : initialize
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

5.5
Location : initialize
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

6.6
Location : initialize
Killed by : none
negated conditional → TIMED_OUT

7.7
Location : initialize
Killed by : none
negated conditional → NO_COVERAGE

8.8
Location : initialize
Killed by : oghamthymeleafv3.it.ThymeleafParserTest.invalid(oghamthymeleafv3.it.ThymeleafParserTest)
negated conditional → KILLED

99

1.1
Location : initialize
Killed by : oghamcore.it.core.util.bean.MapBeanReadWrapperSpec
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeMap → KILLED

2.2
Location : initialize
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeMap → NO_COVERAGE

101

1.1
Location : initialize
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

2.2
Location : initialize
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

3.3
Location : initialize
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → NO_COVERAGE

4.4
Location : initialize
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

5.5
Location : initialize
Killed by : none
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → TIMED_OUT

6.6
Location : initialize
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

7.7
Location : initialize
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

8.8
Location : initialize
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
removed call to fr/sii/ogham/core/util/bean/SimpleBeanReadWrapper::initializeBean → KILLED

107

1.1
Location : initializeCollection
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
Changed increment from 1 to -1 → KILLED

2.2
Location : initializeCollection
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : initializeCollection
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : initializeCollection
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

123

1.1
Location : initializeBean
Killed by : oghamcore.it.core.util.bean.RecursiveBeanReadMethodBeanWrapperSpec
negated conditional → KILLED

2.2
Location : initializeBean
Killed by : oghamthymeleafv3.it.resolver.StringResourceResolverTest.text(oghamthymeleafv3.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

3.3
Location : initializeBean
Killed by : none
negated conditional → TIMED_OUT

4.4
Location : initializeBean
Killed by : none
negated conditional → NO_COVERAGE

5.5
Location : initializeBean
Killed by : oghamthymeleafv2.it.resolver.StringResourceResolverTest.text(oghamthymeleafv2.it.resolver.StringResourceResolverTest)
negated conditional → KILLED

6.6
Location : initializeBean
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithInvalidResourcePath(oghamall.it.email.EmailMultiTemplateTest)
negated conditional → KILLED

7.7
Location : initializeBean
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

8.8
Location : initializeBean
Killed by : oghamovh.it.OvhSmsTest.phoneNumberConversion(oghamovh.it.OvhSmsTest)
negated conditional → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM