@Test public void testStart() throws Exception { environmentVariables.set("DRONENAME", instance.getName()); drone.initIdentifier(); drone.start(); Assert.assertTrue(mockDiscoverer.getRegisteredInstances().parallelStream().filter(ri -> ri.getName().equals(instance.getName())).count() == 1); drone.start(); Assert.assertThat(drone.getIdentifier(), startsWith(instance.getName() + "-")); Assert.assertThat(mockDiscoverer.getRegisteredInstances().size(), is(2)); }
public void start() throws IOException { log.info("Starting the drone now!"); this.registerDroneService(); }
DroneInit { public void start() throws IOException { log.info("Starting the drone now!"); this.registerDroneService(); } }
DroneInit { public void start() throws IOException { log.info("Starting the drone now!"); this.registerDroneService(); } DroneInit(String identifier, Discoverer discoverer, Instance registeredInstance);  DroneInit(); }
DroneInit { public void start() throws IOException { log.info("Starting the drone now!"); this.registerDroneService(); } 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 start() throws IOException { log.info("Starting the drone now!"); this.registerDroneService(); } 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();  }