differences between 2 JUnit Assert classes

后端 未结 6 1779
南旧
南旧 2020-11-30 17:49

The JUnit framework contains 2 Assert classes (in different packages, obviously) and the methods on each appear to be very similar. Can anybody explain why this

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 18:25

    In Android Studio (and so in IntelliJ too), you can globally exclude junit.framework from auto-import proposal.

    You can set the scope between IDE or Project. If you don't have projects which use JUnit 3 you can safely stay with IDE scope.

    Setting position:

    Preferences -> Editor -> General -> Auto Import

提交回复
热议问题