From 36645b2f5ba6d7034a89e42ce8eed6fab0c438a1 Mon Sep 17 00:00:00 2001 From: alexsilva Date: Mon, 23 Oct 2023 09:45:37 +0100 Subject: [PATCH] feat(Gate) - Fix test values --- .../eclipse/tractusx/bpdm/cleaning/testdata/CommonValues.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bpdm-cleaning-service-dummy/src/test/kotlin/org/eclipse/tractusx/bpdm/cleaning/testdata/CommonValues.kt b/bpdm-cleaning-service-dummy/src/test/kotlin/org/eclipse/tractusx/bpdm/cleaning/testdata/CommonValues.kt index 3cb5b8f1c..a263c8d64 100644 --- a/bpdm-cleaning-service-dummy/src/test/kotlin/org/eclipse/tractusx/bpdm/cleaning/testdata/CommonValues.kt +++ b/bpdm-cleaning-service-dummy/src/test/kotlin/org/eclipse/tractusx/bpdm/cleaning/testdata/CommonValues.kt @@ -144,16 +144,16 @@ object CommonValues { hasChanged = true, legalName = nameParts.joinToString(" "), legalShortName = shortName, - identifiers = identifiers.map { it.toLegalEntityIdentifierDto() }, + identifiers = identifiers.mapNotNull { it.toLegalEntityIdentifierDto() }, legalForm = legalForm, - states = states.map { it.toLegalEntityState() }, + states = states.mapNotNull { it.toLegalEntityState() }, classifications = classifications.map { it.toBusinessPartnerClassificationDto() } ) val expectedSiteDto = SiteDto( hasChanged = true, name = nameParts.joinToString(" "), - states = states.map { it.toSiteState() }, + states = states.mapNotNull { it.toSiteState() }, ) val expectedLogisticAddressDto = LogisticAddressDto(