blob: b686ae2d180d645f5e9bac28328cdae04c9cf2f9 [file] [log] [blame]
package test.tmp;
import java.util.Random;
import org.testng.annotations.Test;
public class Tmp {
@Test(invocationCount = 10, threadPoolSize = 5)
public void f() {
ppp("START " + Thread.currentThread().getId());
try {
Thread.sleep(Math.abs(new Random().nextInt() % 300));
}
catch (InterruptedException e) {
e.printStackTrace();
}
ppp("END " + Thread.currentThread().getId());
}
private void ppp(String string) {
System.out.println("[Tmp] " + string);
}
}