Verblijfplaats Then step definitions
#language: en @stap-documentatie Feature: Verblijfplaats Then step definitions Scenario: Then the response has a person with the following 'verblijfplaats' data Given the response body equals """ { "personen": [ { "verblijfplaats": { "type": "VerblijfplaatsBuitenland" } } ] } """ Then the response has a person with the following 'verblijfplaats' data | type | | VerblijfplaatsBuitenland | Scenario: Then the 'verblijfplaats' has the following 'verblijfadres' data Given the response body equals """ { "personen": [ { "verblijfplaats": { "type": "VerblijfplaatsBuitenland", "verblijfadres": { "land": { "code": "5010", "omschrijving": "België" } } } } ] } """ Then the response has a person with the following 'verblijfplaats' data | type | | VerblijfplaatsBuitenland | And the 'verblijfplaats' has the following 'verblijfadres' data | naam | waarde | | land.code | 5010 | | land.omschrijving | België | Scenario: Then the 'verblijfplaats' has no 'verblijfadres' data Given the response body equals """ { "personen": [ { "verblijfplaats": { "type": "VerblijfplaatsBuitenland", "verblijfadres": {} } } ] } """ Then the response has a person with the following 'verblijfplaats' data | type | | VerblijfplaatsBuitenland | And the 'verblijfplaats' has no 'verblijfadres' data