Skip to content

Commit c2e8966

Browse files
SIV-714 Unit tests added
1 parent 8c55394 commit c2e8966

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/java/uk/gov/companieshouse/pscdataapi/transform/CompanyPscTransformerTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,18 @@ void testEmptyPscIndividualTransform() {
280280
Assertions.assertNotNull(individual);
281281
}
282282

283+
@Test
284+
void testPscDocumentWithIdentityVerificationDetailsIndividualTransform() {
285+
// Given
286+
PscDocument pscDocument = TestHelper.buildPscDocument("individual");
287+
// When
288+
Individual individual = pscTransformer
289+
.transformPscDocToIndividual(pscDocument, SHOW_FULL_DOB_TRUE);
290+
// Then
291+
Assertions.assertNotNull(individual);
292+
Assertions.assertNotNull(individual.getIdentityVerificationDetails());
293+
}
294+
283295
@Test
284296
void testEmptyPscIndividualBeneficialOwnerTransform() {
285297
IndividualBeneficialOwner individualBeneficialOwner = pscTransformer

0 commit comments

Comments
 (0)