title: junit - local test method override - @BeforeClass
body: <p>How to set one of the test method value different than all other test methods. I want to set subclass Test1's testName2() test method's name is local instead of global. </p>
  
  <pre><code>public class Test {
  
   @BeforeClass
   public static void setGlobalValues() {
      System.setProperty("name", "global");
   }
  }
  
  
  public class Test1 extends Test {
    @Test
    public void testName1() {
  
    }
  
    @Test
    public void testName2() {
        System.setProperty("name", "local");
  
    }
  }
  </code></pre>