TestNG(十四) 线程测试

package com.course.testng.thread;

import org.testng.annotations.Test;

public class multiThread {
    @Test(invocationCount = 10, threadPoolSize = 3)
    public void test(){
        System.out.println("线程测试");
        System.out.printf("Thread Id: %s%n",Thread.currentThread().getId());
    }
}

猜你喜欢

转载自www.cnblogs.com/dwdw/p/11422410.html