1package test.tmp;
2
3import org.testng.annotations.Test;
4
5import java.util.Random;
6
7public class Tmp {
8
9  @Test(invocationCount = 10, threadPoolSize = 5)
10  public void f() {
11    ppp("START " + Thread.currentThread().getId());
12    try {
13      Random r = new Random();
14      Thread.sleep(Math.abs(r.nextInt() % 300));
15    }
16    catch (InterruptedException handled) {
17      Thread.currentThread().interrupt();
18      handled.printStackTrace();
19    }
20    ppp("END " + Thread.currentThread().getId());
21  }
22
23  private void ppp(String string) {
24    System.out.println("[Tmp] " + string);
25  }
26
27}
28