1 | package fr.sii.ogham.testing.assertion.context; | |
2 | ||
3 | import static java.util.regex.Pattern.quote; | |
4 | ||
5 | public class SingleMessageContext implements Context { | |
6 | private final int index; | |
7 | public SingleMessageContext(int index) { | |
8 | super(); | |
9 | this.index = index; | |
10 | } | |
11 | @Override | |
12 | public String evaluate(String template) { | |
13 |
4
1. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/context/SingleMessageContext::evaluate → NO_COVERAGE 2. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/context/SingleMessageContext::evaluate → SURVIVED 3. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/context/SingleMessageContext::evaluate → TIMED_OUT 4. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/context/SingleMessageContext::evaluate → KILLED |
return template.replaceAll(quote("${messageIndex}"), Integer.toString(index)); |
14 | } | |
15 | } | |
Mutations | ||
13 |
1.1 2.2 3.3 4.4 |