CssImageDeclaration.java

1
package fr.sii.ogham.html.inliner.impl.regexp;
2
3
import fr.sii.ogham.html.inliner.ImageResource;
4
5
/**
6
 * Information about an image that is included through CSS property.
7
 * 
8
 * @author Aurélien Baudet
9
 *
10
 */
11
public class CssImageDeclaration {
12
	private final MatchedUrl url;
13
	private final String mode;
14
	private final ImageResource image;
15
16
	public CssImageDeclaration(MatchedUrl url, String mode, ImageResource image) {
17
		super();
18
		this.url = url;
19
		this.mode = mode;
20
		this.image = image;
21
	}
22
23
	public MatchedUrl getUrl() {
24 3 1. getUrl : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → NO_COVERAGE
2. getUrl : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → KILLED
3. getUrl : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → KILLED
		return url;
25
	}
26
27
	public String getMode() {
28 3 1. getMode : replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → NO_COVERAGE
2. getMode : replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → KILLED
3. getMode : replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → KILLED
		return mode;
29
	}
30
31
	public ImageResource getImage() {
32 3 1. getImage : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → NO_COVERAGE
2. getImage : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → KILLED
3. getImage : replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → KILLED
		return image;
33
	}
34
35
}

Mutations

24

1.1
Location : getUrl
Killed by : none
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → NO_COVERAGE

2.2
Location : getUrl
Killed by : oghamall.it.email.EmailResourceInliningTest.inlineResources(oghamall.it.email.EmailResourceInliningTest)
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → KILLED

3.3
Location : getUrl
Killed by : oghamcore.it.html.translator.InlineImageTranslatorTest.backgroudImagesShouldBeInlined(oghamcore.it.html.translator.InlineImageTranslatorTest)
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getUrl → KILLED

28

1.1
Location : getMode
Killed by : oghamall.it.email.EmailResourceInliningTest.inlineResources(oghamall.it.email.EmailResourceInliningTest)
replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → KILLED

2.2
Location : getMode
Killed by : none
replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → NO_COVERAGE

3.3
Location : getMode
Killed by : oghamcore.it.html.translator.InlineImageTranslatorTest.backgroudImagesShouldBeInlined(oghamcore.it.html.translator.InlineImageTranslatorTest)
replaced return value with "" for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getMode → KILLED

32

1.1
Location : getImage
Killed by : none
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → NO_COVERAGE

2.2
Location : getImage
Killed by : oghamall.it.email.EmailResourceInliningTest.inlineResources(oghamall.it.email.EmailResourceInliningTest)
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → KILLED

3.3
Location : getImage
Killed by : oghamcore.it.html.translator.InlineImageTranslatorTest.backgroudImagesShouldBeInlined(oghamcore.it.html.translator.InlineImageTranslatorTest)
replaced return value with null for fr/sii/ogham/html/inliner/impl/regexp/CssImageDeclaration::getImage → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM