AbstractFreemarkerBuilder.java

1
package fr.sii.ogham.template.freemarker.builder;
2
3
import static freemarker.template.Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS;
4
5
import java.util.ArrayList;
6
import java.util.List;
7
8
import org.slf4j.Logger;
9
import org.slf4j.LoggerFactory;
10
11
import fr.sii.ogham.core.builder.Builder;
12
import fr.sii.ogham.core.builder.context.BuildContext;
13
import fr.sii.ogham.core.builder.context.DefaultBuildContext;
14
import fr.sii.ogham.core.builder.resolution.ClassPathResolutionBuilder;
15
import fr.sii.ogham.core.builder.resolution.FileResolutionBuilder;
16
import fr.sii.ogham.core.builder.resolution.ResourceResolutionBuilder;
17
import fr.sii.ogham.core.builder.resolution.ResourceResolutionBuilderHelper;
18
import fr.sii.ogham.core.builder.resolution.StringResolutionBuilder;
19
import fr.sii.ogham.core.builder.template.DetectorBuilder;
20
import fr.sii.ogham.core.fluent.AbstractParent;
21
import fr.sii.ogham.core.resource.resolver.FirstSupportingResourceResolver;
22
import fr.sii.ogham.core.resource.resolver.ResourceResolver;
23
import fr.sii.ogham.core.template.detector.FixedEngineDetector;
24
import fr.sii.ogham.core.template.detector.OrTemplateDetector;
25
import fr.sii.ogham.core.template.detector.SimpleResourceEngineDetector;
26
import fr.sii.ogham.core.template.detector.TemplateEngineDetector;
27
import fr.sii.ogham.core.template.parser.TemplateParser;
28
import fr.sii.ogham.template.freemarker.FreeMarkerFirstSupportingTemplateLoader;
29
import fr.sii.ogham.template.freemarker.FreeMarkerParser;
30
import fr.sii.ogham.template.freemarker.FreeMarkerTemplateDetector;
31
import fr.sii.ogham.template.freemarker.SkipLocaleForStringContentTemplateLookupStrategy;
32
import fr.sii.ogham.template.freemarker.TemplateLoaderOptions;
33
import fr.sii.ogham.template.freemarker.adapter.ClassPathResolverAdapter;
34
import fr.sii.ogham.template.freemarker.adapter.FileResolverAdapter;
35
import fr.sii.ogham.template.freemarker.adapter.FirstSupportingResolverAdapter;
36
import fr.sii.ogham.template.freemarker.adapter.StringResolverAdapter;
37
import fr.sii.ogham.template.freemarker.adapter.TemplateLoaderAdapter;
38
import freemarker.cache.TemplateLoader;
39
import freemarker.template.Configuration;
40
import freemarker.template.TemplateExceptionHandler;
41
42
@SuppressWarnings("squid:S00119")
43
public abstract class AbstractFreemarkerBuilder<MYSELF extends AbstractFreemarkerBuilder<MYSELF, P>, P> extends AbstractParent<P>
44
		implements DetectorBuilder<MYSELF>, ResourceResolutionBuilder<MYSELF>, Builder<TemplateParser> {
45
	private static final Logger LOG = LoggerFactory.getLogger(AbstractFreemarkerBuilder.class);
46
47
	protected final MYSELF myself;
48
	protected final BuildContext buildContext;
49
	private TemplateEngineDetector detector;
50
	private ResourceResolutionBuilderHelper<MYSELF> resourceResolutionBuilderHelper;
51
	private Configuration configuration;
52
	private List<TemplateLoaderAdapter> customAdapters;
53
	private FreemarkerConfigurationBuilder<MYSELF> configurationBuilder;
54
	private ClassLoader classLoader;
55
56
	protected AbstractFreemarkerBuilder(Class<?> selfType) {
57
		this(selfType, null, new DefaultBuildContext());
58
	}
59
60
	@SuppressWarnings("unchecked")
61
	protected AbstractFreemarkerBuilder(Class<?> selfType, P parent, BuildContext buildContext) {
62
		super(parent);
63
		myself = (MYSELF) selfType.cast(this);
64
		this.buildContext = buildContext;
65
		customAdapters = new ArrayList<>();
66
	}
67
68
	@Override
69
	public MYSELF detector(TemplateEngineDetector detector) {
70
		this.detector = detector;
71 1 1. detector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::detector → NO_COVERAGE
		return myself;
72
	}
73
74
	@Override
75
	public ClassPathResolutionBuilder<MYSELF> classpath() {
76 4 1. classpath : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
2. classpath : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
3. classpath : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
4. classpath : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
		initResolutionBuilder();
77 4 1. classpath : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED
2. classpath : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED
3. classpath : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED
4. classpath : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED
		return resourceResolutionBuilderHelper.classpath();
78
	}
79
80
	@Override
81
	public FileResolutionBuilder<MYSELF> file() {
82 1 1. file : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED
		initResolutionBuilder();
83 4 1. file : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED
2. file : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED
3. file : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED
4. file : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED
		return resourceResolutionBuilderHelper.file();
84
	}
85
86
	@Override
87
	public StringResolutionBuilder<MYSELF> string() {
88 2 1. string : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED
2. string : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
		initResolutionBuilder();
89 4 1. string : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED
2. string : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED
3. string : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED
4. string : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED
		return resourceResolutionBuilderHelper.string();
90
	}
91
92
	@Override
93
	public MYSELF resolver(ResourceResolver resolver) {
94 1 1. resolver : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → NO_COVERAGE
		initResolutionBuilder();
95 1 1. resolver : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::resolver → NO_COVERAGE
		return resourceResolutionBuilderHelper.resolver(resolver);
96
	}
97
98
	/**
99
	 * Ogham provides a generic resource resolution mechanism
100
	 * ({@link ResourceResolver}). Freemarker uses its own template resolution
101
	 * mechanism ({@link TemplateLoader}). A resolver adapter
102
	 * ({@link TemplateLoaderAdapter}) is the way to transform a
103
	 * {@link ResourceResolver} into a {@link TemplateLoader}.
104
	 * 
105
	 * <p>
106
	 * Ogham provides and registers default resolver adapters but you may need
107
	 * to use a custom {@link ResourceResolver}. So you also need to provide the
108
	 * corresponding {@link TemplateLoaderAdapter}.
109
	 * 
110
	 * @param adapter
111
	 *            the resolver adapter
112
	 * @return this instance for fluent chaining
113
	 */
114
	public MYSELF resolverAdapter(TemplateLoaderAdapter adapter) {
115
		customAdapters.add(adapter);
116 1 1. resolverAdapter : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::resolverAdapter → NO_COVERAGE
		return myself;
117
	}
118
119
	/**
120
	 * Fluent configurer for Freemarker configuration.
121
	 * 
122
	 * @return the fluent builder for Freemarker configuration object
123
	 */
124
	public FreemarkerConfigurationBuilder<MYSELF> configuration() {
125 4 1. configuration : negated conditional → NO_COVERAGE
2. configuration : negated conditional → KILLED
3. configuration : negated conditional → KILLED
4. configuration : negated conditional → KILLED
		if (configurationBuilder == null) {
126
			configurationBuilder = new FreemarkerConfigurationBuilder<>(myself, buildContext);
127
		}
128 4 1. configuration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → NO_COVERAGE
2. configuration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED
3. configuration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED
4. configuration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED
		return configurationBuilder;
129
	}
130
131
	/**
132
	 * Sets a Freemarker configuration.
133
	 * 
134
	 * This value preempts any other value defined by calling
135
	 * {@link #configuration()} method. It means that the provided configuration
136
	 * is used as-is and any call to {@link #configuration()} builder methods
137
	 * has no effect on the provided configuration. You have to manually
138
	 * configure it.
139
	 * 
140
	 * If this method is called several times, only the last provided
141
	 * configuration is used.
142
	 * 
143
	 * @param configuration
144
	 *            the Freemarker configuration
145
	 * @return this instance for fluent chaining
146
	 */
147
	public MYSELF configuration(Configuration configuration) {
148
		this.configuration = configuration;
149 1 1. configuration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → NO_COVERAGE
		return myself;
150
	}
151
152
	/**
153
	 * Merge an existing Freemarker configuration with previously provided
154
	 * configuration.
155
	 * 
156
	 * <p>
157
	 * The provided configuration is used and any call to
158
	 * {@link #configuration()} builder methods are applied to the provided
159
	 * configuration.
160
	 * 
161
	 * 
162
	 * @param configuration
163
	 *            The Freemarker configuration to apply
164
	 * @return this instance for fluent chaining
165
	 */
166
	public MYSELF mergeConfiguration(Configuration configuration) {
167
		configuration().base(configuration);
168 3 1. mergeConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → SURVIVED
2. mergeConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → NO_COVERAGE
3. mergeConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → TIMED_OUT
		return myself;
169
	}
170
171
	/**
172
	 * Set the {@link ClassLoader} to use for loading classpath resources.
173
	 * 
174
	 * <p>
175
	 * Loading resources from classpath requires a {@link ClassLoader}. Several
176
	 * class loaders may be defined in an application to isolate parts of the
177
	 * application. FreeMarker requires you to provide a {@link ClassLoader} for
178
	 * finding resources in the classpath. This is done for security reasons.
179
	 * 
180
	 * <p>
181
	 * By default, Ogham uses the current thread class loader.
182
	 * 
183
	 * @param classLoader
184
	 *            the class loader to use
185
	 * @return this instance for fluent chaining
186
	 */
187
	public MYSELF classLoader(ClassLoader classLoader) {
188
		this.classLoader = classLoader;
189 1 1. classLoader : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classLoader → NO_COVERAGE
		return myself;
190
	}
191
192
	@Override
193
	public TemplateParser build() {
194
		LOG.info("Freemarker parser is registered");
195 4 1. build : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED
2. build : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED
3. build : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED
4. build : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED
		return buildContext.register(new FreeMarkerParser(buildConfiguration(), buildResolver()));
196
	}
197
198
	@Override
199
	public TemplateEngineDetector buildDetector() {
200 8 1. buildDetector : negated conditional → NO_COVERAGE
2. buildDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → NO_COVERAGE
3. buildDetector : negated conditional → KILLED
4. buildDetector : negated conditional → KILLED
5. buildDetector : negated conditional → KILLED
6. buildDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED
7. buildDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED
8. buildDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED
		return detector == null ? buildDefaultDetector() : detector;
201
	}
202
203
	private TemplateEngineDetector buildDefaultDetector() {
204
		FirstSupportingResourceResolver resolver = buildResolver();
205
		OrTemplateDetector or = buildContext.register(new OrTemplateDetector());
206 4 1. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → NO_COVERAGE
2. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED
3. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED
4. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED
		or.addDetector(buildContext.register(new FreeMarkerTemplateDetector(resolver, ".ftl", ".ftlh")));
207 3 1. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → NO_COVERAGE
2. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → SURVIVED
3. buildDefaultDetector : removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED
		or.addDetector(buildContext.register(new SimpleResourceEngineDetector(resolver, buildContext.register(new FixedEngineDetector(true)))));
208 4 1. buildDefaultDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → NO_COVERAGE
2. buildDefaultDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED
3. buildDefaultDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED
4. buildDefaultDetector : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED
		return or;
209
	}
210
211
	/**
212
	 * Builds the resolver used by Freemarker to resolve resources
213
	 * 
214
	 * @return the resource resolver
215
	 */
216
	public FirstSupportingResourceResolver buildResolver() {
217 4 1. buildResolver : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED
2. buildResolver : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED
3. buildResolver : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED
4. buildResolver : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED
		return buildContext.register(new FirstSupportingResourceResolver(buildResolvers()));
218
	}
219
220
	private Configuration buildConfiguration() {
221
		Configuration builtConfiguration;
222 4 1. buildConfiguration : negated conditional → KILLED
2. buildConfiguration : negated conditional → KILLED
3. buildConfiguration : negated conditional → KILLED
4. buildConfiguration : negated conditional → KILLED
		if (this.configuration != null) {
223
			builtConfiguration = this.configuration;
224 4 1. buildConfiguration : negated conditional → KILLED
2. buildConfiguration : negated conditional → KILLED
3. buildConfiguration : negated conditional → KILLED
4. buildConfiguration : negated conditional → KILLED
		} else if (configurationBuilder != null) {
225
			builtConfiguration = configurationBuilder.build();
226
		} else {
227
			builtConfiguration = new Configuration(DEFAULT_INCOMPATIBLE_IMPROVEMENTS);
228 2 1. buildConfiguration : removed call to freemarker/template/Configuration::setDefaultEncoding → SURVIVED
2. buildConfiguration : removed call to freemarker/template/Configuration::setDefaultEncoding → NO_COVERAGE
			builtConfiguration.setDefaultEncoding("UTF-8");
229 2 1. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateExceptionHandler → SURVIVED
2. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateExceptionHandler → NO_COVERAGE
			builtConfiguration.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
230
		}
231
		FirstSupportingResourceResolver builtResolver = buildResolver();
232
		FirstSupportingResolverAdapter builtAdapter = buildAdapter();
233 4 1. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLoader → KILLED
2. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLoader → KILLED
3. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLoader → KILLED
4. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLoader → KILLED
		builtConfiguration.setTemplateLoader(buildContext.register(new FreeMarkerFirstSupportingTemplateLoader(builtResolver, builtAdapter)));
234 2 1. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLookupStrategy → SURVIVED
2. buildConfiguration : removed call to freemarker/template/Configuration::setTemplateLookupStrategy → KILLED
		builtConfiguration.setTemplateLookupStrategy(buildContext.register(new SkipLocaleForStringContentTemplateLookupStrategy(builtConfiguration.getTemplateLookupStrategy(), builtResolver, builtAdapter)));
235 4 1. buildConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED
2. buildConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED
3. buildConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED
4. buildConfiguration : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED
		return builtConfiguration;
236
	}
237
238
	protected List<ResourceResolver> buildResolvers() {
239 2 1. buildResolvers : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED
2. buildResolvers : removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED
		initResolutionBuilder();
240 4 1. buildResolvers : replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED
2. buildResolvers : replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED
3. buildResolvers : replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED
4. buildResolvers : replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED
		return resourceResolutionBuilderHelper.buildResolvers();
241
	}
242
243
	protected FirstSupportingResolverAdapter buildAdapter() {
244
		FirstSupportingResolverAdapter adapter = new FirstSupportingResolverAdapter();
245
		for (TemplateLoaderAdapter custom : customAdapters) {
246 1 1. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → NO_COVERAGE
			adapter.addAdapter(custom);
247
		}
248 4 1. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
2. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
3. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
4. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
		adapter.addAdapter(buildContext.register(new ClassPathResolverAdapter(classLoader)));
249 2 1. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → SURVIVED
2. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
		adapter.addAdapter(buildContext.register(new FileResolverAdapter()));
250 2 1. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → SURVIVED
2. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED
		adapter.addAdapter(buildContext.register(new StringResolverAdapter()));
251 1 1. buildAdapter : removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::setOptions → SURVIVED
		adapter.setOptions(buildContext.register(new TemplateLoaderOptions()));
252 4 1. buildAdapter : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED
2. buildAdapter : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED
3. buildAdapter : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED
4. buildAdapter : replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED
		return adapter;
253
	}
254
255
	private void initResolutionBuilder() {
256 4 1. initResolutionBuilder : negated conditional → KILLED
2. initResolutionBuilder : negated conditional → KILLED
3. initResolutionBuilder : negated conditional → KILLED
4. initResolutionBuilder : negated conditional → KILLED
		if (resourceResolutionBuilderHelper == null) {
257
			resourceResolutionBuilderHelper = new ResourceResolutionBuilderHelper<>(myself, buildContext);
258
		}
259
	}
260
}

