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.
testWithClassAnnotations()
andtestWithMethodAnnotationEquals()
are comparing 2 arrays of Annotation returned by the methodgetAnnotations()
. 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.