@Test
public void shouldNotUpdateOnMessageWhenLowOnDisk() throws Exception {
when(diskSpaceMonitor.isLowOnDisk()).thenReturn(true);
materialUpdateListener.onMessage(new MaterialUpdateMessage(MATERIAL, 0));
verify(updater, new Times(0)).updateMaterial(MATERIAL);
}
java类org.mockito.internal.verification.Times的实例源码
MaterialUpdateListenerTest.java 文件源码
项目:gocd
阅读 20
收藏 0
点赞 0
评论 0