Mutations

71

1.1
Location : detector
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::detector → NO_COVERAGE

76

1.1
Location : classpath
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

2.2
Location : classpath
Killed by : oghamall.it.configuration.FreemarkerConfigurationTest.asDeveloperIDefineCustomPathPrefixInMyOwnCode(oghamall.it.configuration.FreemarkerConfigurationTest)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

3.3
Location : classpath
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

4.4
Location : classpath
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

77

1.1
Location : classpath
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED

2.2
Location : classpath
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED

3.3
Location : classpath
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED

4.4
Location : classpath
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classpath → KILLED

82

1.1
Location : file
Killed by : none
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED

83

1.1
Location : file
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED

2.2
Location : file
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED

3.3
Location : file
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED

4.4
Location : file
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::file → KILLED

88

1.1
Location : string
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

2.2
Location : string
Killed by : none
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED

89

1.1
Location : string
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED

2.2
Location : string
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED

3.3
Location : string
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED

4.4
Location : string
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::string → KILLED

94

1.1
Location : resolver
Killed by : none
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → NO_COVERAGE

95

1.1
Location : resolver
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::resolver → NO_COVERAGE

116

1.1
Location : resolverAdapter
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::resolverAdapter → NO_COVERAGE

125

1.1
Location : configuration
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

