Junit中的setup和teardown方法

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

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

原文地址:https://www.cnblogs.com/yanze/p/10189160.html