This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have different Test cases that need to be run. They are all of similar nature, except for the input and the expected output. See example below:
I do want different TestCases to be available for different sets of input, but I want to avoid duplicating the test case code. I am looking at something like generating a different test case automatically for each set of input. Does JUnit offer something like this ? Any pointers will be appreciated. Thanks.