Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests for parsing of additional type annotations & refactor test code #18751

Merged
merged 6 commits into from
May 26, 2024

Fix some "Raw use of parameterized class 'Schema'" warnings

cbbfe24
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix tests for parsing of additional type annotations & refactor test code #18751

Fix some "Raw use of parameterized class 'Schema'" warnings
cbbfe24
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test results succeeded May 23, 2024 in 1s

100 passed, 0 failed and 1 skipped

Tests passed successfully

Report Passed Failed Skipped Time
modules/openapi-generator-cli/target/surefire-reports/TEST-TestSuite.xml 48✅ 5s
modules/openapi-generator-core/target/surefire-reports/TEST-TestSuite.xml 17✅ 877ms
modules/openapi-generator-maven-plugin/target/surefire-reports/TEST-org.openapitools.codegen.plugin.CodeGenMojoTest.xml 10✅ 8s
modules/openapi-generator-online/target/surefire-reports/TEST-org.openapitools.codegen.online.api.GenApiControllerTest.xml 10✅ 548s
modules/openapi-generator/target/surefire-reports/TEST-org.openapitools.codegen.ArchUnitRulesTest.xml 4✅ 4s
modules/openapi-generator/target/surefire-reports/TEST-org.openapitools.codegen.jetbrains.http.client.JetbrainsHttpClientClientCodegenTest.xml 11✅ 1⚪ 2s

✅ modules/openapi-generator-cli/target/surefire-reports/TEST-TestSuite.xml

48 tests were completed in 5s with 48 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TestSuite 48✅ 5s

✅ TestSuite

org.openapitools.codegen.cmd.utils.OptionUtilsTest
  ✅ splitCommaSeparatedList
  ✅ testParseCommaSeparatedTuples
org.openapitools.codegen.cmd.AuthorTemplateTest
  ✅ smokeTestAuthorTemplateCommand
org.openapitools.codegen.cmd.GenerateBatchTest
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8.json](1)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8.yaml](2)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-json-include.yaml](3)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-double.json](4)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-double.yaml](5)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-nested.json](6)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-nested.yaml](7)
  ✅ testDeserializerWithJsonInclude[jaxrs-datelib-j8-nested-property-merge.yaml](8)
  ✅ testInvalidDeserializerWithIncludeOption
org.openapitools.codegen.cmd.GenerateTest
  ✅ testAdditionalPropertiesLong
  ✅ testAdditionalPropertiesLongMultiple
  ✅ testApiPackage
  ✅ testArtifactId
  ✅ testArtifactVersion
  ✅ testAuthLong
  ✅ testAuthShort
  ✅ testAuthUnspecified
  ✅ testConfigJsonLong
  ✅ testConfigJsonShort
  ✅ testConfigYamlLong
  ✅ testConfigYamlShort
  ✅ testGroupId
  ✅ testImportMappingsLong
  ✅ testImportMappingsLongMultiple
  ✅ testInstantiationTypesLong
  ✅ testInstantiationTypesLongMultiple
  ✅ testInvokerPackage
  ✅ testLanguageSpecificPrimitives
  ✅ testLibrary
  ✅ testModelPackage
  ✅ testNPEWithInvalidSpecFile
  ✅ testPackageName
  ✅ testRequiredArgs_LongArgs
  ✅ testRequiredArgs_ShortArgs
  ✅ testSkipOverwriteLong
  ✅ testSkipOverwriteShort
  ✅ testStrictSpecFalse
  ✅ testStrictSpecTrue
  ✅ testTemplateDirLong
  ✅ testTemplateDirMustExist
  ✅ testTemplateDirShort
  ✅ testTypeMappingsLong
  ✅ testTypeMappingsLongMultiple
  ✅ testVerboseLong
  ✅ testVerboseShort

✅ modules/openapi-generator-core/target/surefire-reports/TEST-TestSuite.xml

17 tests were completed in 877ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TestSuite 17✅ 877ms

✅ TestSuite

org.openapitools.codegen.validation.ValidationRuleTest
  ✅ createMethodUsingLambda
  ✅ createMethodUsingMethodReference
org.openapitools.codegen.validation.GenericValidatorTest
  ✅ testGenericValidatorErrorsAndWarnings
  ✅ testGenericValidatorMultipleConditionsFail
  ✅ testGenericValidatorSingleConditionFails
  ✅ testGenericValidatorSuccesses
org.openapitools.codegen.validation.ValidatedTest
  ✅ isValidFalseForInvalidType
  ✅ isValidTrueForValidType
org.openapitools.codegen.config.WorkflowSettingsTest
  ✅ customGlobalPropertiesAreSet
  ✅ customOutputDirIsSet
  ✅ defaultValuesCanBeChangedBuilder
  ✅ defaultValuesCanBeChangedClassConstructor
  ✅ defaultValuesNotOverriddenByNulls
  ✅ newBuilderFromCopyShouldMutateGlobalProperties
org.openapitools.codegen.meta.FeatureSetTest
  ✅ flattOnUnspecified
  ✅ flattenOnMultipleFeatures
  ✅ flattenOnSingleFeatures

✅ modules/openapi-generator-maven-plugin/target/surefire-reports/TEST-org.openapitools.codegen.plugin.CodeGenMojoTest.xml

10 tests were completed in 8s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.openapitools.codegen.plugin.CodeGenMojoTest 10✅ 8s

✅ org.openapitools.codegen.plugin.CodeGenMojoTest

✅ testAnyInputSpecMustBeProvided
✅ testSkipRegenerationForClasspathSpecFileNoChange
✅ testCommonConfigurationWithURLInputSpec
✅ testCommonConfigurationWithResourceInputSpec
✅ testCommonConfigurationWithFileInputSpec
✅ testHashGenerationFileContainsExecutionId
✅ testInputSpecRootDirectoryDoesNotRequireInputSpec
✅ testCollapsedSpecProduced
✅ testCollapsedSpecAddedToArtifacts
✅ testSkipRegenerationForClasspathSpecFileWithChange

✅ modules/openapi-generator-online/target/surefire-reports/TEST-org.openapitools.codegen.online.api.GenApiControllerTest.xml

10 tests were completed in 548s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.openapitools.codegen.online.api.GenApiControllerTest 10✅ 548s

✅ org.openapitools.codegen.online.api.GenApiControllerTest

✅ generateServer
✅ clientOptionsUnknown
✅ clientOptions
✅ serverOptions
✅ serverFrameworks
✅ serverOptionsUnknown
✅ generateWIthForwardedHeaders
✅ clientLanguages
✅ generateClient
✅ generateClientWithInvalidOpenAPIUrl

✅ modules/openapi-generator/target/surefire-reports/TEST-org.openapitools.codegen.ArchUnitRulesTest.xml

4 tests were completed in 4s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.openapitools.codegen.ArchUnitRulesTest 4✅ 4s

✅ org.openapitools.codegen.ArchUnitRulesTest

✅ testLoggersAreNotPublicFinalAndNotStatic
✅ disallowJavaUtilLogging
✅ classesNotAllowedToUseStandardStreams
✅ abstractClassesAreAbstract

✅ modules/openapi-generator/target/surefire-reports/TEST-org.openapitools.codegen.jetbrains.http.client.JetbrainsHttpClientClientCodegenTest.xml

12 tests were completed in 2s with 11 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
org.openapitools.codegen.jetbrains.http.client.JetbrainsHttpClientClientCodegenTest 11✅ 1⚪ 2s

✅ org.openapitools.codegen.jetbrains.http.client.JetbrainsHttpClientClientCodegenTest

✅ testBasicGenerationVariablesWithBodyVariables
✅ testBasicGenerationJson
✅ testBasicGenerationYaml
✅ testBasicGenerationAuthBearer
✅ testBasicGenerationAuthCookie
✅ testBasicGenerationAuthHeader
✅ testBasicGenerationVariables
✅ testBasicGenerationManyAuths
✅ testBasicGenerationAuthBasic
✅ testBasicGenerationAuthQuery
⚪ testBasicGenerationMultipleRequests
✅ testBasicGenerationWithCustomHeaders