|
|
@@ -14,6 +14,7 @@ import scot.carricksoftware.grants.domains.certificates.BirthCertificate;
|
|
|
import scot.carricksoftware.grants.domains.certificates.DeathCertificate;
|
|
|
import scot.carricksoftware.grants.domains.certificates.DivorceCertificate;
|
|
|
import scot.carricksoftware.grants.domains.certificates.MarriageCertificate;
|
|
|
+import scot.carricksoftware.grants.domains.images.Image;
|
|
|
import scot.carricksoftware.grants.domains.images.PersonImage;
|
|
|
import scot.carricksoftware.grants.domains.people.Person;
|
|
|
import scot.carricksoftware.grants.domains.text.PersonText;
|
|
|
@@ -41,6 +42,7 @@ class PersonCommandConverterTest {
|
|
|
String certifiedYearOfBirth = GetRandomString();
|
|
|
String certifiedYearOfDeath = GetRandomString();
|
|
|
PersonCommand source = new PersonCommandImpl();
|
|
|
+ Image image = new Image();
|
|
|
|
|
|
ArrayList<DivorceCertificate> divorceCertificates = new ArrayList<>();
|
|
|
divorceCertificates.add(new DivorceCertificate());
|
|
|
@@ -79,6 +81,7 @@ class PersonCommandConverterTest {
|
|
|
source.setDeathCertificates(deathCertificates);
|
|
|
source.setBirthCertificates(birthCertificates);
|
|
|
source.setMarriageCertificates(marriageCertificates);
|
|
|
+ source.setImage(image);
|
|
|
|
|
|
|
|
|
Person target = converter.convert(source);
|
|
|
@@ -98,6 +101,7 @@ class PersonCommandConverterTest {
|
|
|
assertEquals(deathCertificates, target.getDeathCertificates());
|
|
|
assertEquals(birthCertificates, target.getBirthCertificates());
|
|
|
assertEquals(marriageCertificates, target.getMarriageCertificates());
|
|
|
+ assertEquals(image, target.getImage());
|
|
|
|
|
|
}
|
|
|
}
|