Package org.dmfs.jems2.mockito.doubles
Class TestDoubles
java.lang.Object
org.dmfs.jems2.mockito.doubles.TestDoubles
Static factory methods for creating test doubles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TCreates a 'dummy' object of the provided class, i.e. a test-double that is only used as a 'placeholder' instance for some argument.static <T> TfailingMock(Class<T> clazz) Creates a mock for the provided class that fails on every method call by default.
-
Constructor Details
-
TestDoubles
public TestDoubles()
-
-
Method Details
-
dummy
Creates a 'dummy' object of the provided class, i.e. a test-double that is only used as a 'placeholder' instance for some argument. -
failingMock
Creates a mock for the provided class that fails on every method call by default.
-