• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.testng285;
2 
3 import org.testng.annotations.BeforeClass;
4 import org.testng.annotations.Test;
5 
6 import java.util.HashSet;
7 import java.util.Set;
8 
9 @Test(sequential = true)
10 public class BugBase {
11   static Set<Long> m_threadIds;
12 
13   @BeforeClass
setup()14   public void setup() {
15     m_threadIds = new HashSet<>();
16   }
17 
log(long threadId)18   void log(long threadId) {
19     m_threadIds.add(threadId);
20   }
21 
fbase()22   public void fbase() {
23     log(Thread.currentThread().getId());
24   }
25 
26 }
27