title: Common @before and @after for test classes in junit
body: <p>Is it possible to have a common <code>@Before</code> and <code>@After</code> fixtures that can be used across multiple test classes?</p>
  
  <p>I have segregated the tests (into classes) based on modules (Inventory, Sales, Purchase etc.). For all these tests, user Login is a prerequisite, currently I am having it in <code>@Before</code> for each class. The problem is when I need to change user id or password, I need to change in every class. Is there a way to write the <code>@Before</code> / <code>@After</code> that can be used in all the test classes? Does testsuite come handy by any means in this case?</p>