carbidecpp20devenv/plugins/org.eclipse.test.source_3.3.0.v20080507/src/org.junit4_4.3.1/junitsrc/org/junit/runner/manipulation/Sortable.java
author cawthron
Wed, 18 Mar 2009 17:21:00 -0500
changeset 1 82d1d1de1a01
permissions -rw-r--r--
import Carbide.c++
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     1
package org.junit.runner.manipulation;
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     2
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     3
/**
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     4
 * Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     5
 * failed first, you can reduce the average time to the first test failing. Test sorting should not be used to
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     6
 * cope with order dependencies between tests. Tests that are isolated from each other are less
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     7
 * expensive to maintain and can be run individually.
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     8
 */
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
     9
public interface Sortable {
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    10
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    11
	/**
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    12
	 * Sorts the tests using <code>sorter</code>
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    13
	 * @param sorter the {@link Sorter} to use for sorting the tests
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    14
	 */
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    15
	public void sort(Sorter sorter);
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    16
82d1d1de1a01 import Carbide.c++
cawthron
parents:
diff changeset
    17
}