用junit对java代码进行测试,需要注意

1、用@Test注解的方法必须没有返回值,返回值类型无:void

2、用@Test注解的方法必须没有参数。

猜你喜欢

转载自www.cnblogs.com/xingrui/p/9004202.html