junit中before和beforeclass区别

@before

在每个测试方法之前都会运行一次,只需声明成public

@beforeclass

在类中只运行一次,必须声明成public static

猜你喜欢

转载自zliguo.iteye.com/blog/2236308
今日推荐