FixedDescription.java

1
package fr.sii.ogham.testing.assertion.hamcrest;
2
3
import org.hamcrest.Description;
4
import org.hamcrest.SelfDescribing;
5
6
/**
7
 * Provides a fixed string as description.
8
 * 
9
 * @author Aurélien Baudet
10
 *
11
 */
12
public class FixedDescription implements Description {
13
	private final String description;
14
15
	public FixedDescription(String description) {
16
		super();
17
		this.description = description;
18
	}
19
20
	@Override
21
	public Description appendText(String text) {
22 1 1. appendText : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendText → NO_COVERAGE
		return this;
23
	}
24
25
	@Override
26
	public Description appendDescriptionOf(SelfDescribing value) {
27 1 1. appendDescriptionOf : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendDescriptionOf → NO_COVERAGE
		return this;
28
	}
29
30
	@Override
31
	public Description appendValue(Object value) {
32 1 1. appendValue : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValue → NO_COVERAGE
		return this;
33
	}
34
35
	@SafeVarargs
36
	@Override
37
	public final <T> Description appendValueList(String start, String separator, String end, T... values) {
38 1 1. appendValueList : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValueList → NO_COVERAGE
		return this;
39
	}
40
41
	@Override
42
	public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values) {
43 1 1. appendValueList : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValueList → NO_COVERAGE
		return this;
44
	}
45
46
	@Override
47
	public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values) {
48 1 1. appendList : replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendList → NO_COVERAGE
		return this;
49
	}
50
51
	@Override
52
	public String toString() {
53 2 1. toString : replaced return value with "" for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::toString → NO_COVERAGE
2. toString : replaced return value with "" for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::toString → KILLED
		return description;
54
	}
55
56
}

Mutations

22

1.1
Location : appendText
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendText → NO_COVERAGE

27

1.1
Location : appendDescriptionOf
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendDescriptionOf → NO_COVERAGE

32

1.1
Location : appendValue
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValue → NO_COVERAGE

38

1.1
Location : appendValueList
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValueList → NO_COVERAGE

43

1.1
Location : appendValueList
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendValueList → NO_COVERAGE

48

1.1
Location : appendList
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::appendList → NO_COVERAGE

53

1.1
Location : toString
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::toString → NO_COVERAGE

2.2
Location : toString
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced return value with "" for fr/sii/ogham/testing/assertion/hamcrest/FixedDescription::toString → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM