| 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 |
1
1. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/context/SingleMessageContext::evaluate → NO_COVERAGE |
return template.replaceAll(quote("${messageIndex}"), Integer.toString(index)); |
| 14 | } | |
| 15 | } | |
Mutations | ||
| 13 |
1.1 |