A small Java library with a few classes I've used in other projects in JUnit tests.
Features
- You can order test methods (sometimes test methods can execute in random order)
Documentation
Example
@RunWith(value=OrderedRunner.class)
public class TestOrdered extends BaseTest
{
@Test @Ordered(index = 3)
public void test3() {
broadcast();
}
@Test @Ordered(index = 2)
public void test2a() {
broadcast();
}
@Test @Ordered(index = 2)
public void test2b() {
broadcast();
}
@Test @Ordered(index = 1)
public void test1() {
broadcast();
}
}
// IN test1
// IN test2a
// IN test2b
// IN test3
Builds
- testility-1.0.0.jar
- testility-src-1.0.0.jar - includes source code
Projects using testility:
Dependencies
- JUnit