FoundParser.java

1
package fr.sii.ogham.testing.assertion.internal.helper;
2
3
import fr.sii.ogham.core.message.Message;
4
import fr.sii.ogham.core.template.parser.TemplateParser;
5
6
/**
7
 * Class that wraps found parsers and the associated message type.
8
 * 
9
 * @author Aurélien Baudet
10
 *
11
 * @param <T>
12
 *            the type of template parser implementation
13
 */
14
public class FoundParser<T extends TemplateParser> {
15
	private final T parser;
16
	private final Class<? extends Message> messageType;
17
18
	public FoundParser(T parser, Class<? extends Message> messageType) {
19
		super();
20
		this.parser = parser;
21
		this.messageType = messageType;
22
	}
23
24
	public T getParser() {
25 4 1. getParser : replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → NO_COVERAGE
2. getParser : replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → TIMED_OUT
3. getParser : replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → KILLED
4. getParser : replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → KILLED
		return parser;
26
	}
27
28
	public Class<? extends Message> getMessageType() {
29 1 1. getMessageType : replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getMessageType → NO_COVERAGE
		return messageType;
30
	}
31
}

Mutations

25

1.1
Location : getParser
Killed by : oghamall.it.configuration.ThymeleafConfigurationTest.asDeveloperIDefineCustomPathPrefixInMyOwnCode(oghamall.it.configuration.ThymeleafConfigurationTest)
replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → KILLED

2.2
Location : getParser
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2FreeMarkerAutoConfigurationTests.oghamWithFreemarkerAutoConfigWithoutWebContextShouldUseSpringFreemarkerConfiguration(oghamspringbootv2autoconfigure.it.OghamSpringBoot2FreeMarkerAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → KILLED

3.3
Location : getParser
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → NO_COVERAGE

4.4
Location : getParser
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getParser → TIMED_OUT

29

1.1
Location : getMessageType
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/internal/helper/FoundParser::getMessageType → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM