JUnit forcing tests to run in name order


/ Published in: Java
Save to your folder(s)

JUnit forcing tests to run in name order


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.