Multiple test methods junit running order problem

After defining a test class TestShiro that inherits TestCase, it is found that Junit test can be run without adding @Test annotation to the method header, but the order of the running makes me puzzled, as shown in the following figure:

The order of this output is based on what, if I have multiple test methods in a test class, and I want to output the results in the order of the test methods in my test class. What should I do? I tested it again, as shown in the figure below:

 I just tested the code, About this execution order, I don't understand. Forget it, I will record it before, and I will study it later when I have time. Another thing I mainly learn now.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326920460&siteId=291194637