Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "exactMatch" to check if captured flow rule is expected one #160

Open
Yi-Tseng opened this issue Jan 20, 2021 · 0 comments
Open

Use "exactMatch" to check if captured flow rule is expected one #160

Yi-Tseng opened this issue Jan 20, 2021 · 0 comments
Assignees

Comments

@Yi-Tseng
Copy link
Collaborator

Yi-Tseng commented Jan 20, 2021

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.

@Yi-Tseng Yi-Tseng self-assigned this Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant