Junit单元测试

225 阅读1分钟

一、Junit注解

1、 @Test:

用于测试接口

2、@Before :

修饰的方法,开始默认自动先执行此方法

3、@After

修饰的方法,结尾默认自动执行此方法

二、反射