differences between 2 JUnit Assert classes

后端 未结 6 1769
南旧
南旧 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:17

    I believe they are refactoring from junit.framework to org.junit and junit.framework.Assert is maintained for backwards compatibility.

提交回复
热议问题