Class SuperTypesLastSorter
java.lang.Object
org.mockito.internal.util.reflection.SuperTypesLastSorter
Sort fields in an order suitable for injection, by name with superclasses
moved after their subclasses.
-
Method Summary
Modifier and TypeMethodDescriptionsortSuperTypesLast(Collection<? extends Field> unsortedFields) Return a new collection with the fields sorted first by name, then with any fields moved after their supertypes.
-
Method Details
-
sortSuperTypesLast
Return a new collection with the fields sorted first by name, then with any fields moved after their supertypes.
-