How to know the version of JUnit in Eclipse

前端 未结 7 938
甜味超标
甜味超标 2021-01-11 18:55

In eclipse:

  1. Window --> Preferences
  2. Expand Java at left side of panel --> JUnit is there under Java

How can I know the version of JUnit

7条回答
  •  情书的邮戳
    2021-01-11 19:52

    You can use this code:

    import junit.runner.Version;
    
    System.out.println("JUnit version is: " + Version.id());
    

提交回复
热议问题