Junit中的setup和teardown方法

setup需要@before注解,实现测试前的初始化工作

teardown需要@after注解,测试完成后垃圾回收等后续工作

转载于:https://www.cnblogs.com/yanze/p/10189160.html

你可能感兴趣的:(Junit中的setup和teardown方法)