@Test public void testStart_EndpointStopperCounterpart_Is_SetCounter_To_Zero() { sut.start(); verify(endpointStopperCounterpart, times(1)).setCounter(0); }
public void start() { endpointStopperCounterpart.setCounter(0); String groovyCommand = endpointStopperCounterpart.getEndpointNeedToStop() + ".start()"; busController.send(groovyCommand); Notification notification = new Notification(); notification.setDetails(groovyCommand + " was called."); notification.setSubject("The endpoint of si-c2s-xds was started"); notificationPublisher.publish(notification); }
EndpointStarter { public void start() { endpointStopperCounterpart.setCounter(0); String groovyCommand = endpointStopperCounterpart.getEndpointNeedToStop() + ".start()"; busController.send(groovyCommand); Notification notification = new Notification(); notification.setDetails(groovyCommand + " was called."); notification.setSubject("The endpoint of si-c2s-xds was started"); notificationPublisher.publish(notification); } }
EndpointStarter { public void start() { endpointStopperCounterpart.setCounter(0); String groovyCommand = endpointStopperCounterpart.getEndpointNeedToStop() + ".start()"; busController.send(groovyCommand); Notification notification = new Notification(); notification.setDetails(groovyCommand + " was called."); notification.setSubject("The endpoint of si-c2s-xds was started"); notificationPublisher.publish(notification); }  }
EndpointStarter { public void start() { endpointStopperCounterpart.setCounter(0); String groovyCommand = endpointStopperCounterpart.getEndpointNeedToStop() + ".start()"; busController.send(groovyCommand); Notification notification = new Notification(); notification.setDetails(groovyCommand + " was called."); notification.setSubject("The endpoint of si-c2s-xds was started"); notificationPublisher.publish(notification); }  void setEndpointStopperCounterpart(
			EndpointStopper endpointStopperCounterpart); void start(); }
EndpointStarter { public void start() { endpointStopperCounterpart.setCounter(0); String groovyCommand = endpointStopperCounterpart.getEndpointNeedToStop() + ".start()"; busController.send(groovyCommand); Notification notification = new Notification(); notification.setDetails(groovyCommand + " was called."); notification.setSubject("The endpoint of si-c2s-xds was started"); notificationPublisher.publish(notification); }  void setEndpointStopperCounterpart(
			EndpointStopper endpointStopperCounterpart); void start();  }