From 4c4fd7b5b6d63e2b69ea9f56aff48f7ca2e215da Mon Sep 17 00:00:00 2001 From: Meric Akgul Date: Mon, 6 Jan 2025 10:08:12 +0100 Subject: [PATCH] refactor: use current zds time instead of 000000 when creating status from einddatum or from sta.datumStatusGezet in voegZaakdocumentToe --- e2e/SoapUI/zaakbrug-e2e-soapui-project.xml | 94 ++++++++----------- ...Configuration_VoegZaakdocumentToe_Lk01.xml | 2 +- .../Translate/Zgw/Zaken/Model/ZgwStatus.xslt | 12 ++- .../Translate/Zgw/ZgwFunctionsBase.xslt | 28 ++++++ 4 files changed, 74 insertions(+), 62 deletions(-) diff --git a/e2e/SoapUI/zaakbrug-e2e-soapui-project.xml b/e2e/SoapUI/zaakbrug-e2e-soapui-project.xml index 409026911..2c508cd67 100644 --- a/e2e/SoapUI/zaakbrug-e2e-soapui-project.xml +++ b/e2e/SoapUI/zaakbrug-e2e-soapui-project.xml @@ -1,5 +1,5 @@ - + @@ -8261,40 +8261,40 @@ testRunner.testCase.getTestStepByName("Properties").setPropertyValue('DocumentBa - - B1026 - Minimaregeling aanvraag - Afgehandeld - - * - J + + B1026 + Minimaregeling aanvraag + Afgehandeld + + * + J - - B1026 - Minimaregeling aanvraag - Besluitvorming afgerond - - * - N + + B1026 + Minimaregeling aanvraag + Besluitvorming afgerond + + * + N - - B1026 - Minimaregeling aanvraag - Ontvangen - - * - N + + B1026 + Minimaregeling aanvraag + In behandeling genomen + + * + N - - B1026 - Minimaregeling aanvraag - In behandeling genomen - - * - N + + B1026 + Minimaregeling aanvraag + Ontvangen + + * + N ]]> @@ -15571,7 +15571,7 @@ testRunner.testCase.getTestStepByName("Properties").setPropertyValue( 'JwtToken' \r \r \r - ${=import java.text.SimpleDateFormat; import java.util.Calendar; Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1); new SimpleDateFormat("yyyyMMdd").format(cal.getTime())}000000000\r + ${=import java.text.SimpleDateFormat; SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSS"); sdf.setTimeZone(TimeZone.getTimeZone("${#Project#ZdsTimezone}")); sdf.format(new Date());}\r \r \r \r @@ -16516,7 +16516,7 @@ testRunner.testCase.getTestStepByName("Properties").setPropertyValue( 'JwtToken' \r \r \r - ${=import java.text.SimpleDateFormat; import java.util.Calendar; Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1); new SimpleDateFormat("yyyyMMdd").format(cal.getTime())}000000000\r + ${=import java.text.SimpleDateFormat; SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSS"); sdf.setTimeZone(TimeZone.getTimeZone("${#Project#ZdsTimezone}")); sdf.format(new Date());}\r \r \r \r @@ -17818,7 +17818,7 @@ testRunner.testCase.getTestStepByName("Properties").setPropertyValue( 'JwtToken' \r \r \r - ${=import java.text.SimpleDateFormat; import java.util.Calendar; Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1); new SimpleDateFormat("yyyyMMdd").format(cal.getTime())}000000000\r + ${=import java.text.SimpleDateFormat; SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSS"); sdf.setTimeZone(TimeZone.getTimeZone("${#Project#ZdsTimezone}")); sdf.format(new Date());}\r \r \r \r @@ -44180,10 +44180,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" @@ -44839,10 +44836,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" @@ -49148,10 +49142,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" @@ -49734,10 +49725,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" @@ -50535,10 +50523,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" @@ -51368,10 +51353,7 @@ def einddatum = xml.'**'.find { it.name() == 'einddatum' }?.text() def datumStatusGezet = xml.'**'.find { it.name() == 'datumStatusGezet' }?.text() // Check if the value of "datumStatusGezet" took the value of "einddatum" -assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" - -// Check if the value of "datumStatusGezet" set the time zero" -assert datumStatusGezet.contains('000000') : "'datumStatusGezet' did not set the time zero" +assert datumStatusGezet.contains(einddatum) : "'datumStatusGezet' did not take the value of 'einddatum'" diff --git a/src/main/configurations/Translate/Configuration_VoegZaakdocumentToe_Lk01.xml b/src/main/configurations/Translate/Configuration_VoegZaakdocumentToe_Lk01.xml index 966031d80..2d3c2fc25 100644 --- a/src/main/configurations/Translate/Configuration_VoegZaakdocumentToe_Lk01.xml +++ b/src/main/configurations/Translate/Configuration_VoegZaakdocumentToe_Lk01.xml @@ -313,7 +313,7 @@ > - + diff --git a/src/main/configurations/Translate/Zgw/Zaken/Model/ZgwStatus.xslt b/src/main/configurations/Translate/Zgw/Zaken/Model/ZgwStatus.xslt index 2a2a6c7bf..948e894eb 100644 --- a/src/main/configurations/Translate/Zgw/Zaken/Model/ZgwStatus.xslt +++ b/src/main/configurations/Translate/Zgw/Zaken/Model/ZgwStatus.xslt @@ -21,14 +21,16 @@ - 0) + and (string-length($ZdsStatusDatum) = 0) and not($ZdsEinddatum = 'Undefined')"> - + + - + + diff --git a/src/main/configurations/Translate/Zgw/ZgwFunctionsBase.xslt b/src/main/configurations/Translate/Zgw/ZgwFunctionsBase.xslt index 88eb3b8e0..7483e8c61 100644 --- a/src/main/configurations/Translate/Zgw/ZgwFunctionsBase.xslt +++ b/src/main/configurations/Translate/Zgw/ZgwFunctionsBase.xslt @@ -260,4 +260,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file