@Test public void testGetTeamname() throws Exception { Assert.assertEquals("unknown_team", drone.getTeamname()); environmentVariables.set("DRONE_TEAM", "known_team"); Assert.assertEquals("known_team", drone.getTeamname()); }
public String getTeamname() { String teamname = "unknown_team"; if (System.getenv("DRONE_TEAM") != null) { teamname = System.getenv("DRONE_TEAM"); } return teamname; }
DroneInit { public String getTeamname() { String teamname = "unknown_team"; if (System.getenv("DRONE_TEAM") != null) { teamname = System.getenv("DRONE_TEAM"); } return teamname; } }
DroneInit { public String getTeamname() { String teamname = "unknown_team"; if (System.getenv("DRONE_TEAM") != null) { teamname = System.getenv("DRONE_TEAM"); } return teamname; } DroneInit(String identifier, Discoverer discoverer, Instance registeredInstance);  DroneInit(); }
DroneInit { public String getTeamname() { String teamname = "unknown_team"; if (System.getenv("DRONE_TEAM") != null) { teamname = System.getenv("DRONE_TEAM"); } return teamname; } 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 String getTeamname() { String teamname = "unknown_team"; if (System.getenv("DRONE_TEAM") != null) { teamname = System.getenv("DRONE_TEAM"); } return teamname; } 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();  }