简体   繁体   English

编辑“测试现有类”的Netbeans模板

[英]Edit Netbeans Template for “Test for Existing Class”

Changing the code that Netbeans generates is usually pretty easy, you just edit the associated template. 更改Netbeans生成的代码通常非常容易,只需编辑关联的模板即可。 However, there doesn't appear to be one for "Test For Existing Class". 但是,似乎没有“ Test for Existing Class”。

Netbeans单元测试模板

Is there something different I have to do, or is the template just somewhere else or what? 我需要做些其他的事情吗,还是模板在其他地方?

I solved this problem by modification of existing "Test Class - JUnit 4.x" item. 我通过修改现有的“测试类-JUnit 4.x”项解决了此问题。 You can save original template by duplicating it. 您可以通过复制原始模板来保存它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM