Skip to content

Commit

Permalink
MAINTENANCE fix for legal person assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
naare committed Mar 9, 2021
1 parent 7c4f020 commit 65376f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class UserConsentSpec extends SpecificProxyServiceSpecification {
assertEquals("Correct family name is returned", familyName, consentViewResponse.body().htmlPath().get("**.find {it.@id == 'natural-person-surname'}").toString().trim())
assertEquals("Correct first name is returned", firstName, consentViewResponse.body().htmlPath().get("**.find {it.@id == 'natural-person-given-name'}").toString().trim())
assertEquals("Correct date of birth is returned", dateOfBirth, consentViewResponse.body().htmlPath().get("**.find {it.@id == 'natural-person-date-of-birth'}").toString().trim())
assertEquals("Correct legal person name is returned", getLegalEntityListResponse.body().jsonPath().get("legalPersons[0].legalPersonIdentifier"), consentViewResponse.body().htmlPath().get("**.find {it.@id == 'legal-person-name'}").toString().trim())
assertThat("Either legal name from dev or test business register", consentViewResponse.body().htmlPath().get("**.find {it.@id == 'legal-person-identifier'}").toString().trim(), org.hamcrest.Matchers.oneOf("täisühing VAVILOV", "AS Hallebygg"))
assertEquals("Correct legal person identifier is returned", getLegalEntityListResponse.body().jsonPath().get("legalPersons[0].legalPersonIdentifier"), consentViewResponse.body().htmlPath().get("**.find {it.@id == 'legal-person-identifier'}").toString().trim())
assertThat("Correct legal person name from dev or test business register is returned", consentViewResponse.body().htmlPath().get("**.find {it.@id == 'legal-person-name'}").toString().trim(), org.hamcrest.Matchers.oneOf("täisühing VAVILOV", "AS Hallebygg"))

where:
spName || familyName || firstName || personalNumber || dateOfBirth
Expand Down

0 comments on commit 65376f4

Please # to comment.