美文网首页
Idea的Junit

Idea的Junit

作者: Godtoy | 来源:发表于2017-03-14 09:36 被阅读0次

Maven和Npm,Composer,Grandle部分功能一样,属于包管理器的一员,在java当中使用起来非常方便,也可以让你得项目迁移变得非常的简单。eclipse自带的就支持maven,不过我不太喜欢eclipse,喜欢idea的功能界面,phpstrom androidstudio一个风格。

在idea中安装junit:

File>Settings>Plugins>browse resp....>junit

安装一个junit-generator-v2
https://code.google.com/archive/p/junit-generator-v2
重启,然后就可以使用了

使用方法很简单:Alt+Insert 选择Junit,它就回自动生成一个Junit的测试类,不过前提是你需要导入junit的依赖包,如果您还在手动添加包文件的话,那你就太out了,我熟悉npm 熟悉composer 在java当中浩大的技术社区怎么可能没有类似的工具。

下一篇:Idea中得Maven

相关文章

网友评论

      本文标题:Idea的Junit

      本文链接:https://www.haomeiwen.com/subject/jdycnttx.html