I'm writing a Junit 4
test class comprising of 5 test methods.
All these 5 test methods have same 10 assertEquals
lines of code.
Would it be best practice to move these lines of codes in one method for e.g. public void callAssertions() { .... }
and call this method from all tests?