diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/languages/features/DocumentationProviderFeaturesTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/languages/features/DocumentationProviderFeaturesTest.java index 42e29ccbe516..0954e79fb3a9 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/languages/features/DocumentationProviderFeaturesTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/languages/features/DocumentationProviderFeaturesTest.java @@ -6,8 +6,10 @@ import java.util.stream.Collectors; import org.openapitools.codegen.languages.features.DocumentationProviderFeatures.AnnotationLibrary; import org.openapitools.codegen.languages.features.DocumentationProviderFeatures.DocumentationProvider; +import org.testng.Assert; import org.testng.annotations.Test; +// Tests are not final, methods currently just generate documentation as MD tables. public class DocumentationProviderFeaturesTest { @Test(priority = 0) @@ -27,8 +29,7 @@ void generateDocumentationProviderTable() { .collect(Collectors.joining(", ")) ))); sb.append("\n"); - - System.out.println(sb); + Assert.assertTrue(sb.toString().contains("none")); } @Test(priority = 1) @@ -43,8 +44,7 @@ void generateAnnotationLibraryTable() { dp.getDescription(), dp.getPropertyName() ))); + Assert.assertTrue(sb.toString().contains("none")); sb.append("\n"); - - System.out.println(sb); } } \ No newline at end of file