Package org.nuxeo.runtime.test
Class Failures
- java.lang.Object
-
- org.nuxeo.runtime.test.Failures
-
public class Failures extends Object
Utility class for working withResult.getFailures()- Since:
- 5.9.5
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfail(String originalMessage, String customMessage)CallAssert.fail(String)with a nice expanded string if there are failures.StringtoString()
-
-
-
Constructor Detail
-
Failures
public Failures(List<org.junit.runner.notification.Failure> failures)
-
Failures
public Failures(org.junit.runner.Result result)
-
-
Method Detail
-
fail
public void fail(String originalMessage, String customMessage)
CallAssert.fail(String)with a nice expanded string if there are failures. It also replaces original failure messages with a custom one if originalMessage is notnull.- Parameters:
originalMessage- Message to replace if found in a failurecustomMessage- Custom message to use as replacement for originalMessage
-
-