From 30a6f73ae60a28257d0c1f29b996445714857fb2 Mon Sep 17 00:00:00 2001 From: Ernst-Christoph Schrewe Date: Wed, 18 Sep 2024 09:25:28 +0200 Subject: [PATCH] fix: added cx number check --- .../adapter/DemandAndCapacityNotificationSammMapperTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/test/java/org/eclipse/tractusx/puris/backend/demandandcapacitynotification/logic/adapter/DemandAndCapacityNotificationSammMapperTest.java b/backend/src/test/java/org/eclipse/tractusx/puris/backend/demandandcapacitynotification/logic/adapter/DemandAndCapacityNotificationSammMapperTest.java index 62a5d4a9..ec19ee68 100644 --- a/backend/src/test/java/org/eclipse/tractusx/puris/backend/demandandcapacitynotification/logic/adapter/DemandAndCapacityNotificationSammMapperTest.java +++ b/backend/src/test/java/org/eclipse/tractusx/puris/backend/demandandcapacitynotification/logic/adapter/DemandAndCapacityNotificationSammMapperTest.java @@ -319,6 +319,11 @@ public void testSammCreationAsCustomer() throws Exception { for (var field: jsonNode.get("materialNumberCustomer")) { Assertions.assertEquals(CUSTOMER_MAT_NUMBER, field.asText()); } + + Assertions.assertTrue(jsonNode.get("materialGlobalAssetId").isArray()); + for (var field: jsonNode.get("materialGlobalAssetId")) { + Assertions.assertEquals(CX_MAT_NUMBER, field.asText()); + } } @ParameterizedTest