补充知识点Junit4配置
安装JunitGenerator V2.0
点击file,点击settings
左侧选择Plugins,右侧界面选择MarketPlace,输入junit,回车搜索。
选择JUnitGenerator V2.0,点击install
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hqdTIy,size_16,color_FFFFFF,t_70
点击Accept
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hqdTIy,size_16,color_FFFFFF,t_70
点击Restart IDE
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hqdTIy,size_16,color_FFFFFF,t_70
5、点击 Restart,插件JUnitGenerator V2.0就安装好了
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hqdTIy,size_16,color_FFFFFF,t_70
二、修改JUnitGenerator V2.0的配置
1、点击file,点击settings
2、左侧选择JUnit Generator,右侧界面选择Properties。
(1)Output Path值修改为:SOURCEPATH/../../test/java/{SOURCEPATH}/../../test/java/SOURCEPATH/../../test/java/{PACKAGE}/${FILENAME}
(2)Default Template 选择 JUnit4
watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hqdTIy,size_16,color_FFFFFF,t_70
3、选择JUnit 4 界面,去掉package行中的test. ,点击ok