question: returns a request whose tests can be run in a certain order , defined by comparator for example , here is code to run a test suite in alphabetical order : private static comparator forward return new comparator public int compare description o1 , description o2 return o1.getdisplayname . compareto o2.getdisplayname ; ; public static main new junitcore . run request.aclass alltests.class . sortwith forward ; concode_field_sep PlaceHolder placeHolder concode_field_sep Request filterWith concode_elem_sep Request filterWith concode_elem_sep Runner getRunner concode_elem_sep Request method concode_elem_sep Request classes concode_elem_sep Request classes concode_elem_sep Request classWithoutSuiteMethod concode_elem_sep Request runner concode_elem_sep Request errorReport concode_elem_sep Request aClass
target: Request function ( Comparator < Description > arg0 ) { return new SortingRequest ( this , arg0 ) ; }