title: JUnit 4 base functionality
body: <p>What is the proper way with JUnit 4 to create test cases to use common functionality: e.g. setup that is common to several unit test classes?  What I did was create a test case and put the common functionality in the <code>@Before</code> method, then any test case that needs this would extend the base class.  However, this seems to require doing: <code>super.setUp()</code> in every subclass.  </p>
  
  <p>Is there a better way?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Actually my proposed solution is not working.  Sometimes JUnit will call the base class TWICE.  Once if it happens to run the test on the base class first, and again when it reaches a child class (at least I think this is whats happening).  So a better way of "inheriting" common test case functionality would be great.</p>