JUnit order the execution of methods

You can decide in which oreder the test annotated methods will be executed.

It is available in Junit 4.

I only recommend you put in all of your unit tests.
The annotation is like this:

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
class Tests {
}

Leave a Reply

Your email address will not be published. Required fields are marked *