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:
java.util.Comparator<Description>
,Ordering.Factory
public final class Alphanumeric extends Sorter implements 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
-
-
Constructor Summary
Constructors Constructor Description Alphanumeric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ordering
create(Ordering.Context context)
Creates an Ordering instance using the given context.-
Methods inherited from class org.junit.runner.manipulation.Sorter
apply, compare, orderItems
-
Methods inherited from class org.junit.runner.manipulation.Ordering
definedBy, definedBy, shuffledBy
-
-
-
-
Constructor Detail
-
Alphanumeric
public Alphanumeric()
-
-
Method Detail
-
create
public Ordering create(Ordering.Context context)
Description copied from interface:Ordering.Factory
Creates 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:
create
in interfaceOrdering.Factory
-
-