【发布时间】:2018-07-31 20:00:07
【问题描述】:
我正在尝试测试此方法,但出现以下错误:
Method threw 'org.mockito.exceptions.misusing.InvalidUseOfMatchersException' exception.
在这一行 代码:
when(tester.method(
any(String.class), any(LocalDate.class), any(boolean.class),any(boolean.class), any(String.class))).thenReturn(item);
【问题讨论】:
-
你能发布更多你的测试代码吗?特别是围绕测试人员的嘲笑
标签: unit-testing testing junit