public final class Example extends Object
Modifier and Type | Method and Description |
---|---|
static CorrectExample |
fixed(String example)
Create an example text (usually just one sentence) without an error - the fixed error (compared to the text created
with
wrong(String) ) can be marked with {@code |
static IncorrectExample |
wrong(String example)
Create an example text (usually just one sentence) with an error - the error must be marked with {@code
|
public static IncorrectExample wrong(String example)
<marker>...</marker>
.IllegalArgumentException
- if the <marker>...</marker>
is missingpublic static CorrectExample fixed(String example)
wrong(String)
) can be marked with <marker>...</marker>
.