AutofillEmailBuilder.java

1
package fr.sii.ogham.email.builder;
2
3
import java.util.HashMap;
4
import java.util.Map;
5
6
import fr.sii.ogham.core.builder.Builder;
7
import fr.sii.ogham.core.builder.configuration.ConfigurationValueBuilderHelper;
8
import fr.sii.ogham.core.builder.context.BuildContext;
9
import fr.sii.ogham.core.builder.env.EnvironmentBuilder;
10
import fr.sii.ogham.core.filler.EveryFillerDecorator;
11
import fr.sii.ogham.core.filler.MessageFiller;
12
import fr.sii.ogham.core.fluent.AbstractParent;
13
import fr.sii.ogham.email.filler.EmailFiller;
14
import fr.sii.ogham.email.message.Email;
15
16
/**
17
 * Configures how Ogham will add default values to the {@link Email} if some
18
 * information is missing.
19
 * 
20
 * If sender address is missing, a default one can be defined in configuration
21
 * properties.
22
 * 
23
 * If recipient address is missing, a default one can be defined in
24
 * configuration properties.
25
 * 
26
 * If subject is missing, a default one can be defined either:
27
 * <ul>
28
 * <li>In HTML title</li>
29
 * <li>In first line of text template</li>
30
 * <li>Using a default value defined in configuration properties</li>
31
 * </ul>
32
 * 
33
 * @author Aurélien Baudet
34
 * @see EmailFiller
35
 *
36
 */
37
public class AutofillEmailBuilder extends AbstractParent<EmailBuilder> implements Builder<MessageFiller> {
38
	private final BuildContext buildContext;
39
	private AutofillSubjectBuilder subjectBuilder;
40
	private AutofillDefaultEmailAddressBuilder<String> fromBuilder;
41
	private AutofillDefaultEmailAddressBuilder<String[]> toBuilder;
42
	private AutofillDefaultEmailAddressBuilder<String[]> ccBuilder;
43
	private AutofillDefaultEmailAddressBuilder<String[]> bccBuilder;
44
45
	/**
46
	 * Initializes with the parent builder and the {@link EnvironmentBuilder}.
47
	 * The parent builder is used when calling the {@link #and()} method. The
48
	 * {@link EnvironmentBuilder} is used by {@link #build()} method to evaluate
49
	 * property values.
50
	 * 
51
	 * @param parent
52
	 *            the parent builder
53
	 * @param buildContext
54
	 *            for property resolution
55
	 */
56
	public AutofillEmailBuilder(EmailBuilder parent, BuildContext buildContext) {
57
		super(parent);
58
		this.buildContext = buildContext;
59
	}
60
61
	/**
62
	 * Configures how to handle missing {@link Email} subject: if no subject is
63
	 * explicitly defined on the {@link Email}, Ogham will use the result of
64
	 * this builder configuration to provide a default subject.
65
	 * 
66
	 * Default subject can be provided by:
67
	 * <ul>
68
	 * <li>Using HTML {@code <title>} header tag as subject</li>
69
	 * <li>Using first line text if prefixed</li>
70
	 * <li>Using a property value</li>
71
	 * </ul>
72
	 * 
73
	 * 
74
	 * @return the builder to configure default subject handling
75
	 */
76
	public AutofillSubjectBuilder subject() {
77 8 1. subject : negated conditional → NO_COVERAGE
2. subject : negated conditional → KILLED
3. subject : negated conditional → KILLED
4. subject : negated conditional → KILLED
5. subject : negated conditional → KILLED
6. subject : negated conditional → KILLED
7. subject : negated conditional → KILLED
8. subject : negated conditional → KILLED
		if (subjectBuilder == null) {
78
			subjectBuilder = new AutofillSubjectBuilder(this, buildContext);
79
		}
80 8 1. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → NO_COVERAGE
2. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
3. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
4. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
5. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
6. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
7. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
8. subject : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED
		return subjectBuilder;
81
	}
82
83
	/**
84
	 * Configures how to handle missing {@link Email} sender address: if no
85
	 * sender address is explicitly defined on the {@link Email}, Ogham will use
86
	 * the result of this builder configuration to provide a default sender
87
	 * address.
88
	 * 
89
	 * @return the builder to configure default sender address handling
90
	 */
91
	public AutofillDefaultEmailAddressBuilder<String> from() {
92 8 1. from : negated conditional → NO_COVERAGE
2. from : negated conditional → KILLED
3. from : negated conditional → KILLED
4. from : negated conditional → KILLED
5. from : negated conditional → KILLED
6. from : negated conditional → KILLED
7. from : negated conditional → KILLED
8. from : negated conditional → KILLED
		if (fromBuilder == null) {
93
			fromBuilder = new AutofillDefaultEmailAddressBuilder<>(this, String.class, buildContext);
94
		}
95 8 1. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → NO_COVERAGE
2. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
3. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
4. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
5. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
6. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
7. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
8. from : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED
		return fromBuilder;
96
	}
97
98
	/**
99
	 * Configures how to handle missing {@link Email} recipient address: if no
100
	 * "to" address is explicitly defined on the {@link Email}, Ogham will use
101
	 * the result of this builder configuration to provide a default "to"
102
	 * address.
103
	 * 
104
	 * @return the builder to configure default address handling
105
	 */
106
	public AutofillDefaultEmailAddressBuilder<String[]> to() {
107 8 1. to : negated conditional → NO_COVERAGE
2. to : negated conditional → KILLED
3. to : negated conditional → KILLED
4. to : negated conditional → KILLED
5. to : negated conditional → KILLED
6. to : negated conditional → KILLED
7. to : negated conditional → KILLED
8. to : negated conditional → KILLED
		if (toBuilder == null) {
108
			toBuilder = new AutofillDefaultEmailAddressBuilder<>(this, String[].class, buildContext);
109
		}
110 8 1. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → NO_COVERAGE
2. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
3. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
4. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
5. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
6. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
7. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
8. to : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED
		return toBuilder;
111
	}
112
113
	/**
114
	 * Configures how to handle missing {@link Email} recipient address: if no
115
	 * "cc" address is explicitly defined on the {@link Email}, Ogham will use
116
	 * the result of this builder configuration to provide a default "cc"
117
	 * address.
118
	 * 
119
	 * @return the builder to configure default address handling
120
	 */
121
	public AutofillDefaultEmailAddressBuilder<String[]> cc() {
122 8 1. cc : negated conditional → NO_COVERAGE
2. cc : negated conditional → KILLED
3. cc : negated conditional → KILLED
4. cc : negated conditional → KILLED
5. cc : negated conditional → KILLED
6. cc : negated conditional → KILLED
7. cc : negated conditional → KILLED
8. cc : negated conditional → KILLED
		if (ccBuilder == null) {
123
			ccBuilder = new AutofillDefaultEmailAddressBuilder<>(this, String[].class, buildContext);
124
		}
125 8 1. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → NO_COVERAGE
2. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
3. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
4. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
5. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
6. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
7. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
8. cc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED
		return ccBuilder;
126
	}
127
128
	/**
129
	 * Configures how to handle missing {@link Email} recipient address: if no
130
	 * "bcc" address is explicitly defined on the {@link Email}, Ogham will use
131
	 * the result of this builder configuration to provide a default "bcc"
132
	 * address.
133
	 * 
134
	 * @return the builder to configure default address handling
135
	 */
136
	public AutofillDefaultEmailAddressBuilder<String[]> bcc() {
137 8 1. bcc : negated conditional → NO_COVERAGE
2. bcc : negated conditional → KILLED
3. bcc : negated conditional → KILLED
4. bcc : negated conditional → KILLED
5. bcc : negated conditional → KILLED
6. bcc : negated conditional → KILLED
7. bcc : negated conditional → KILLED
8. bcc : negated conditional → KILLED
		if (bccBuilder == null) {
138
			bccBuilder = new AutofillDefaultEmailAddressBuilder<>(this, String[].class, buildContext);
139
		}
140 8 1. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → NO_COVERAGE
2. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
3. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
4. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
5. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
6. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
7. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
8. bcc : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED
		return bccBuilder;
141
	}
142
143
	@Override
144
	public MessageFiller build() {
145
		EveryFillerDecorator filler = buildContext.register(new EveryFillerDecorator());
146 3 1. build : negated conditional → SURVIVED
2. build : negated conditional → NO_COVERAGE
3. build : negated conditional → KILLED
		if (subjectBuilder != null) {
147
			filler.addFiller(subjectBuilder.build());
148
		}
149
		filler.addFiller(buildContext.register(new EmailFiller(buildDefaultValueProps())));
150 7 1. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → NO_COVERAGE
2. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → SURVIVED
3. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED
4. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED
5. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED
6. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED
7. build : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED
		return filler;
151
	}
152
153
	private Map<String, ConfigurationValueBuilderHelper<?, ?>> buildDefaultValueProps() {
154
		Map<String, ConfigurationValueBuilderHelper<?, ?>> props = new HashMap<>();
155 3 1. buildDefaultValueProps : negated conditional → NO_COVERAGE
2. buildDefaultValueProps : negated conditional → SURVIVED
3. buildDefaultValueProps : negated conditional → KILLED
		if (subjectBuilder != null) {
156
			props.put("subject", (ConfigurationValueBuilderHelper<?, String>) subjectBuilder.defaultValue());
157
		}
158 3 1. buildDefaultValueProps : negated conditional → SURVIVED
2. buildDefaultValueProps : negated conditional → NO_COVERAGE
3. buildDefaultValueProps : negated conditional → KILLED
		if (fromBuilder != null) {
159
			props.put("from", (ConfigurationValueBuilderHelper<?, String>) fromBuilder.defaultValue());
160
		}
161 3 1. buildDefaultValueProps : negated conditional → NO_COVERAGE
2. buildDefaultValueProps : negated conditional → SURVIVED
3. buildDefaultValueProps : negated conditional → KILLED
		if (toBuilder != null) {
162
			props.put("to", (ConfigurationValueBuilderHelper<?, String[]>) toBuilder.defaultValue());
163
		}
164 3 1. buildDefaultValueProps : negated conditional → SURVIVED
2. buildDefaultValueProps : negated conditional → NO_COVERAGE
3. buildDefaultValueProps : negated conditional → KILLED
		if (ccBuilder != null) {
165
			props.put("cc", (ConfigurationValueBuilderHelper<?, String[]>) ccBuilder.defaultValue());
166
		}
167 3 1. buildDefaultValueProps : negated conditional → NO_COVERAGE
2. buildDefaultValueProps : negated conditional → SURVIVED
3. buildDefaultValueProps : negated conditional → KILLED
		if (bccBuilder != null) {
168
			props.put("bcc", (ConfigurationValueBuilderHelper<?, String[]>) bccBuilder.defaultValue());
169
		}
170 7 1. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → SURVIVED
2. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → NO_COVERAGE
3. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED
4. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED
5. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED
6. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED
7. buildDefaultValueProps : replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED
		return props;
171
	}
172
}

