OghamOvhSmsProperties.java

1
package fr.sii.ogham.spring.sms;
2
3
import org.springframework.boot.context.properties.ConfigurationProperties;
4
import org.springframework.boot.context.properties.NestedConfigurationProperty;
5
6
import fr.sii.ogham.sms.sender.impl.ovh.SmsCoding;
7
8
@ConfigurationProperties("ogham.sms.ovh")
9
public class OghamOvhSmsProperties {
10
	/**
11
	 * URL of the OVH SMS HTTP API
12
	 */
13
	private String url = "https://www.ovh.com/cgi-bin/sms/http2sms.cgi";
14
	/**
15
	 * The OVH account identifier
16
	 */
17
	private String account;
18
	/**
19
	 * THe OVH username
20
	 */
21
	private String login;
22
	/**
23
	 * The OVH password
24
	 */
25
	private String password;
26
	@NestedConfigurationProperty
27
	private Options options = new Options();
28
29
	public String getUrl() {
30 2 1. getUrl : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getUrl → KILLED
2. getUrl : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getUrl → KILLED
		return url;
31
	}
32
33
	public void setUrl(String url) {
34
		this.url = url;
35
	}
36
37
	public String getAccount() {
38 2 1. getAccount : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getAccount → SURVIVED
2. getAccount : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getAccount → TIMED_OUT
		return account;
39
	}
40
41
	public void setAccount(String account) {
42
		this.account = account;
43
	}
44
45
	public String getLogin() {
46 1 1. getLogin : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getLogin → SURVIVED
		return login;
47
	}
48
49
	public void setLogin(String login) {
50
		this.login = login;
51
	}
52
53
	public String getPassword() {
54 1 1. getPassword : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getPassword → SURVIVED
		return password;
55
	}
56
57
	public void setPassword(String password) {
58
		this.password = password;
59
	}
60
61
	public Options getOptions() {
62 2 1. getOptions : replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getOptions → KILLED
2. getOptions : replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getOptions → KILLED
		return options;
63
	}
64
65
	public void setOptions(Options options) {
66
		this.options = options;
67
	}
68
69
	public static class Options {
70
		/**
71
		 * Enable/disable "STOP" indication at the end of the message (useful to
72
		 * disable for non-commercial SMS).
73
		 */
74
		private boolean noStop = true;
75
		/**
76
		 * Set the message encoding: NORMAL for 7bit encoding and UTF_8 for 8bit
77
		 * encoding.
78
		 * 
79
		 * If you use UTF-8, your SMS will have a maximum size of 70
80
		 * characters instead of 160
81
		 */
82
		private SmsCoding smsCoding;
83
		/**
84
		 * Set a tag to mark sent messages (20 maximum character string)
85
		 */
86
		private String tag;
87
88
		public boolean isNoStop() {
89 2 1. isNoStop : replaced boolean return with false for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::isNoStop → SURVIVED
2. isNoStop : replaced boolean return with true for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::isNoStop → SURVIVED
			return noStop;
90
		}
91
92
		public void setNoStop(boolean noStop) {
93
			this.noStop = noStop;
94
		}
95
96
		public SmsCoding getSmsCoding() {
97 1 1. getSmsCoding : replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::getSmsCoding → SURVIVED
			return smsCoding;
98
		}
99
100
		public void setSmsCoding(SmsCoding smsCoding) {
101
			this.smsCoding = smsCoding;
102
		}
103
104
		public String getTag() {
105 1 1. getTag : replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::getTag → SURVIVED
			return tag;
106
		}
107
108
		public void setTag(String tag) {
109
			this.tag = tag;
110
		}
111
	}
112
}

Mutations

30

1.1
Location : getUrl
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getUrl → KILLED

2.2
Location : getUrl
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getUrl → KILLED

38

1.1
Location : getAccount
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getAccount → SURVIVED

2.2
Location : getAccount
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getAccount → TIMED_OUT

46

1.1
Location : getLogin
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getLogin → SURVIVED

54

1.1
Location : getPassword
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getPassword → SURVIVED

62

1.1
Location : getOptions
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getOptions → KILLED

2.2
Location : getOptions
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties::getOptions → KILLED

89

1.1
Location : isNoStop
Killed by : none
replaced boolean return with false for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::isNoStop → SURVIVED

2.2
Location : isNoStop
Killed by : none
replaced boolean return with true for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::isNoStop → SURVIVED

97

1.1
Location : getSmsCoding
Killed by : none
replaced return value with null for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::getSmsCoding → SURVIVED

105

1.1
Location : getTag
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamOvhSmsProperties$Options::getTag → SURVIVED

Active mutators

Tests examined


Report generated by PIT OGHAM