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 containsOnly insead of containsExactly in ProcessInstanceDiagramPresenterTest.java #1433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpugputpu
Copy link
Contributor

The test in org.jbpm.workbench.pr.client.editors.instance.diagram.ProcessInstanceDiagramPresenterTest#testOnProcessInstanceSelectionEvent can fail due to a different iteration order of Map. 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 of containsExactly so that the iteration order of Map does not make the assertion fail. In this way, the test will be more robust, and the failure above will be removed.

make assertion order-agnostic
@kie-ci
Copy link

kie-ci commented May 11, 2020

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

3 similar comments
@kie-ci
Copy link

kie-ci commented May 11, 2020

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@kie-ci
Copy link

kie-ci commented May 11, 2020

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@kie-ci
Copy link

kie-ci commented May 11, 2020

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@mareknovotny
Copy link
Member

ok to test

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

11 similar comments
@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

@kie-ci
Copy link

kie-ci commented Aug 25, 2022

Can one of the admins verify this patch?

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

Successfully merging this pull request may close these issues.

3 participants