Mutations

77

1.1
Location : subject
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
negated conditional → KILLED

2.2
Location : subject
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
negated conditional → KILLED

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

4.4
Location : subject
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

5.5
Location : subject
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

6.6
Location : subject
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
negated conditional → KILLED

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

8.8
Location : subject
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

80

1.1
Location : subject
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

2.2
Location : subject
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

3.3
Location : subject
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → NO_COVERAGE

4.4
Location : subject
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

5.5
Location : subject
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

6.6
Location : subject
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

7.7
Location : subject
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

8.8
Location : subject
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::subject → KILLED

92

1.1
Location : from
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

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

3.3
Location : from
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
negated conditional → KILLED

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

5.5
Location : from
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
negated conditional → KILLED

6.6
Location : from
Killed by : none
negated conditional → NO_COVERAGE

7.7
Location : from
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
negated conditional → KILLED

8.8
Location : from
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

95

1.1
Location : from
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

2.2
Location : from
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

3.3
Location : from
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

4.4
Location : from
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → NO_COVERAGE

5.5
Location : from
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

6.6
Location : from
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

7.7
Location : from
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

8.8
Location : from
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::from → KILLED

107

1.1
Location : to
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
negated conditional → KILLED

2.2
Location : to
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

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

4.4
Location : to
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
negated conditional → KILLED

5.5
Location : to
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

6.6
Location : to
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
negated conditional → KILLED

7.7
Location : to
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

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

110

1.1
Location : to
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

2.2
Location : to
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

3.3
Location : to
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

4.4
Location : to
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

5.5
Location : to
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

6.6
Location : to
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

7.7
Location : to
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → KILLED

8.8
Location : to
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::to → NO_COVERAGE

122

1.1
Location : cc
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : cc
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
negated conditional → KILLED

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

4.4
Location : cc
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

5.5
Location : cc
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

6.6
Location : cc
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

7.7
Location : cc
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
negated conditional → KILLED

8.8
Location : cc
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
negated conditional → KILLED

125

1.1
Location : cc
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → NO_COVERAGE

2.2
Location : cc
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

3.3
Location : cc
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

4.4
Location : cc
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

5.5
Location : cc
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

6.6
Location : cc
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

7.7
Location : cc
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

