public class ThrowsReporter extends java.lang.Object implements Reporter
That basic reporter simply allows to throw an AssertionError in case a mismatch is found in the approval files. It is always available since it’s only throwing a pure Java error, and requires no particular software or library to be present on the running machine.
| Constructor and Description |
|---|
ThrowsReporter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAvailable()
A
ThrowsReporter is considered as always available since it has no external requirements at all. |
void |
mismatch(java.nio.file.Path approved,
java.nio.file.Path received)
Method called in case a mismatch is found.
|
public void mismatch(java.nio.file.Path approved,
java.nio.file.Path received)
Method called in case a mismatch is found.
mismatch in interface Reporterapproved - The Path to the approved file (which contains the data reviewed and approved by the developer)received - The Path to the temporary received file (which contains the data generated by the Program Under Tests)java.lang.AssertionError - if an actual mismatch is found.Reporter.mismatch(Path, Path)public boolean isAvailable()
A ThrowsReporter is considered as always available since it has no external requirements at all.
isAvailable in interface ReporterCopyright © 2018 Write Them First!. All rights reserved.