Closed girardot closed 8 years ago
Yes, this is expected behavior and in fact a feature of JGiven :-). The concrete parameters of the method itself are irrelevant to JGiven. JGiven instead compares all cases after all cases have been executed and derives the parameters. If two parameters are equal in all cases they are merged to a single one. This in general also what you want in practice. It is confusing IMO if you have two parameters that have the same value in all cases.
As we can see in the following report the expectedFruitType parameter has disappear in the report :
Example :
Give the report : (without expectedFruitType)
Working sample with two different parameters :
Give the report : (with expectedFruitType)