1 | package fr.sii.ogham.template.thymeleaf.common.adapter; | |
2 | ||
3 | import org.thymeleaf.templateresolver.ITemplateResolver; | |
4 | ||
5 | import fr.sii.ogham.template.thymeleaf.common.TemplateResolverOptions; | |
6 | ||
7 | /** | |
8 | * Abstract class to handle options configuration for the adapted | |
9 | * {@link ITemplateResolver}. | |
10 | * | |
11 | * @author Cyril Dejonghe | |
12 | * | |
13 | */ | |
14 | public abstract class AbstractTemplateResolverOptionsAdapter implements TemplateResolverAdapter { | |
15 | private final TemplateResolverOptionsApplier optionsSetter; | |
16 | private TemplateResolverOptions options; | |
17 | | |
18 | ||
19 | public AbstractTemplateResolverOptionsAdapter(TemplateResolverOptionsApplier optionsSetter) { | |
20 | super(); | |
21 | this.optionsSetter = optionsSetter; | |
22 | } | |
23 | ||
24 | public TemplateResolverOptions getOptions() { | |
25 |
1
1. getOptions : replaced return value with null for fr/sii/ogham/template/thymeleaf/common/adapter/AbstractTemplateResolverOptionsAdapter::getOptions → NO_COVERAGE |
return options; |
26 | } | |
27 | ||
28 | @Override | |
29 | public void setOptions(TemplateResolverOptions options) { | |
30 | this.options = options; | |
31 | } | |
32 | ||
33 | /** | |
34 | * Applies the options to the given {@link ITemplateResolver} | |
35 | * | |
36 | * @param templateResolver | |
37 | * TemplateResolver to configure | |
38 | */ | |
39 | protected void applyOptions(ITemplateResolver templateResolver) { | |
40 |
5
1. applyOptions : removed call to fr/sii/ogham/template/thymeleaf/common/adapter/TemplateResolverOptionsApplier::apply → NO_COVERAGE 2. applyOptions : removed call to fr/sii/ogham/template/thymeleaf/common/adapter/TemplateResolverOptionsApplier::apply → SURVIVED 3. applyOptions : removed call to fr/sii/ogham/template/thymeleaf/common/adapter/TemplateResolverOptionsApplier::apply → TIMED_OUT 4. applyOptions : removed call to fr/sii/ogham/template/thymeleaf/common/adapter/TemplateResolverOptionsApplier::apply → KILLED 5. applyOptions : removed call to fr/sii/ogham/template/thymeleaf/common/adapter/TemplateResolverOptionsApplier::apply → KILLED |
optionsSetter.apply(templateResolver, options); |
41 | } | |
42 | } | |
Mutations | ||
25 |
1.1 |
|
40 |
1.1 2.2 3.3 4.4 5.5 |