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 Aug 26, 2024
2 parents da42d4e + 1279669 commit 3df2986
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 10 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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,21 @@ public NodeDetailedRelatedPerson(Node node) {
}

@Override
@Deprecated(forRemoval = true)
public Optional<LocalDate> deathDate() {
return node.get("Overlijden/Datum")
.flatMap(Node::getValue)
.map(LocalDate::parse);
}

@Override
public Optional<IncompleteDate> incompleteDateOfDeath() {
return node.get("Overlijden/Datum")
.flatMap(Node::getValue)
.map(IncompleteDate::fromString);
}


@Override
public Address mainResidence() {
return node.get("Adressen/Hoofdverblijfplaats")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ interface DetailedRelatedPerson extends RelatedPerson {
*/
Optional<LocalDate> deathDate();

/**
* The person's (potentially incomplete) date of death
*/
Optional<IncompleteDate> incompleteDateOfDeath();

/**
* The address of the person's main residence.
*/
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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
</Woonvorm>
</Gezinslid>
<Gezinslid DatumBegin="2012-03-09">
<INSZ>05691199737</INSZ>
<INSZ>12630962125</INSZ>
<Naam>
<Achternamen>
<Achternaam>Vlietinck</Achternaam>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ void deathDateNull_whenMissing() {
assertThat(self.deathDate().isEmpty(), is(true));
}

@Test
void incompleteDeathDateNull_whenMissing() {
assertThat(self.incompleteDateOfDeath().isEmpty(), is(true));
}

@Test
void mapsNISCodeCountry() { assertThat(self.mainResidence().nisCodeCountry(), is(Optional.of("150"))); }

Expand All @@ -76,6 +81,11 @@ void mapsDeathDate() {
MatcherAssert.assertThat(person("65712399877").self().deathDate().get(), is(equalTo(LocalDate.of(2002, 1, 1))));
}

@Test
void mapsIncompleteDeathDate(){
MatcherAssert.assertThat(person("65712399877").self().incompleteDateOfDeath().get().toLocalDate(), is(equalTo(LocalDate.of(2002, 1, 1))));
}

@Test
void mapsMainResidence_caseA() {
var address = person("78721626143").self().mainResidence();
Expand Down
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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.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.40.0</version>
<version>2.41.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit 3df2986

Please sign in to comment.