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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
compareFieldsByName
-
-
Constructor Details
-
SuperTypesLastSorter
private SuperTypesLastSorter()
-
-
Method Details
-
sortSuperTypesLast
Return a new collection with the fields sorted first by name, then with any fields moved after their supertypes.
-