-
Notifications
You must be signed in to change notification settings - Fork 161
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 containsOnly insead of containsExactly in ProcessInstanceDiagramPresenterTest.java #1433
base: main
Are you sure you want to change the base?
Conversation
make assertion order-agnostic
Can one of the admins verify this PR? Comment with 'ok to test' to start the build. |
3 similar comments
Can one of the admins verify this PR? Comment with 'ok to test' to start the build. |
Can one of the admins verify this PR? Comment with 'ok to test' to start the build. |
Can one of the admins verify this PR? Comment with 'ok to test' to start the build. |
ok to test |
Can one of the admins verify this patch? |
11 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
The test in
org.jbpm.workbench.pr.client.editors.instance.diagram.ProcessInstanceDiagramPresenterTest#testOnProcessInstanceSelectionEvent
can fail due to a different iteration order ofMap
. The failure is presented as follows:java.lang.AssertionError:
Actual and expected have the same elements but not in the same order, at index 0 actual element was:
<MapEntry[key="_2", value=1L]>
whereas expected element was:
<_1=1>
The fix is to use
containsOnly
instead ofcontainsExactly
so that the iteration order ofMap
does not make the assertion fail. In this way, the test will be more robust, and the failure above will be removed.