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
Assert
JUnit 3.X: junit.framework.Assert
junit.framework.Assert
JUnit 4.X: org.junit.Assert
org.junit.Assert
Prefer the newest one, especially when running JDK5 and higher with annotation support.