test_class.file: modules/flowable-rest/src/test/java/org/flowable/rest/service/api/management/PropertiesCollectionResourceTest.java
test_class.identifier: PropertiesCollectionResourceTest
test_class.superclass: extends BaseSpringRestTestCase
test_case.body: @Test
      public void testGetProperties() throws Exception {
          CloseableHttpResponse response = executeRequest(new HttpGet(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_PROPERTIES_COLLECTION)),
                  HttpStatus.SC_OK);
  
          Map<String, String> properties = managementService.getProperties();
  
          JsonNode responseNode = objectMapper.readTree(response.getEntity().getContent());
          closeResponse(response);
          assertThat(responseNode).isNotNull();
          assertThat(responseNode).hasSize(properties.size());
  
          Iterator<Map.Entry<String, JsonNode>> nodes = responseNode.fields();
          Map.Entry<String, JsonNode> node = null;
          while (nodes.hasNext()) {
              node = nodes.next();
              String propValue = properties.get(node.getKey());
              assertThat(propValue).isNotNull();
              assertThat(node.getValue().textValue()).isEqualTo(propValue);
          }
      }
test_case.class_method_signature: PropertiesCollectionResourceTest.testGetProperties()
test_case.full_signature: @Test public void testGetProperties()
test_case.identifier: testGetProperties
test_case.invocations: executeRequest createRelativeResourceUrl getProperties readTree getContent getEntity closeResponse isNotNull assertThat hasSize assertThat size fields hasNext next get getKey isNotNull assertThat isEqualTo assertThat textValue getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetProperties()
focal_class.declarator: managementService
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected ManagementService managementService;
focal_class.type: ManagementService
focal_class.var_name: managementService
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/management/PropertiesCollectionResource.java
focal_class.identifier: PropertiesCollectionResource
focal_class.class_method_signature: PropertiesCollectionResource.getProperties()
focal_class.full_signature: @ApiOperation(value = "List engine properties", tags = { "Engine" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the properties are returned."), }) @GetMapping(value = "/management/properties", produces = "application/json") public Map<String, String> getProperties()
focal_class.identifier: getProperties
focal_class.modifiers: @ApiOperation(value = "List engine properties", tags = { "Engine" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the properties are returned."), }) @GetMapping(value = "/management/properties", produces = "application/json") public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getProperties()
focal_method.body: @ApiOperation(value = "List engine properties", tags = { "Engine" })
      @ApiResponses(value = {
              @ApiResponse(code = 200, message = "Indicates the properties are returned."),
      })
      @GetMapping(value = "/management/properties", produces = "application/json")
      public Map<String, String> getProperties() {
          if (restApiInterceptor != null) {
              restApiInterceptor.accessManagementInfo();
          }
          
          return managementService.getProperties();
      }
focal_method.class_method_signature: PropertiesCollectionResource.getProperties()
focal_method.full_signature: @ApiOperation(value = "List engine properties", tags = { "Engine" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the properties are returned."), }) @GetMapping(value = "/management/properties", produces = "application/json") public Map<String, String> getProperties()
focal_method.identifier: getProperties
focal_method.invocations: accessManagementInfo getProperties
focal_method.modifiers: @ApiOperation(value = "List engine properties", tags = { "Engine" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates the properties are returned."), }) @GetMapping(value = "/management/properties", produces = "application/json") public
focal_method.parameters: ()
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> getProperties()