Mockito+testNG
关于TestNG和Mockito的介绍自己查。
首先使用时需要在eclipse中添加TestNG。
在线安装TestNG:打开Eclipse Help ->Install New Software , 然后Add "http://beust.com/eclipse"
maven环境中添加:
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.8.4</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.8</version> </dependency>
相关推荐
不忘初心才能始终 2019-07-01
80374192 2019-06-21
ITstudied 2020-05-06
cintmain 2020-04-20
wndong 2020-03-01
86427019 2019-12-21
SolitudeSky 2019-12-09
wugang0 2019-12-09
lucialee 2019-11-08
mohanzb 2019-10-22
mrjianghaijun 2015-07-30
chengzhezhijian 2015-06-24
pengzhanxuan 2012-11-14
80487608 2015-07-29
石羊 2019-06-30
aduocd 2019-06-30
mrsuddenflash 2013-11-18