sortable.java
来自「这是Junit4.1.3的源码程序」· Java 代码 · 共 18 行
JAVA
18 行
package org.junit.runner.manipulation;
/**
* Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently
* failed first, you can reduce the average time to the first test failing. Test sorting should not be used to
* cope with order dependencies between tests. Tests that are isolated from each other are less
* expensive to maintain and can be run individually.
*/
public interface Sortable {
/**
* Sorts the tests using <code>sorter</code>
* @param sorter the {@link Sorter} to use for sorting the tests
*/
public void sort(Sorter sorter);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?