private void buildContactInfoSection(MarkupDocBuilder markupDocBuilder, Contact contact) { if (contact != null) { contactInfoComponent.apply(markupDocBuilder, ContactInfoComponent.parameters(contact, SECTION_TITLE_LEVEL)); } }
@Test public void testVersionInfoComponent() throws URISyntaxException { Contact contact = new Contact().name("TestName").email("test@test.de"); Swagger2MarkupConverter.Context context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new ContactInfoComponent(context).apply(markupDocBuilder, ContactInfoComponent.parameters( contact, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); } }
private void buildContactInfoSection(MarkupDocBuilder markupDocBuilder, Contact contact) { if (contact != null) { contactInfoComponent.apply(markupDocBuilder, ContactInfoComponent.parameters(contact, SECTION_TITLE_LEVEL)); } }
private void buildContactInfoSection(MarkupDocBuilder markupDocBuilder, Contact contact) { if (contact != null) { contactInfoComponent.apply(markupDocBuilder, ContactInfoComponent.parameters(contact, SECTION_TITLE_LEVEL)); } }