Posted By

flashmac on 04/03/14


Tagged

junit


Versions (?)

JUnit forcing tests to run in name order


 / Published in: Java
 

JUnit forcing tests to run in name order

  1. import org.junit.FixMethodOrder;
  2. import org.junit.Test;
  3. import org.junit.runners.MethodSorters;
  4.  
  5. // then place this above the class declaration. eg
  6.  
  7. @FixMethodOrder(MethodSorters.NAME_ASCENDING)
  8. public class pageTest { ..

Report this snippet  

You need to login to post a comment.