WrongPackageNameEmailCompat.java

1
package fr.sii.ogham.email.sendgrid.v4.sender.impl.sendgrid.compat;
2
3
import com.sendgrid.Email;
4
5
/**
6
 * Compatibility wrapper that wraps {@link Email} instance and delegates
7
 * operations to it.
8
 * 
9
 * @author Aurélien Baudet
10
 * @see CompatUtil
11
 * @see CompatFactory
12
 */
13
public class WrongPackageNameEmailCompat implements EmailCompat {
14
	private final Email delegate;
15
16
	public WrongPackageNameEmailCompat() {
17
		this(new Email());
18
	}
19
	
20
	public WrongPackageNameEmailCompat(Email delegate) {
21
		super();
22
		this.delegate = delegate;
23
	}
24
	
25
	@Override
26
	public String getName() {
27 1 1. getName : negated conditional → NO_COVERAGE
		if (delegate == null) {
28 1 1. getName : replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getName → NO_COVERAGE
			return null;
29
		}
30 1 1. getName : replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getName → NO_COVERAGE
		return delegate.getName();
31
	}
32
33
	@Override
34
	public String getEmail() {
35 1 1. getEmail : negated conditional → NO_COVERAGE
		if (delegate == null) {
36 1 1. getEmail : replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getEmail → NO_COVERAGE
			return null;
37
		}
38 1 1. getEmail : replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getEmail → NO_COVERAGE
		return delegate.getEmail();
39
	}
40
41
}

Mutations

27

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

28

1.1
Location : getName
Killed by : none
replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getName → NO_COVERAGE

30

1.1
Location : getName
Killed by : none
replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getName → NO_COVERAGE

35

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

36

1.1
Location : getEmail
Killed by : none
replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getEmail → NO_COVERAGE

38

1.1
Location : getEmail
Killed by : none
replaced return value with "" for fr/sii/ogham/email/sendgrid/v4/sender/impl/sendgrid/compat/WrongPackageNameEmailCompat::getEmail → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM