Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbucket-pipelines committed Sep 4, 2024
2 parents d47917c + 737a94c commit e8bc09e
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion interfaces/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion magdaconnector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion magdamock-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<artifactId>magdamock-starter</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion magdamock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<code>MSG00100</code>
<description>Treatment successful, but no data found at the supplier.</description>
</status>
<ssin>00000000000</ssin>
<results>
<dgphResult>
<status>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.UUID;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNull;

@Slf4j
class GeefDossierHandicapByDateTest extends MockTestBase {
Expand Down Expand Up @@ -97,6 +98,6 @@ void geefDossierHandicapByDateGeeftAntwoordNotFound() {
assertThat(status).isEqualTo("NO_DATA_FOUND");

var ssin = doc.getValue("//Antwoorden/Antwoord/Inhoud/ConsultFilesByDateResponse/ssin");
assertThat(ssin).isEqualTo("00010100173");
assertNull(ssin);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

import static be.vlaanderen.vip.mock.magda.client.simulators.SOAPSimulatorBuilder.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

class GeefDossierHandicapSimulatorTest {

@Test
void fillsInSsinFromByDateRequest() throws URISyntaxException, IOException {
var ssin = "00010100173";
var ssin = "10712995476";

var request = MagdaDocumentBuilder.request(Map.of(
"Context", Map.of(
Expand All @@ -35,4 +36,25 @@ void fillsInSsinFromByDateRequest() throws URISyntaxException, IOException {

assertEquals(ssin, response.getValue("//Antwoorden/Antwoord/Inhoud/ConsultFilesByDateResponse/ssin"));
}
@Test
void ssinNotFilledInWhenNoDataFound() throws URISyntaxException, IOException {
var ssin = "00010100173";
var request = MagdaDocumentBuilder.request(Map.of(
"Context", Map.of(
"Naam", "GeefDossierHandicap",
"Versie", "03.00.0000"),
"Vragen", Map.of(
"Vraag", Map.of(
"Inhoud", Map.of(
"Criteria", Map.of(
"ConsultFilesByDateCriteria", Map.of(
"ssin", ssin
)))))));

var simulator = new GeefDossierHandicapSimulator(ResourceFinders.magdaSimulator(), PERSOON, KEY_SSIN);

var response = simulator.send(request);

assertNull(response.getValue("//Antwoorden/Antwoord/Inhoud/ConsultFilesByDateResponse/ssin"));
}
}
2 changes: 1 addition & 1 deletion magdaservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>be.vlaanderen.vip.mock</groupId>
<artifactId>magda</artifactId>
<version>2.43.0</version>
<version>2.44.0</version>
<name>magdaservice</name>
<description>MAGDA diensten Mock voor afnemers</description>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion signing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion tester/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>magda</artifactId>
<groupId>be.vlaanderen.vip.mock</groupId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit e8bc09e

Please sign in to comment.