Updated unit test 59/11659/1
authorktimoney <kevin.timoney@est.tech>
Mon, 21 Aug 2023 14:30:33 +0000 (15:30 +0100)
committerktimoney <kevin.timoney@est.tech>
Mon, 21 Aug 2023 14:30:44 +0000 (15:30 +0100)
Issue-ID: NONRTRIC-885
Change-Id: Idad93149f768ccaaa111eb18736cede537537262
Signed-off-by: ktimoney <kevin.timoney@est.tech>
src/test/java/org/oran/dmaapadapter/ApplicationTest.java

index 4d8e701..07ddcf0 100644 (file)
@@ -362,8 +362,7 @@ class ApplicationTest {
         DmaapSimulatorController.addResponse("[\"DmaapResponse11\", \"DmaapResponse22\"]");
         ConsumerController.TestResults consumer = this.consumerController.testResults;
         await().untilAsserted(() -> assertThat(consumer.receivedBodies).hasSize(2));
-        assertThat(consumer.receivedBodies.get(0)).isEqualTo("DmaapResponse11");
-        assertThat(consumer.receivedBodies.get(1)).isEqualTo("DmaapResponse22");
+       assertThat(consumer.receivedBodies).containsExactlyInAnyOrder("DmaapResponse11", "DmaapResponse22");
 
         // Delete the job
         this.icsSimulatorController.deleteJob(JOB_ID, restClient());