Home | History | Annotate | Download | only in configuration
      1 package test.configuration;
      2 
      3 import org.testng.annotations.BeforeClass;
      4 import org.testng.annotations.Test;
      5 
      6 public class BeforeClassThreadA {
      7     public static long WHEN;
      8 
      9     @BeforeClass(alwaysRun = true)
     10     public void setup() throws InterruptedException {
     11         WHEN = System.currentTimeMillis();
     12         Thread.sleep(2000);
     13     }
     14 
     15     @Test
     16     public void execute() {
     17     }
     18 }
     19