differences between 2 JUnit Assert classes

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

    There is in fact a functional change: org.junit.Assert will complain if you use the two-argument assertEquals() with float or double, while junit.framework.Assert will silently autobox it.

提交回复
热议问题