I am asking in case I run into this scenario in the future.

Someone in my company wrote multiple with 25 . I don’t know how/why it got thru code review. I’m just wondering how someone would cases in junit for this? The of combinations/permutations would be crazy.

I know the real solution is to rewrite the methods to do less but I don’t think this team plans to do this for now. If I were the poor test engineer assigned to write automated unit tests for this, how would one go about this?

Source link https://sqa.stackexchange.com/questions/34751/how-to-write-unit-test-for-methods-with-a--number-of-parameters


Please enter your comment!
Please enter your name here