public class ExceptionFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ExceptionFactory.JUnitArgsAreDifferent
Don't inline this class! It allows create the JUnit-ArgumentsAreDifferent exception without the need to use reflection.
|
Modifier and Type | Field and Description |
---|---|
private static boolean |
hasJUnit |
Modifier | Constructor and Description |
---|---|
private |
ExceptionFactory() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
canLoadJunitClass() |
static java.lang.AssertionError |
createArgumentsAreDifferentException(java.lang.String message,
java.lang.String wanted,
java.lang.String actual)
If JUnit is used, an AssertionError is returned that extends from JUnit
ComparisonFailure and hence provide a better IDE support as the comparison result is comparable |
private static java.lang.AssertionError |
createJUnitArgumentsAreDifferent(java.lang.String message,
java.lang.String wanted,
java.lang.String actual) |
public static java.lang.AssertionError createArgumentsAreDifferentException(java.lang.String message, java.lang.String wanted, java.lang.String actual)
ComparisonFailure
and hence provide a better IDE support as the comparison result is comparableprivate static java.lang.AssertionError createJUnitArgumentsAreDifferent(java.lang.String message, java.lang.String wanted, java.lang.String actual)
private static boolean canLoadJunitClass()