Package org.junit.runner.manipulation
Class Alphanumeric
java.lang.Object
org.junit.runner.manipulation.Ordering
org.junit.runner.manipulation.Sorter
org.junit.runner.manipulation.Alphanumeric
- All Implemented Interfaces:
Comparator<Description>,Ordering.Factory
A sorter that orders tests alphanumerically by test name.
- Since:
- 4.13
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.manipulation.Ordering
Ordering.Context, Ordering.Factory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Ordering.Context context) Creates an Ordering instance using the given context.Methods inherited from class org.junit.runner.manipulation.Sorter
apply, compare, orderItems, validateOrderingIsCorrectMethods inherited from class org.junit.runner.manipulation.Ordering
definedBy, definedBy, shuffledByMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
COMPARATOR
-
-
Constructor Details
-
Alphanumeric
public Alphanumeric()
-
-
Method Details
-
create
Description copied from interface:Ordering.FactoryCreates an Ordering instance using the given context. Implementations of this method that do not need to use the context can return the same instance every time.- Specified by:
createin interfaceOrdering.Factory
-