开发者

EclipseIDE - append new unit test case into existed test class?

开发者 https://www.devze.com 2023-03-07 06:04 出处:网络
I have SampleClass.java with 5 methods in package /MyProject/src/sample and I use Eclipse to generate the unit test class TestSampleClass.java 开发者_JS百科in package /MyProject/src_ut/sample with 5 t

I have SampleClass.java with 5 methods in package /MyProject/src/sample and I use Eclipse to generate the unit test class TestSampleClass.java 开发者_JS百科in package /MyProject/src_ut/sample with 5 test methods and annotations to link backward to my 5 methods in SampleClass.java, then I modified those test methods. Now, I add 3 methods into SampleClass.java and I wonder whether or not the IDE can append 3 new test methods for my new 3 methods with link and annotations like the first time I created the TestSampleClass.java ? If it does, please tell me how to do it! Many thanks!


You can use MoreUnit plugin for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号