본문 바로가기
Engineering WIKI/Java

[Java] Junit Test 순서 제어하기

by wonos 2019. 2. 14.

@FixMethodOrder(MethodSorters.NAME_ASCENDING)


 Example



 Result




 How to use?

    @FixMethodOrder(MethodSorters.SORT방식)

    > MethodSorters.DEFAULT

    > MethodSorters.JVM

    > MethodSorters.NAME_ASCENDING