spring-hateoas
spring-hateoas copied to clipboard
Fixes Flaky tests
trafficstars
There a several flaky tests and this PR fixes those. The problems are entirely ordering issues, and the proposed solutions is mainly to use annotations @JsonPropertyOrder.
The flakiness can be test with mvn -pl . edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=TESTNAME
Tests fixed:
config.CustomHypermediaWebFluxTest#getUsingCustomMediaTypeconfig.CustomHypermediaWebMvcTest#getUsingCustomMediaTypeEntityModelIntegrationTest#inlinesContentIanaLinkRelationUnitTest#testAllIanaLinkRelationsHaveStringConstantJackson2LinkIntegrationTest#writesLinkCorrectlyJackson2ResourceSupportIntegrationTest#doesNotRenderIdJackson2ResourceIntegrationTest#inlinesContentJackson2PagedResourcesIntegrationTest#serializesPagedResourcesCorrectlymediatype.collectionjson.Jackson2CollectionJsonIntegrationTest#renderComplexStructuremediatype.collectionjson.Jackson2CollectionJsonIntegrationTest#renderSimplePojosmediatype.collectionjson.Jackson2CollectionJsonIntegrationTest#rendersMultipleLinkAsArraymediatype.collectionjson.Jackson2CollectionJsonIntegrationTest#serializesPagedResourcemediatype.hal.forms.HalFormsObjectMapperCustomizerTest#objectMapperCustomizerShouldBeAppliedmediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersTitleIfMessageSourceResolvesLocalKeymediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersTitleIfMessageSourceResolvesNamespacedKeymediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersCuriesCorrectlymediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersMultipleResourceResourcesAsEmbeddedmediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersRepresentationModelWithTemplatesmediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersMultipleCuriesmediatype.hal.forms.Jackson2HalFormsIntegrationTest#rendersResourcemediatype.hal.forms.Jackson2HalFormsIntegrationTest#serializesAnnotatedResourceResourcesAsEmbeddedmediatype.hal.forms.Jackson2HalFormsIntegrationTest#serializesMultipleAnnotatedResourceResourcesAsEmbeddedmediatype.hal.forms.Jackson2HalFormsIntegrationTest#serializesPagedResourcemediatype.hal.Jackson2HalIntegrationTest#rendersTitleIfMessageSourceResolvesLocalKeymediatype.hal.Jackson2HalIntegrationTest#rendersTitleIfMessageSourceResolvesNamespacedKeymediatype.hal.Jackson2HalIntegrationTest#rendersAllExtraRFC8288Attributesmediatype.hal.Jackson2HalIntegrationTest#rendersMultipleCuriesmediatype.hal.Jackson2HalIntegrationTest#rendersMultipleResourceResourcesAsEmbeddedmediatype.hal.Jackson2HalIntegrationTest#serializesAnnotatedResourceResourcesAsEmbeddedmediatype.hal.Jackson2HalIntegrationTest#serializesPagedResourcemediatype.hal.HalModelBuilderUnitTest#previewForLinkRelationsUsingHalModelBuildermediatype.hal.HalModelBuilderUnitTest#progressivelyAddingContentUsingHalModelBuildermediatype.hal.HalModelBuilderUnitTest#renderDifferentlyTypedEntitiesmediatype.hal.HalModelBuilderUnitTest#renderExplicitAndImplicitLinkRelationsmediatype.hal.HalModelBuilderUnitTest#renderSingleItemUsingDefaultModelBuildermediatype.hal.HalModelBuilderUnitTest#renderSingleItemUsingHalModelBuildermediatype.hal.HalModelBuilderUnitTest#embeddedSpecUsingHalModelBuildermediatype.hal.HalObjectMapperCustomizerTest#objectMapperCustomizerShouldBeAppliedmediatype.problem.JacksonSerializationTest#extensionSerializeRepresentationModelIntegrationTest#doesNotRenderId
@HildoYe Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@HildoYe Thank you for signing the Contributor License Agreement!