test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/yaml/engine/representer/ShardingSphereYamlRepresenterTest.java
test_class.identifier: ShardingSphereYamlRepresenterTest
test_case.body: @Test
      public void assertRepresentJavaBeanProperty() throws IntrospectionException {
          ShardingSphereYamlRepresenter shardingSphereYamlRepresenter = new ShardingSphereYamlRepresenter();
          DefaultYamlRepresenterFixture javaBean = new DefaultYamlRepresenterFixture();
          PropertyDescriptor propertyDescriptor = new PropertyDescriptor("collection", DefaultYamlRepresenterFixture.class);
          MethodProperty methodProperty = new MethodProperty(propertyDescriptor);
          List<String> propertyValue = new ArrayList<>(2);
          propertyValue.add("value1");
          propertyValue.add("value2");
          NodeTuple actual = shardingSphereYamlRepresenter.representJavaBeanProperty(javaBean, methodProperty, propertyValue, null);
          List<Node> nodes = ((SequenceNode) actual.getValueNode()).getValue();
          assertThat(nodes.size(), is(2));
          assertTrue(nodes.stream().map(node -> ((ScalarNode) node).getValue()).collect(Collectors.toList()).containsAll(propertyValue));
      }
test_case.class_method_signature: ShardingSphereYamlRepresenterTest.assertRepresentJavaBeanProperty()
test_case.full_signature: @Test public void assertRepresentJavaBeanProperty()
test_case.identifier: assertRepresentJavaBeanProperty
test_case.invocations: add add representJavaBeanProperty getValue getValueNode assertThat size is assertTrue containsAll collect map stream getValue toList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertRepresentJavaBeanProperty()
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/yaml/engine/representer/ShardingSphereYamlRepresenter.java
focal_class.identifier: ShardingSphereYamlRepresenter
focal_class.class_method_signature: ShardingSphereYamlRepresenter.ShardingSphereYamlRepresenter()
focal_class.full_signature: public  ShardingSphereYamlRepresenter()
focal_class.identifier: ShardingSphereYamlRepresenter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ShardingSphereYamlRepresenter()
focal_class.class_method_signature: ShardingSphereYamlRepresenter.representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_class.full_signature: @Override protected NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_class.identifier: representJavaBeanProperty
focal_class.modifiers: @Override protected
focal_class.parameters: (final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_class.return: NodeTuple
focal_class.signature: NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_class.superclass: extends Representer
focal_method.body: @Override
      protected NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag) {
          NodeTuple nodeTuple = super.representJavaBeanProperty(javaBean, property, propertyValue, customTag);
          for (ShardingSphereYamlTupleProcessor each : ShardingSphereServiceLoader.newServiceInstances(ShardingSphereYamlTupleProcessor.class)) {
              if (property.getName().equals(each.getTupleName())) {
                  return each.process(nodeTuple);
              }
          }
          return new DefaultYamlTupleProcessor().process(nodeTuple);
      }
focal_method.class_method_signature: ShardingSphereYamlRepresenter.representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_method.full_signature: @Override protected NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_method.identifier: representJavaBeanProperty
focal_method.invocations: representJavaBeanProperty newServiceInstances equals getName getTupleName process process
focal_method.modifiers: @Override protected
focal_method.parameters: (final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)
focal_method.return: NodeTuple
focal_method.signature: NodeTuple representJavaBeanProperty(final Object javaBean, final Property property, final Object propertyValue, final Tag customTag)