/ Published in: Java
JUnit forcing tests to run in name order
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; // then place this above the class declaration. eg @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class pageTest { ..