@Test public void testStop() throws Exception { testStart(); drone.stop(); Assert.assertTrue(mockDiscoverer.getRegisteredInstances().parallelStream().filter(ri -> ri.getName().equals(instance.getName())).count() == 1); Assert.assertTrue(mockDiscoverer.getRegisteredInstances().get(0).getName().equals(instance.getName())); }
public void stop() throws IOException { log.info("Stopping the drone now!"); this.unregisterDroneService(); }
DroneInit { public void stop() throws IOException { log.info("Stopping the drone now!"); this.unregisterDroneService(); } }
DroneInit { public void stop() throws IOException { log.info("Stopping the drone now!"); this.unregisterDroneService(); } DroneInit(String identifier, Discoverer discoverer, Instance registeredInstance);  DroneInit(); }
DroneInit { public void stop() throws IOException { log.info("Stopping the drone now!"); this.unregisterDroneService(); } DroneInit(String identifier, Discoverer discoverer, Instance registeredInstance);  DroneInit(); String getIdentifier(); void setIdentifier(String identifier); static Logger getLog(); Discoverer getDiscoverer(); void setDiscoverer(Discoverer discoverer); Instance getRegisteredInstance(); void setRegisteredInstance(Instance registeredInstance); void start(); void stop(); String getTeamname(); void initIdentifier(); }
DroneInit { public void stop() throws IOException { log.info("Stopping the drone now!"); this.unregisterDroneService(); } DroneInit(String identifier, Discoverer discoverer, Instance registeredInstance);  DroneInit(); String getIdentifier(); void setIdentifier(String identifier); static Logger getLog(); Discoverer getDiscoverer(); void setDiscoverer(Discoverer discoverer); Instance getRegisteredInstance(); void setRegisteredInstance(Instance registeredInstance); void start(); void stop(); String getTeamname(); void initIdentifier();  }