且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

不同输入数据的Java单元测试

更新时间:2023-11-16 21:47:46

发生在我身上,他们我发现了一个很棒的想法,叫做参数化测试,例如:http://www.mkyong.com/unittest/junit-4-tutorial-6-参数化测试/通过这种方式,您可以使用不同的参数进行多次相同的测试.

Happen to me sometime, and them I found this awesome idea called Parameterized Test, for instance: http://www.mkyong.com/unittest/junit-4-tutorial-6-parameterized-test/ in this way you can all the same tests couple of time with different argument.