use*_*539 5 java eclipse junit4 powermock ecobertura
以下代码:
@Mock
private Appender mockAppender;
@Captor
private ArgumentCaptor<LoggingEvent> captorLoggingEvent;
...
verify(mockAppender, atLeastOnce()).doAppend(captorLoggingEvent.capture());
Run Code Online (Sandbox Code Playgroud)
作为 JUnit 测试正常运行,但使用 ecobertura 失败并显示以下消息:
Wanted but not invoked:
appender.doAppend(<Capturing argument>);...Actually, there were zero interactions with this mock.
Run Code Online (Sandbox Code Playgroud)
我正在使用 :
你能帮我解决这个问题吗?
| 归档时间: |
|
| 查看次数: |
431 次 |
| 最近记录: |