test_class.declarator: port
test_class.modifier: @Value("${local.server.port}")
      public
test_class.original_string: @Value("${local.server.port}")
      public int port;
test_class.type: int
test_class.var_name: port
test_class.declarator: mapper
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      ObjectMapper mapper;
test_class.type: ObjectMapper
test_class.var_name: mapper
test_class.declarator: upgradeAPI
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      UpgradeAPI upgradeAPI;
test_class.type: UpgradeAPI
test_class.var_name: upgradeAPI
test_class.declarator: versionService
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      VersionService versionService;
test_class.type: VersionService
test_class.var_name: versionService
test_class.file: dataprep-api/src/test/java/org/talend/dataprep/api/service/UpgradeAPITest.java
test_class.identifier: UpgradeAPITest
test_class.superclass: extends ApiServiceTestBase
test_case.body: @Test
      public void checkUpgradeServerFailure() throws Exception {
          // When
          upgradeAPI.setUpgradeVersionLocation("http://localhost:" + port + "/upgrade/server/failure"); // Update URL that
                                                                                                        // fails
  
          // Then
          String actual = RestAssured.when().get("/api/upgrade/check").asString();
          assertEquals("[]", actual, true);
      }
test_case.class_method_signature: UpgradeAPITest.checkUpgradeServerFailure()
test_case.full_signature: @Test public void checkUpgradeServerFailure()
test_case.identifier: checkUpgradeServerFailure
test_case.invocations: setUpgradeVersionLocation asString get when assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkUpgradeServerFailure()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(UpgradeAPI.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(UpgradeAPI.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: httpClient
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private HttpClient httpClient;
focal_class.type: HttpClient
focal_class.var_name: httpClient
focal_class.declarator: service
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private VersionService service;
focal_class.type: VersionService
focal_class.var_name: service
focal_class.declarator: upgradeVersionLocation
focal_class.modifier: @Value("${upgrade.location:}")
      private
focal_class.original_string: @Value("${upgrade.location:}")
      private String upgradeVersionLocation;
focal_class.type: String
focal_class.var_name: upgradeVersionLocation
focal_class.declarator: token
focal_class.modifier: private
focal_class.original_string: private String token;
focal_class.type: String
focal_class.var_name: token
focal_class.file: dataprep-api/src/main/java/org/talend/dataprep/api/service/UpgradeAPI.java
focal_class.identifier: UpgradeAPI
focal_class.class_method_signature: UpgradeAPI.toString(List<UpgradeServerVersion> versions)
focal_class.full_signature: private static String toString(List<UpgradeServerVersion> versions)
focal_class.identifier: toString
focal_class.modifiers: private static
focal_class.parameters: (List<UpgradeServerVersion> versions)
focal_class.return: String
focal_class.signature: String toString(List<UpgradeServerVersion> versions)
focal_class.class_method_signature: UpgradeAPI.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: UpgradeAPI.setUpgradeVersionLocation(String upgradeVersionLocation)
focal_class.full_signature:  void setUpgradeVersionLocation(String upgradeVersionLocation)
focal_class.identifier: setUpgradeVersionLocation
focal_class.parameters: (String upgradeVersionLocation)
focal_class.return: void
focal_class.signature: void setUpgradeVersionLocation(String upgradeVersionLocation)
focal_class.class_method_signature: UpgradeAPI.check()
focal_class.full_signature: @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 public Stream<UpgradeServerVersion> check()
focal_class.identifier: check
focal_class.modifiers: @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 public
focal_class.parameters: ()
focal_class.return: Stream<UpgradeServerVersion>
focal_class.signature: Stream<UpgradeServerVersion> check()
focal_class.class_method_signature: UpgradeAPI.fetchServerUpgradeVersions(org.talend.dataprep.info.Version version)
focal_class.full_signature: private List<UpgradeServerVersion> fetchServerUpgradeVersions(org.talend.dataprep.info.Version version)
focal_class.identifier: fetchServerUpgradeVersions
focal_class.modifiers: private
focal_class.parameters: (org.talend.dataprep.info.Version version)
focal_class.return: List<UpgradeServerVersion>
focal_class.signature: List<UpgradeServerVersion> fetchServerUpgradeVersions(org.talend.dataprep.info.Version version)
focal_class.superclass: extends APIService
focal_method.body: void setUpgradeVersionLocation(String upgradeVersionLocation) {
          this.upgradeVersionLocation = upgradeVersionLocation;
      }
focal_method.class_method_signature: UpgradeAPI.setUpgradeVersionLocation(String upgradeVersionLocation)
focal_method.full_signature:  void setUpgradeVersionLocation(String upgradeVersionLocation)
focal_method.identifier: setUpgradeVersionLocation
focal_method.parameters: (String upgradeVersionLocation)
focal_method.return: void
focal_method.signature: void setUpgradeVersionLocation(String upgradeVersionLocation)