@Test public void checkUpgradeServerFailure() throws Exception { upgradeAPI.setUpgradeVersionLocation("http: String actual = RestAssured.when().get("/api/upgrade/check").asString(); assertEquals("[]", actual, true); }
void setUpgradeVersionLocation(String upgradeVersionLocation) { this.upgradeVersionLocation = upgradeVersionLocation; }
UpgradeAPI extends APIService { void setUpgradeVersionLocation(String upgradeVersionLocation) { this.upgradeVersionLocation = upgradeVersionLocation; } }
UpgradeAPI extends APIService { void setUpgradeVersionLocation(String upgradeVersionLocation) { this.upgradeVersionLocation = upgradeVersionLocation; }  }
UpgradeAPI extends APIService { void setUpgradeVersionLocation(String upgradeVersionLocation) { this.upgradeVersionLocation = upgradeVersionLocation; }  @PostConstruct void init(); @RequestMapping(value = "/api/upgrade/check", method = GET) @ApiOperation(value = "Checks if a newer versions are available and returns them as JSON.", produces = MediaType.APPLICATION_JSON_VALUE) @Timed @PublicAPI Stream<UpgradeServerVersion> check(); }
UpgradeAPI extends APIService { void setUpgradeVersionLocation(String upgradeVersionLocation) { this.upgradeVersionLocation = upgradeVersionLocation; }  @PostConstruct void init(); @RequestMapping(value = "/api/upgrade/check", method = GET) @ApiOperation(value = "Checks if a newer versions are available and returns them as JSON.", produces = MediaType.APPLICATION_JSON_VALUE) @Timed @PublicAPI Stream<UpgradeServerVersion> check();  }