1 | package fr.sii.ogham.testing.assertion.sms; | |
2 | ||
3 | import fr.sii.ogham.testing.assertion.context.Context; | |
4 | import fr.sii.ogham.testing.sms.simulator.bean.SubmitSm; | |
5 | ||
6 | /** | |
7 | * Context dedicated to the {@code short_message} field of a {@link SubmitSm}. | |
8 | * | |
9 | * @author Aurélien Baudet | |
10 | * | |
11 | * @param <S> | |
12 | * the type of the {@link SubmitSm} | |
13 | */ | |
14 | public class ShortMessageWithContext<S extends SubmitSm> implements Context { | |
15 | private final S request; | |
16 | private final Context parent; | |
17 | ||
18 | /** | |
19 | * @param request | |
20 | * the sent request | |
21 | * @param parent | |
22 | * the parent context | |
23 | */ | |
24 | public ShortMessageWithContext(S request, Context parent) { | |
25 | super(); | |
26 | this.request = request; | |
27 | this.parent = parent; | |
28 | } | |
29 | ||
30 | @Override | |
31 | public String evaluate(String template) { | |
32 |
3
1. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → NO_COVERAGE 2. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → SURVIVED 3. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → KILLED |
return parent.evaluate(template); |
33 | } | |
34 | ||
35 | /** | |
36 | * @return the received request | |
37 | */ | |
38 | public S getRequest() { | |
39 |
4
1. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → NO_COVERAGE 2. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED 3. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED 4. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED |
return request; |
40 | } | |
41 | ||
42 | } | |
Mutations | ||
32 |
1.1 2.2 3.3 |
|
39 |
1.1 2.2 3.3 4.4 |