|
I bet this is because in Java 1.7 the order of methods as returned by java.lang.Class.getXXXMethods() changed from being ordered as in the code to some arbitrary ordering. For that case, JUnit has a special annotation which I can't remember right now which you can apply to get the old behavior. I guess you aren't properly cleaning up connections.
|