JNuit

s1:@Test

s2:根据提示导包

s3:选中方法名,右击run as -->JUnit Test

package songyan.jdbc.learn1;

import org.junit.Test;

public class Demo2 {
    @Test
    public  void test()
    {
        System.out.println("kkk");
    }
    @Test
    public void test2()
    {
        System.out.println("kkkkkk");
    }
}
原文地址:https://www.cnblogs.com/excellencesy/p/8543052.html