类org.junit.runners.MethodSorters源码实例Demo

下面列出了怎么用org.junit.runners.MethodSorters的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: j2cl   文件: MethodSorter.java
public static Comparator<TestMethod> getTestSorter(TypeElement typeElement) {
  FixMethodOrder fixMethodOrder = typeElement.getAnnotation(FixMethodOrder.class);
  return fixMethodOrder != null && fixMethodOrder.value() == MethodSorters.NAME_ASCENDING
      ? NAME_ASCENDING
      : DEFAULT;
}
 
 类所在包
 类方法
 同包方法