public class JUnitFailureFactory extends Object implements FailureFactory
Constructor and Description |
---|
JUnitFailureFactory() |
Modifier and Type | Method and Description |
---|---|
Error |
createFailure(String message) |
Error |
createFailure(String message,
String expected,
String actual)
Creates a new failure object which can have different types, depending on
the testing framework you are currently using (e.g.
|
public Error createFailure(String message, String expected, String actual)
FailureFactory
createFailure
in interface FailureFactory
message
- The reason for the failureexpected
- The expected resultactual
- The actual resultpublic Error createFailure(String message)
createFailure
in interface FailureFactory
message
- The reason for the failureCopyright © 2002–2017. All rights reserved.