@Test public void testOnOtherPipelineExecutionStopped() { preparePipelineExecutionTraceSetup(); PipelineExecutionTraceKey otherKey = mock(PipelineExecutionTraceKey.class); RuntimeListItem item = new RuntimeListItem(RUNTIME_NAME, trace); presenter.setup(item); presenter.onPipelineExecutionChange(new PipelineExecutionChangeEvent(PipelineExecutionChange.STOPPED, otherKey)); verify(presenter, never()).refresh(any(PipelineExecutionTraceKey.class)); }
@Test public void testOnOtherPipelineExecutionStopped() { preparePipelineExecutionTraceSetup(); PipelineExecutionTraceKey otherKey = mock(PipelineExecutionTraceKey.class); RuntimeListItem item = new RuntimeListItem(RUNTIME_NAME, trace); presenter.setup(item); presenter.onPipelineExecutionChange(new PipelineExecutionChangeEvent(PipelineExecutionChange.STOPPED, otherKey)); verify(presenter, never()).refresh(any(PipelineExecutionTraceKey.class)); }
@Test public void testOnCurrentPipelineExecutionStopped() { preparePipelineExecutionTraceSetup(); PipelineExecutionTraceKey currentKey = trace.getKey(); RuntimeListItem item = new RuntimeListItem(RUNTIME_NAME, trace); presenter.setup(item); presenter.onPipelineExecutionChange(new PipelineExecutionChangeEvent(PipelineExecutionChange.STOPPED, currentKey)); verify(presenter, times(1)).refresh(currentKey); }
@Test public void testOnCurrentPipelineExecutionStopped() { preparePipelineExecutionTraceSetup(); PipelineExecutionTraceKey currentKey = trace.getKey(); RuntimeListItem item = new RuntimeListItem(RUNTIME_NAME, trace); presenter.setup(item); presenter.onPipelineExecutionChange(new PipelineExecutionChangeEvent(PipelineExecutionChange.STOPPED, currentKey)); verify(presenter, times(1)).refresh(currentKey); }