Mockito matcher that matches anything, including nulls and varargs.
Creates a KArgumentCaptor for given type.
Mockito matcher that matches if the argument is the same as the provided value.
Expect block to throw an exception. Otherwise fail the test (junit).
Dynamically create a mock object. This method is helpful when creating mocks of classes using generics.
Creates a custom MotionEvent for testing. As of SDK 28 MotionEvents can’t be mocked anymore and need to be created through MotionEvent.obtain.
Enables stubbing methods. Use it when you want the mock to return particular value when particular method is called.