Junit 3中

测试类继承TestCase.并且测试方法需要以test开头

 

Junit 4 中

测试类加annotation @Test

需要添加固定的包以防止产生no test runner