test_class.declarator: processor
test_class.modifier: private
test_class.original_string: private ResourceDescriptionAddressProcessor processor;
test_class.type: ResourceDescriptionAddressProcessor
test_class.var_name: processor
test_class.file: meta/src/test/java/org/jboss/hal/meta/description/ResourceDescriptionAddressProcessorTest.java
test_class.identifier: ResourceDescriptionAddressProcessorTest
test_case.body: @Test
      public void serverConfig() throws Exception {
          ResourceAddress input = new ResourceAddress()
                  .add("host", "*")
                  .add("server-config", "server-one");
          ResourceAddress expected = new ResourceAddress()
                  .add("host", "*")
                  .add("server-config", "*");
  
          ResourceAddress result = processor.apply(input);
          assertEquals(expected, result);
      }
test_case.class_method_signature: ResourceDescriptionAddressProcessorTest.serverConfig()
test_case.full_signature: @Test public void serverConfig()
test_case.identifier: serverConfig
test_case.invocations: add add add add apply assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void serverConfig()
focal_class.file: meta/src/main/java/org/jboss/hal/meta/description/ResourceDescriptionAddressProcessor.java
focal_class.identifier: ResourceDescriptionAddressProcessor
focal_class.interfaces: implements Function<ResourceAddress, ResourceAddress>
focal_class.class_method_signature: ResourceDescriptionAddressProcessor.apply(ResourceAddress address)
focal_class.full_signature: @Override public ResourceAddress apply(ResourceAddress address)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (ResourceAddress address)
focal_class.return: ResourceAddress
focal_class.signature: ResourceAddress apply(ResourceAddress address)
focal_method.body: @Override
      public ResourceAddress apply(ResourceAddress address) {
          ResourceAddress modified = new ResourceAddress();
  
          if (address != null && !address.isEmpty()) {
              List<String[]> segments = address.asPropertyList().stream()
                      .map(property -> new String[]{property.getName(), property.getValue().asString()})
                      .collect(toList());
              SegmentProcessor.process(segments, segment -> modified.add(segment[0], segment[1]));
          }
  
          return modified;
      }
focal_method.class_method_signature: ResourceDescriptionAddressProcessor.apply(ResourceAddress address)
focal_method.full_signature: @Override public ResourceAddress apply(ResourceAddress address)
focal_method.identifier: apply
focal_method.invocations: isEmpty collect map stream asPropertyList getName asString getValue toList process add
focal_method.modifiers: @Override public
focal_method.parameters: (ResourceAddress address)
focal_method.return: ResourceAddress
focal_method.signature: ResourceAddress apply(ResourceAddress address)