idea 没法下载JUnitGenerator V2.0插件解决办法

        

 PluginJUnitGeneratorV2.0 was not installed: Cannot download 'http://plugins.jetbrains.com/pluginManager/?action=download&id=org.intellij.plugins.junitgen&build=IU-162.2228.15&uuid=6a6cb9f5-4107-46d7-9b1c-d8205218a73b': Software caused connection abort: recv failedjava

错误如图:测试

解决办法:ui

在提示地址上面下载JUnitGenerator V2.0,地址以下:编码

http://plugins.jetbrains.com/pluginManager/?action=download&id=org.intellij.plugins.junitgen&build=IU-162.2228.15&uuid=6a6cb9f5-4107-46d7-9b1c-d8205218a73b.net

①下载到本地插件

②file->settting->plugins->install plugin from diskrest

找到插件所在位置 若是出现restart project 即为成功。get

从新进入项目以后,alt+insert 便可看到junit test。it

修改自动生成测试test的路径io

File->Settings->JUnit Generator

3.Properties选项卡里的Output Path为测试用例生成的目录,修改成test目录:${SOURCEPATH}/../../test/java/${PACKAGE}/${FILENAME}

注:

若是出现编码错误:

File->Settings->JUnit Generator->JUnit4

* @since <pre>$date</pre> 替换 @since <pre>$today</pre> 

若是出现包名错误:

package test.$entry.packageName; 改成package $entry.packageName;

但愿对你们有所帮助谢谢。

相关文章
相关标签/搜索