|
@@ -18,6 +18,8 @@ import scot.carricksoftware.grants.converters.certificates.deathcertificates.Dea
|
|
|
import scot.carricksoftware.grants.converters.certificates.deathcertificates.DeathCertificateConverterImpl;
|
|
import scot.carricksoftware.grants.converters.certificates.deathcertificates.DeathCertificateConverterImpl;
|
|
|
import scot.carricksoftware.grants.services.certificates.deathcertificates.DeathCertificateService;
|
|
import scot.carricksoftware.grants.services.certificates.deathcertificates.DeathCertificateService;
|
|
|
import scot.carricksoftware.grants.services.people.PersonService;
|
|
import scot.carricksoftware.grants.services.people.PersonService;
|
|
|
|
|
+import scot.carricksoftware.grants.services.places.organisations.OrganisationService;
|
|
|
|
|
+import scot.carricksoftware.grants.services.places.places.PlaceService;
|
|
|
import scot.carricksoftware.grants.validators.certificates.deathcertificate.DeathCertificateCommandValidator;
|
|
import scot.carricksoftware.grants.validators.certificates.deathcertificate.DeathCertificateCommandValidator;
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
@@ -43,6 +45,12 @@ public class DeathCertificateFormControllerSaveOrUpdateTest {
|
|
|
@Mock
|
|
@Mock
|
|
|
private PersonService personServiceMock;
|
|
private PersonService personServiceMock;
|
|
|
|
|
|
|
|
|
|
+ @Mock
|
|
|
|
|
+ private PlaceService placeServiceMock;
|
|
|
|
|
+
|
|
|
|
|
+ @Mock
|
|
|
|
|
+ private OrganisationService organisationServiceMock;
|
|
|
|
|
+
|
|
|
@Mock
|
|
@Mock
|
|
|
Model modelMock;
|
|
Model modelMock;
|
|
|
|
|
|
|
@@ -61,7 +69,9 @@ public class DeathCertificateFormControllerSaveOrUpdateTest {
|
|
|
deathCertificateCommandConverterMock,
|
|
deathCertificateCommandConverterMock,
|
|
|
deathCertificateConverterMock,
|
|
deathCertificateConverterMock,
|
|
|
deathCertificateCommandValidatorMock,
|
|
deathCertificateCommandValidatorMock,
|
|
|
- personServiceMock);
|
|
|
|
|
|
|
+ personServiceMock,
|
|
|
|
|
+ placeServiceMock,
|
|
|
|
|
+ organisationServiceMock);
|
|
|
deathCertificateCommand = new DeathCertificateCommandImpl();
|
|
deathCertificateCommand = new DeathCertificateCommandImpl();
|
|
|
}
|
|
}
|
|
|
|
|
|