8.8
Location : cc
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::cc → KILLED

137

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

2.2
Location : bcc
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
negated conditional → KILLED

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

4.4
Location : bcc
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
negated conditional → KILLED

5.5
Location : bcc
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
negated conditional → KILLED

6.6
Location : bcc
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
negated conditional → KILLED

7.7
Location : bcc
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
negated conditional → KILLED

8.8
Location : bcc
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
negated conditional → KILLED

140

1.1
Location : bcc
Killed by : oghamall.it.html.translator.JsoupInlineCssTranslatorTest.notHtml(oghamall.it.html.translator.JsoupInlineCssTranslatorTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

2.2
Location : bcc
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

3.3
Location : bcc
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

4.4
Location : bcc
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → NO_COVERAGE

5.5
Location : bcc
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

6.6
Location : bcc
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

7.7
Location : bcc
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

8.8
Location : bcc
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::bcc → KILLED

146

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

2.2
Location : build
Killed by : oghamall.it.email.EmailExtractSubjectTest.subjectExtractedFromTextWithDefaultSubjectShouldSendWithSubjectExtractedFromText(oghamall.it.email.EmailExtractSubjectTest)
negated conditional → KILLED

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

150

1.1
Location : build
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED

2.2
Location : build
Killed by : oghamall.it.email.EmailSMTPAuthenticationTest.authenticated(oghamall.it.email.EmailSMTPAuthenticationTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED

3.3
Location : build
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → NO_COVERAGE

4.4
Location : build
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED

5.5
Location : build
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → SURVIVED

6.6
Location : build
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateShouldBeAbleToCallStaticMethodsWithCustomVariableName(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED

7.7
Location : build
Killed by : oghamspringbootv1autoconfigure.it.StaticMethodsAccessTest.emailUsingFreemarkerTemplateShouldBeAbleToCallStaticMethods(oghamspringbootv1autoconfigure.it.StaticMethodsAccessTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::build → KILLED

155

1.1
Location : buildDefaultValueProps
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : buildDefaultValueProps
Killed by : none
negated conditional → SURVIVED

3.3
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailExtractSubjectTest.noSubjectInContentsWithDefaultSubjectShouldSendWithDefaultSubject(oghamall.it.email.EmailExtractSubjectTest)
negated conditional → KILLED

158

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

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

3.3
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailSMTPAuthenticationTest.authenticated(oghamall.it.email.EmailSMTPAuthenticationTest)
negated conditional → KILLED

161

1.1
Location : buildDefaultValueProps
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailPropertiesTest.simple(oghamall.it.email.EmailPropertiesTest)
negated conditional → KILLED

3.3
Location : buildDefaultValueProps
Killed by : none
negated conditional → SURVIVED

164

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

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

3.3
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailPropertiesTest.simple(oghamall.it.email.EmailPropertiesTest)
negated conditional → KILLED

167

1.1
Location : buildDefaultValueProps
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailPropertiesTest.simple(oghamall.it.email.EmailPropertiesTest)
negated conditional → KILLED

3.3
Location : buildDefaultValueProps
Killed by : none
negated conditional → SURVIVED

170

1.1
Location : buildDefaultValueProps
Killed by : oghamcore.it.core.service.CleanupTest.manualCleanupShouldAutomaticallyCleanTheSenders(oghamcore.it.core.service.CleanupTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED

2.2
Location : buildDefaultValueProps
Killed by : oghamall.it.email.EmailSMTPAuthenticationTest.authenticated(oghamall.it.email.EmailSMTPAuthenticationTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED

3.3
Location : buildDefaultValueProps
Killed by : oghamspringbootv1autoconfigure.it.StaticMethodsAccessTest.emailUsingFreemarkerTemplateShouldBeAbleToCallStaticMethods(oghamspringbootv1autoconfigure.it.StaticMethodsAccessTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED

4.4
Location : buildDefaultValueProps
Killed by : oghamjavamail.it.UnreadableAttachmentTest.attachmentUnreadable(oghamjavamail.it.UnreadableAttachmentTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED

5.5
Location : buildDefaultValueProps
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → SURVIVED

6.6
Location : buildDefaultValueProps
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.emailUsingFreemarkerTemplateShouldBeAbleToCallStaticMethodsWithCustomVariableName(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → KILLED

7.7
Location : buildDefaultValueProps
Killed by : none
replaced return value with null for fr/sii/ogham/email/builder/AutofillEmailBuilder::buildDefaultValueProps → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM