Base64Utils.java

1
package fr.sii.ogham.core.util;
2
3
import java.util.Base64;
4
5
public final class Base64Utils {
6
	/**
7
	 * Encode the byte array to a base64 string.
8
	 * 
9
	 * <p>
10
	 * {@link Base64#getEncoder()} is used.
11
	 * 
12
	 * @param bytes
13
	 *            the bytes to encode
14
	 * @return the base64 string
15
	 */
16
	public static String encodeToString(byte[] bytes) {
17 3 1. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → NO_COVERAGE
2. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED
3. encodeToString : replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED
		return Base64.getEncoder().encodeToString(bytes);
18
	}
19
20
	private Base64Utils() {
21
		super();
22
	}
23
}

Mutations

17

1.1
Location : encodeToString
Killed by : oghamall.it.html.translator.JsoupInlineImageTranslatorTest.skipAttach(oghamall.it.html.translator.JsoupInlineImageTranslatorTest)
replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED

2.2
Location : encodeToString
Killed by : none
replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → NO_COVERAGE

3.3
Location : encodeToString
Killed by : oghamcore.ut.html.inliner.impl.JsoupBase64ImageInlinerTest.differentImageFormats(oghamcore.ut.html.inliner.impl.JsoupBase64ImageInlinerTest)
replaced return value with "" for fr/sii/ogham/core/util/Base64Utils::encodeToString → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM