Class ArgumentsAreDifferent
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- org.mockito.exceptions.base.MockitoAssertionError
-
- org.mockito.exceptions.verification.ArgumentsAreDifferent
-
- All Implemented Interfaces:
Serializable
public class ArgumentsAreDifferent extends MockitoAssertionError
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArgumentsAreDifferent(String message)
ArgumentsAreDifferent(String message, String wanted, String actual)
Three-arg constructor for compatibility with ExceptionFactory's three-arg create method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
Methods inherited from class org.mockito.exceptions.base.MockitoAssertionError
getUnfilteredStackTrace
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ArgumentsAreDifferent
public ArgumentsAreDifferent(String message)
-
ArgumentsAreDifferent
public ArgumentsAreDifferent(String message, String wanted, String actual)
Three-arg constructor for compatibility with ExceptionFactory's three-arg create method. This implementation simply ignores the second and third arguments.- Parameters:
message
-wanted
- ignoredactual
- ignored
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-