练习一下junit的用法,简单的引入junit jar包,然后导入就ok



package dxm.com.test;

 


import org.junit.Test; 


public class TestJUnit {


@Test
public void Unites(){
System.out.println("c--------------");
}

@Test
public void A(){
System.out.println("a-----------------");
}




@Test(expected=ClassNotFoundException.class,timeout=1)
public void B(){
System.out.println("b-----------------");
 
}


}

本文转载:CSDN博客