From 123fe168946213c6402dbd158a72d84f38dd8d27 Mon Sep 17 00:00:00 2001 From: Timon Back Date: Sat, 14 Dec 2024 17:31:11 +0100 Subject: [PATCH] test(core): assert for any list order --- .../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