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