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());
    }
}

 

posted @ 2019-08-28 10:09  怪圣卡杰  阅读(289)  评论(0)    收藏  举报