I am asking in case I run into this scenario in the future.
Someone in my company wrote multiple methods with 25 parameters. I don’t know how/why it got thru code review. I’m just wondering how someone would write unit test cases in junit for this? The number of combinations/permutations would be crazy.
I know the real solution is to rewrite/refactor 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: Read More