idea can't download JUnitGenerator V2.0 plug-in solution

        

 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 failed

The error is as shown:

Solution:

Download JUnitGenerator V2.0 above the prompt address, the address is as follows:

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

①Download to local

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

Find the location of the plug-in. If the restart project appears, it is successful.

After re-entering the project, alt+insert can see junit test.

Modify the path to automatically generate the test test

File->Settings->JUnit Generator

3. The Output Path in the Properties tab is the directory generated by the test case, modified to the test directory: ${SOURCEPATH}/../../test/java/${PACKAGE}/${FILENAME}

Note:

If there is an encoding error:

File->Settings->JUnit Generator->JUnit4

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

If there is a package name error:

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

I hope it helps everyone. Thank you.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325101821&siteId=291194637