From 65d63fa4771f0ebad98a1d4012601514da8ee9c8 Mon Sep 17 00:00:00 2001 From: cpugputpu Date: Mon, 11 May 2020 08:45:38 -0700 Subject: [PATCH] use containsOnly insead of containsExactly make assertion order-agnostic --- .../instance/diagram/ProcessInstanceDiagramPresenterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/test/java/org/jbpm/workbench/pr/client/editors/instance/diagram/ProcessInstanceDiagramPresenterTest.java b/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/test/java/org/jbpm/workbench/pr/client/editors/instance/diagram/ProcessInstanceDiagramPresenterTest.java index a2d4710dca..9365c080d5 100644 --- a/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/test/java/org/jbpm/workbench/pr/client/editors/instance/diagram/ProcessInstanceDiagramPresenterTest.java +++ b/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/test/java/org/jbpm/workbench/pr/client/editors/instance/diagram/ProcessInstanceDiagramPresenterTest.java @@ -238,7 +238,7 @@ public void testOnProcessInstanceSelectionEvent() { ArgumentCaptor badgesInstancesCaptor = ArgumentCaptor.forClass(Map.class); verify(view).setNodeBadges(badgesInstancesCaptor.capture()); final Map badges = badgesInstancesCaptor.getValue(); - assertThat(badges).containsExactly(immutableEntry("_1", 1l), immutableEntry("_2", 1l), immutableEntry("_3", 1l), immutableEntry("_4", 1l)); + assertThat(badges).containsOnly(immutableEntry("_1", 1l), immutableEntry("_2", 1l), immutableEntry("_3", 1l), immutableEntry("_4", 1l)); } @Test