• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)
setup()10     public void setup() throws InterruptedException {
11         WHEN = System.currentTimeMillis();
12         Thread.sleep(2000);
13     }
14 
15     @Test
execute()16     public void execute() {
17     }
18 }
19