Преглед изворни кода

Death Certificate Converter Tests (4)

Andrew Grant пре 4 месеци
родитељ
комит
bc2cb9f580

+ 40 - 0
src/test/java/scot/carricksoftware/grants/commands/certificates/death/DeathCertificateCommandOrganisationTest.java

@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+package scot.carricksoftware.grants.commands.certificates.death;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import scot.carricksoftware.grants.commands.certificates.deathcertificates.DeathCertificateCommand;
+import scot.carricksoftware.grants.commands.certificates.deathcertificates.DeathCertificateCommandImpl;
+import scot.carricksoftware.grants.domains.places.Organisation;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+
+class DeathCertificateCommandOrganisationTest {
+
+    private DeathCertificateCommand deathCertificateCommand;
+
+    @BeforeEach
+    void setUp() {
+        deathCertificateCommand = new DeathCertificateCommandImpl();
+    }
+
+    @Test
+    void getRegistrationAuthorityTest() {
+        assertNull(deathCertificateCommand.getRegistrationAuthority());
+    }
+
+    @Test
+    void setRegistrationAuthorityTest() {
+        Organisation registrationAuthority = new Organisation();
+        deathCertificateCommand.setRegistrationAuthority(registrationAuthority);
+        assertEquals(registrationAuthority, deathCertificateCommand.getRegistrationAuthority());
+    }
+
+
+
+}