Use "exactMatch" to check if captured flow rule is expected one
Opened this issue · 0 comments
Yi-Tseng commented
Some tests are using codes like below:
flowRuleService.applyFlowRules(eq(expectedFlow));
expectLastCall().andVoid().once();
verify(flowRuleService);
The eq
function uses equals
from the object, and the DefaultFlowRule
won't actually compare the treatment.
We should capture the flow rule and use exactMatch
to compare the result.