org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
Invalid use of argument matchers!
3 matchers expected, 2 recorded:
-> at com.FilterDeviceReplaceTest.init(FilterDeviceReplaceTest.java:41)
-> at com.FilterDeviceReplaceTest.init(FilterDeviceReplaceTest.java:46)

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"));

For more info see javadoc for Matchers class.

 

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-06-10
  • 2021-11-06
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案