test_class.file: modules/flowable-rest/src/test/java/org/flowable/rest/service/api/repository/DeploymentResourceTest.java
test_class.identifier: DeploymentResourceTest
test_class.superclass: extends BaseSpringRestTestCase
test_case.body: @Test
      @org.flowable.engine.test.Deployment(resources = { "org/flowable/rest/service/api/repository/oneTaskProcess.bpmn20.xml" })
      public void testGetDeployment() throws Exception {
          Deployment existingDeployment = repositoryService.createDeploymentQuery().singleResult();
  
          HttpGet httpGet = new HttpGet(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_DEPLOYMENT, existingDeployment.getId()));
          CloseableHttpResponse response = executeRequest(httpGet, HttpStatus.SC_OK);
  
          JsonNode responseNode = objectMapper.readTree(response.getEntity().getContent());
  
          closeResponse(response);
          assertThatJson(responseNode)
                  .when(Option.IGNORING_EXTRA_FIELDS)
                  .isEqualTo("{"
                          + "id: '" + existingDeployment.getId() + "',"
                          + "name: '" + existingDeployment.getName() + "',"
                          + "url: '" + SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_DEPLOYMENT, existingDeployment.getId()) + "',"
                          + "category: " + existingDeployment.getCategory() + ","
                          + "deploymentTime: '${json-unit.any-string}',"
                          + "tenantId: ''"
                          + "}");
      }
test_case.class_method_signature: DeploymentResourceTest.testGetDeployment()
test_case.full_signature: @Test @org.flowable.engine.test.Deployment(resources = { "org/flowable/rest/service/api/repository/oneTaskProcess.bpmn20.xml" }) public void testGetDeployment()
test_case.identifier: testGetDeployment
test_case.invocations: singleResult createDeploymentQuery createRelativeResourceUrl getId executeRequest readTree getContent getEntity closeResponse isEqualTo when assertThatJson getId getName createRelativeResourceUrl getId getCategory
test_case.modifiers: @Test @org.flowable.engine.test.Deployment(resources = { "org/flowable/rest/service/api/repository/oneTaskProcess.bpmn20.xml" }) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDeployment()
focal_class.declarator: restResponseFactory
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected RestResponseFactory restResponseFactory;
focal_class.type: RestResponseFactory
focal_class.var_name: restResponseFactory
focal_class.declarator: repositoryService
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected RepositoryService repositoryService;
focal_class.type: RepositoryService
focal_class.var_name: repositoryService
focal_class.declarator: restApiInterceptor
focal_class.modifier: @Autowired(required=false)
      protected
focal_class.original_string: @Autowired(required=false)
      protected BpmnRestApiInterceptor restApiInterceptor;
focal_class.type: BpmnRestApiInterceptor
focal_class.var_name: restApiInterceptor
focal_class.file: modules/flowable-rest/src/main/java/org/flowable/rest/service/api/repository/DeploymentResource.java
focal_class.identifier: DeploymentResource
focal_class.class_method_signature: DeploymentResource.getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_class.full_signature: @ApiOperation(value = "Get a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the deployment was found and returned."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @GetMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public DeploymentResponse getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_class.identifier: getDeployment
focal_class.modifiers: @ApiOperation(value = "Get a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the deployment was found and returned."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @GetMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public
focal_class.parameters: (@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_class.return: DeploymentResponse
focal_class.signature: DeploymentResponse getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_class.class_method_signature: DeploymentResource.deleteDeployment(@ApiParam(name = "deploymentId") @PathVariable String deploymentId, @RequestParam(value = "cascade", required = false, defaultValue = "false") Boolean cascade,
              HttpServletResponse response)
focal_class.full_signature: @ApiOperation(value = "Delete a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 204, message = "Indicates the deployment was found and has been deleted. Response-body is intentionally empty."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @DeleteMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public void deleteDeployment(@ApiParam(name = "deploymentId") @PathVariable String deploymentId, @RequestParam(value = "cascade", required = false, defaultValue = "false") Boolean cascade,
              HttpServletResponse response)
focal_class.identifier: deleteDeployment
focal_class.modifiers: @ApiOperation(value = "Delete a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 204, message = "Indicates the deployment was found and has been deleted. Response-body is intentionally empty."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @DeleteMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public
focal_class.parameters: (@ApiParam(name = "deploymentId") @PathVariable String deploymentId, @RequestParam(value = "cascade", required = false, defaultValue = "false") Boolean cascade,
              HttpServletResponse response)
focal_class.return: void
focal_class.signature: void deleteDeployment(@ApiParam(name = "deploymentId") @PathVariable String deploymentId, @RequestParam(value = "cascade", required = false, defaultValue = "false") Boolean cascade,
              HttpServletResponse response)
focal_method.body: @ApiOperation(value = "Get a deployment", tags = { "Deployment" })
      @ApiResponses(value = {
              @ApiResponse(code = 200, message = "Indicates the deployment was found and returned."),
              @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.")
      })
      @GetMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json")
      public DeploymentResponse getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request) {
          Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();
  
          if (deployment == null) {
              throw new FlowableObjectNotFoundException("Could not find a deployment with id '" + deploymentId + "'.", Deployment.class);
          }
          
          if (restApiInterceptor != null) {
              restApiInterceptor.accessDeploymentById(deployment);
          }
  
          return restResponseFactory.createDeploymentResponse(deployment);
      }
focal_method.class_method_signature: DeploymentResource.getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_method.full_signature: @ApiOperation(value = "Get a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the deployment was found and returned."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @GetMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public DeploymentResponse getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_method.identifier: getDeployment
focal_method.invocations: singleResult deploymentId createDeploymentQuery accessDeploymentById createDeploymentResponse
focal_method.modifiers: @ApiOperation(value = "Get a deployment", tags = { "Deployment" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the deployment was found and returned."), @ApiResponse(code = 404, message = "Indicates the requested deployment was not found.") }) @GetMapping(value = "/repository/deployments/{deploymentId}", produces = "application/json") public
focal_method.parameters: (@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)
focal_method.return: DeploymentResponse
focal_method.signature: DeploymentResponse getDeployment(@ApiParam(name = "deploymentId", value ="The id of the deployment to get.") @PathVariable String deploymentId, HttpServletRequest request)