2.2
Location : configuration
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

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

4.4
Location : configuration
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
negated conditional → KILLED

128

1.1
Location : configuration
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED

2.2
Location : configuration
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED

3.3
Location : configuration
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → NO_COVERAGE

4.4
Location : configuration
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → KILLED

149

1.1
Location : configuration
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::configuration → NO_COVERAGE

168

1.1
Location : mergeConfiguration
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → SURVIVED

2.2
Location : mergeConfiguration
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → TIMED_OUT

3.3
Location : mergeConfiguration
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::mergeConfiguration → NO_COVERAGE

189

1.1
Location : classLoader
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::classLoader → NO_COVERAGE

195

1.1
Location : build
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED

2.2
Location : build
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED

3.3
Location : build
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndTemplateParsersOnlyRegisteredCantHandleTemplateContentDueToResourceResolutionNotConfigured(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED

4.4
Location : build
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::build → KILLED

200

1.1
Location : buildDetector
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
negated conditional → KILLED

2.2
Location : buildDetector
Killed by : oghamall.it.template.TemplateErrorTest.singleTemplateNotFound(oghamall.it.template.TemplateErrorTest)
negated conditional → KILLED

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

4.4
Location : buildDetector
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
negated conditional → KILLED

5.5
Location : buildDetector
Killed by : oghamall.it.template.TemplateErrorTest.singleTemplateNotFound(oghamall.it.template.TemplateErrorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED

6.6
Location : buildDetector
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → NO_COVERAGE

7.7
Location : buildDetector
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED

8.8
Location : buildDetector
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDetector → KILLED

206

1.1
Location : buildDefaultDetector
Killed by : none
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → NO_COVERAGE

2.2
Location : buildDefaultDetector
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED

3.3
Location : buildDefaultDetector
Killed by : oghamall.it.retry.AutoRetryTest.doNotResendEmailIfParsingFailed(oghamall.it.retry.AutoRetryTest)
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED

4.4
Location : buildDefaultDetector
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED

207

1.1
Location : buildDefaultDetector
Killed by : none
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → NO_COVERAGE

2.2
Location : buildDefaultDetector
Killed by : oghamall.it.email.EmailTemplateStringTest.htmlTemplateStringWithFreemarker(oghamall.it.email.EmailTemplateStringTest)
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → KILLED

3.3
Location : buildDefaultDetector
Killed by : none
removed call to fr/sii/ogham/core/template/detector/OrTemplateDetector::addDetector → SURVIVED

208

1.1
Location : buildDefaultDetector
Killed by : oghamall.it.template.TemplateErrorTest.singleTemplateNotFound(oghamall.it.template.TemplateErrorTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED

2.2
Location : buildDefaultDetector
Killed by : none
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → NO_COVERAGE

3.3
Location : buildDefaultDetector
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED

4.4
Location : buildDefaultDetector
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildDefaultDetector → KILLED

217

1.1
Location : buildResolver
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED

2.2
Location : buildResolver
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED

3.3
Location : buildResolver
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED

4.4
Location : buildResolver
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndFreemarkerOnlyRegisteredButResourceResolutionNotConfiguredCantHandleTemplateContent(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolver → KILLED

222

1.1
Location : buildConfiguration
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndTemplateParsersOnlyRegisteredCantHandleTemplateContentDueToResourceResolutionNotConfigured(oghamall.it.configuration.EmptyBuilderTest)
negated conditional → KILLED

2.2
Location : buildConfiguration
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

3.3
Location : buildConfiguration
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

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

224

1.1
Location : buildConfiguration
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
negated conditional → KILLED

2.2
Location : buildConfiguration
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndTemplateParsersOnlyRegisteredCantHandleTemplateContentDueToResourceResolutionNotConfigured(oghamall.it.configuration.EmptyBuilderTest)
negated conditional → KILLED

3.3
Location : buildConfiguration
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
negated conditional → KILLED

4.4
Location : buildConfiguration
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.smsUsingFreemarkerTemplateShouldBeAbleToCallStaticMethodsWithCustomVariableName(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
negated conditional → KILLED

228

1.1
Location : buildConfiguration
Killed by : none
removed call to freemarker/template/Configuration::setDefaultEncoding → SURVIVED

2.2
Location : buildConfiguration
Killed by : none
removed call to freemarker/template/Configuration::setDefaultEncoding → NO_COVERAGE

229

1.1
Location : buildConfiguration
Killed by : none
removed call to freemarker/template/Configuration::setTemplateExceptionHandler → SURVIVED

2.2
Location : buildConfiguration
Killed by : none
removed call to freemarker/template/Configuration::setTemplateExceptionHandler → NO_COVERAGE

233

1.1
Location : buildConfiguration
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
removed call to freemarker/template/Configuration::setTemplateLoader → KILLED

2.2
Location : buildConfiguration
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
removed call to freemarker/template/Configuration::setTemplateLoader → KILLED

3.3
Location : buildConfiguration
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndFreemarkerOnlyRegisteredButResourceResolutionNotConfiguredCantHandleTemplateContent(oghamall.it.configuration.EmptyBuilderTest)
removed call to freemarker/template/Configuration::setTemplateLoader → KILLED

4.4
Location : buildConfiguration
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
removed call to freemarker/template/Configuration::setTemplateLoader → KILLED

234

1.1
Location : buildConfiguration
Killed by : oghamall.it.email.EmailTemplateStringTest.htmlTemplateStringWithFreemarker(oghamall.it.email.EmailTemplateStringTest)
removed call to freemarker/template/Configuration::setTemplateLookupStrategy → KILLED

2.2
Location : buildConfiguration
Killed by : none
removed call to freemarker/template/Configuration::setTemplateLookupStrategy → SURVIVED

235

1.1
Location : buildConfiguration
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED

2.2
Location : buildConfiguration
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED

3.3
Location : buildConfiguration
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndFreemarkerOnlyRegisteredButResourceResolutionNotConfiguredCantHandleTemplateContent(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED

4.4
Location : buildConfiguration
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildConfiguration → KILLED

239

1.1
Location : buildResolvers
Killed by : none
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → SURVIVED

2.2
Location : buildResolvers
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndTemplateParsersOnlyRegisteredCantHandleTemplateContentDueToResourceResolutionNotConfigured(oghamall.it.configuration.EmptyBuilderTest)
removed call to fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::initResolutionBuilder → KILLED

240

1.1
Location : buildResolvers
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED

2.2
Location : buildResolvers
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED

3.3
Location : buildResolvers
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED

4.4
Location : buildResolvers
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerInvalidPath(oghamall.it.email.EmailMultiTemplateTest)
replaced return value with Collections.emptyList for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildResolvers → KILLED

246

1.1
Location : buildAdapter
Killed by : none
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → NO_COVERAGE

248

1.1
Location : buildAdapter
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

2.2
Location : buildAdapter
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

3.3
Location : buildAdapter
Killed by : oghamall.it.email.EmailMultiTemplateTest.withFreemarkerOneVariantWithParsingError(oghamall.it.email.EmailMultiTemplateTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

4.4
Location : buildAdapter
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

249

1.1
Location : buildAdapter
Killed by : oghamall.it.email.ExternalFileTest.thymeleafHtmlFileFreemarkerTextFile(oghamall.it.email.ExternalFileTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

2.2
Location : buildAdapter
Killed by : none
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → SURVIVED

250

1.1
Location : buildAdapter
Killed by : oghamall.it.email.EmailTemplateStringTest.htmlTemplateStringWithFreemarker(oghamall.it.email.EmailTemplateStringTest)
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → KILLED

2.2
Location : buildAdapter
Killed by : none
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::addAdapter → SURVIVED

251

1.1
Location : buildAdapter
Killed by : none
removed call to fr/sii/ogham/template/freemarker/adapter/FirstSupportingResolverAdapter::setOptions → SURVIVED

252

1.1
Location : buildAdapter
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED

2.2
Location : buildAdapter
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndFreemarkerOnlyRegisteredButResourceResolutionNotConfiguredCantHandleTemplateContent(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED

3.3
Location : buildAdapter
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED

4.4
Location : buildAdapter
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced return value with null for fr/sii/ogham/template/freemarker/builder/AbstractFreemarkerBuilder::buildAdapter → KILLED

256

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

2.2
Location : initResolutionBuilder
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

3.3
Location : initResolutionBuilder
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

4.4
Location : initResolutionBuilder
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredAndTemplateParsersOnlyRegisteredCantHandleTemplateContentDueToResourceResolutionNotConfigured(oghamall.it.configuration.EmptyBuilderTest)
negated conditional → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM