FasterXML / jackson-jaxrs-providers

Multi-module project that contains Jackson-based "old" JAX-RS (ones under `javax.ws.rs`) providers for JSON, XML, YAML, Smile, CBOR formats
Apache License 2.0
109 stars 77 forks source link

Fix flaky test in AnnotationBundleKeyTest.java #152

Closed NanaOkada closed 2 years ago

NanaOkada commented 2 years ago

testWithClassAnnotations() and testWithMethodAnnotationEquals() are comparing 2 arrays of Annotation returned by the method getAnnotations(). However, getAnnotations() doesn't always return items in the array in the same order. I sort them so that the item in the array will be in a deterministic order.