소스 검색

BirthCertificateCommand Validators structure

Andrew Grant 6 달 전
부모
커밋
b0f4976cf2

+ 18 - 0
src/test/java/scot/carricksoftware/grants/validators/certificates/birthcertificate/BirthCertificateCommandPartOneValidatorTest.java

@@ -6,11 +6,29 @@
 package scot.carricksoftware.grants.validators.certificates.birthcertificate;
 
 import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.mockito.Mock;
+import org.mockito.junit.jupiter.MockitoExtension;
+import scot.carricksoftware.grants.validators.helpers.ValidateTypes;
 
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
+@ExtendWith(MockitoExtension.class)
 class BirthCertificateCommandPartOneValidatorTest {
 
+    private BirthCertificateCommandPartOneValidator validator;
+
+    @Mock
+    private ValidateTypes validateTypesMock;
+
     @BeforeEach
     void setUp() {
+        validator = new BirthCertificateCommandPartOneValidatorImpl(validateTypesMock);
+    }
+
+    @Test
+    void constructorTest() {
+        assertNotNull(validator);
     }
 }

+ 18 - 0
src/test/java/scot/carricksoftware/grants/validators/certificates/birthcertificate/BirthCertificateCommandPartThreeValidatorTest.java

@@ -6,11 +6,29 @@
 package scot.carricksoftware.grants.validators.certificates.birthcertificate;
 
 import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.mockito.Mock;
+import org.mockito.junit.jupiter.MockitoExtension;
+import scot.carricksoftware.grants.validators.helpers.ValidateTypes;
 
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
+@ExtendWith(MockitoExtension.class)
 class BirthCertificateCommandPartThreeValidatorTest {
 
+    private BirthCertificateCommandPartThreeValidator validator;
+
+    @Mock
+    private ValidateTypes validateTypesMock;
+
     @BeforeEach
     void setUp() {
+        validator = new BirthCertificateCommandPartThreeValidatorImpl(validateTypesMock);
+    }
+
+    @Test
+    void constructorTest() {
+        assertNotNull(validator);
     }
 }

+ 20 - 0
src/test/java/scot/carricksoftware/grants/validators/certificates/birthcertificate/BirthCertificateCommandPartTwoValidatorTest.java

@@ -6,11 +6,31 @@
 package scot.carricksoftware.grants.validators.certificates.birthcertificate;
 
 import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.mockito.Mock;
+import org.mockito.junit.jupiter.MockitoExtension;
+import scot.carricksoftware.grants.validators.helpers.ValidateTypes;
 
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
+
+@ExtendWith(MockitoExtension.class)
 class BirthCertificateCommandPartTwoValidatorTest {
 
+    private BirthCertificateCommandPartTwoValidator validator;
+
+    @Mock
+    private ValidateTypes validateTypesMock;
+
     @BeforeEach
     void setUp() {
+        validator = new BirthCertificateCommandPartTwoValidatorImpl(validateTypesMock);
     }
+
+    @Test
+    void constructorTest() {
+        assertNotNull(validator);
+    }
+
 }