dave08
09/28/2017, 12:34 PMorg.mockito.exceptions.misusing.InvalidUseOfMatchersException:
Invalid use of argument matchers!
2 matchers expected, 1 recorded:
-> at com.....SyncServiceSpec$1$3$2$5$1.doResume(SyncServiceSpec.kt:162)
This exception may occur if matchers are combined with raw values:
//incorrect:
someMethod(anyObject(), "raw String");
When using matchers, all arguments have to be provided by matchers.
For example:
//correct:
someMethod(anyObject(), eq("String by matcher"));
Since Mockito expects that all params should use matchers,