Package org.mockito.internal.junit
Class ExceptionFactory.JUnitArgsAreDifferent
- java.lang.Object
-
- org.mockito.internal.junit.ExceptionFactory.JUnitArgsAreDifferent
-
- Enclosing class:
- ExceptionFactory
private static class ExceptionFactory.JUnitArgsAreDifferent extends java.lang.Object
Don't inline this class! It allows create the JUnit-ArgumentsAreDifferent exception without the need to use reflection.If JUnit is not available a call to
create(String, String, String)
will throw aNoClassDefFoundError
. TheNoClassDefFoundError
will be thrown by the class loader cause the JUnit classComparisonFailure
can't be loaded which is a upper class of ArgumentsAreDifferent.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JUnitArgsAreDifferent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.AssertionError
create(java.lang.String message, java.lang.String wanted, java.lang.String actual)
-