differences between 2 JUnit Assert classes

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

    JUnit 3.X: junit.framework.Assert

    JUnit 4.X: org.junit.Assert

    Prefer the newest one, especially when running JDK5 and higher with annotation support.

提交回复
热议问题