From 35ace81baa09042a9f699956bebeaeabc525048e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=BCller?= Date: Fri, 13 Dec 2024 17:13:03 +0100 Subject: [PATCH] test(core): fix flaky assertion for operation entries Co-authored-by: Timon Back --- .../operations/OperationsInClassScannerAdapterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/scanners/operations/OperationsInClassScannerAdapterTest.java b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/scanners/operations/OperationsInClassScannerAdapterTest.java index 87bc0b0e7..939d5fe42 100644 --- a/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/scanners/operations/OperationsInClassScannerAdapterTest.java +++ b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/scanners/operations/OperationsInClassScannerAdapterTest.java @@ -43,7 +43,8 @@ void processClassTest() { Map operations = operationsInClassScannerAdapter.scan(); // then - assertThat(operations).containsExactlyEntriesOf(Map.of("operation1", operation1, "operation2", operation2)); + assertThat(operations) + .containsExactlyInAnyOrderEntriesOf(Map.of("operation1", operation1, "operation2", operation2)); } @Test