test_class.declarator: COMPONENT_NAME = "body_parameter"
test_class.modifier: private static final
test_class.original_string: private static final String COMPONENT_NAME = "body_parameter";
test_class.type: String
test_class.var_name: COMPONENT_NAME
test_class.declarator: outputDirectory
test_class.modifier: private
test_class.original_string: private Path outputDirectory;
test_class.type: Path
test_class.var_name: outputDirectory
test_class.file: swagger2markup/src/test/java/io/github/swagger2markup/internal/component/BodyParameterComponentTest.java
test_class.identifier: BodyParameterComponentTest
test_class.superclass: extends AbstractComponentTest
test_case.body: @Test
      public void testBodyParameterComponent() throws URISyntaxException {
          //Given
          Path file = Paths.get(AsciidocConverterTest.class.getResource("/yaml/swagger_petstore.yaml").toURI());
          Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder().withFlatBody().build();
          Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(file).withConfig(config).build();
          Swagger swagger = converter.getContext().getSchema();
  
          io.swagger.models.Path path = swagger.getPaths().get("/pets");
          List<SwaggerPathOperation> pathOperations = PathUtils.toPathOperationsList("/pets", path);
  
          Swagger2MarkupConverter.SwaggerContext context = converter.getContext();
          MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder();
  
          //When
          markupDocBuilder = new BodyParameterComponent(converter.getContext(),
                  new DefinitionDocumentResolverFromOperation(context))
                  .apply(markupDocBuilder, BodyParameterComponent.parameters(pathOperations.get(0), new ArrayList<>()));
  
          markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8);
  
          //Then
          Path expectedFile = getExpectedFile(COMPONENT_NAME);
          DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME));
  
      }
test_case.class_method_signature: BodyParameterComponentTest.testBodyParameterComponent()
test_case.full_signature: @Test public void testBodyParameterComponent()
test_case.identifier: testBodyParameterComponent
test_case.invocations: get toURI getResource build withFlatBody build withConfig from getSchema getContext get getPaths toPathOperationsList getContext createMarkupDocBuilder apply getContext parameters get writeToFileWithoutExtension getExpectedFile assertThatFileIsEqual getReportName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBodyParameterComponent()
focal_class.declarator: definitionDocumentResolver
focal_class.modifier: private final
focal_class.original_string: private final DocumentResolver definitionDocumentResolver;
focal_class.type: DocumentResolver
focal_class.var_name: definitionDocumentResolver
focal_class.declarator: propertiesTableComponent
focal_class.modifier: private final
focal_class.original_string: private final PropertiesTableComponent propertiesTableComponent;
focal_class.type: PropertiesTableComponent
focal_class.var_name: propertiesTableComponent
focal_class.file: swagger2markup/src/main/java/io/github/swagger2markup/internal/component/BodyParameterComponent.java
focal_class.identifier: BodyParameterComponent
focal_class.class_method_signature: BodyParameterComponent.BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_class.full_signature: public  BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_class.identifier: BodyParameterComponent
focal_class.modifiers: public
focal_class.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_class.signature:  BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_class.class_method_signature: BodyParameterComponent.parameters(SwaggerPathOperation operation,
                                                                 List<ObjectType> inlineDefinitions)
focal_class.full_signature: public static BodyParameterComponent.Parameters parameters(SwaggerPathOperation operation,
                                                                 List<ObjectType> inlineDefinitions)
focal_class.identifier: parameters
focal_class.modifiers: public static
focal_class.parameters: (SwaggerPathOperation operation,
                                                                 List<ObjectType> inlineDefinitions)
focal_class.return: BodyParameterComponent.Parameters
focal_class.signature: BodyParameterComponent.Parameters parameters(SwaggerPathOperation operation,
                                                                 List<ObjectType> inlineDefinitions)
focal_class.class_method_signature: BodyParameterComponent.apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.full_signature: @Override public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.return: MarkupDocBuilder
focal_class.signature: MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.class_method_signature: BodyParameterComponent.buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.full_signature: private void buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.identifier: buildSectionTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String title)
focal_class.return: void
focal_class.signature: void buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.superclass: extends MarkupComponent<BodyParameterComponent.Parameters>
focal_method.body: public BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver) {
          super(context);
          this.definitionDocumentResolver = Validate.notNull(definitionDocumentResolver, "DocumentResolver must not be null");
          this.propertiesTableComponent = new PropertiesTableComponent(context, definitionDocumentResolver);
      }
focal_method.class_method_signature: BodyParameterComponent.BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_method.full_signature: public  BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_method.identifier: BodyParameterComponent
focal_method.modifiers: public
focal_method.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)
focal_method.signature:  BodyParameterComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver)