Explorar o código

PersonSubSectionReferencesWriterTest

Andrew Grant hai 3 meses
pai
achega
b19416fcf3

+ 1 - 1
src/main/java/scot/carricksoftware/grantswriter/writer/latex/parts/people/subsections/PersonSubSectionReferencesWriter.java

@@ -9,5 +9,5 @@ import scot.carricksoftware.grantswriter.domains.people.Person;
 
 public interface PersonSubSectionReferencesWriter {
 
-    void write(Person person);
+    void write(@SuppressWarnings("unused") Person person);
 }

+ 1 - 1
src/main/java/scot/carricksoftware/grantswriter/writer/latex/parts/people/subsections/PersonSubSectionTimeLineWriter.java

@@ -8,5 +8,5 @@ package scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections;
 import scot.carricksoftware.grantswriter.domains.people.Person;
 
 public interface PersonSubSectionTimeLineWriter {
-    void write(Person person);
+    void write(@SuppressWarnings("unused") Person person);
 }

+ 32 - 0
src/test/java/scot/carricksoftware/grantswriter/writer/latex/parts/people/subsections/PersonSubSectionReferencesWriterTest.java

@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+package scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.mockito.Mock;
+import scot.carricksoftware.grantswriter.writer.latex.LatexSubSectionHeader;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+
+class PersonSubSectionReferencesWriterTest {
+
+    private PersonSubSectionReferencesWriter personSubSectionReferencesWriter;
+
+    @Mock
+    private LatexSubSectionHeader latexSubSectionHeaderMock;
+
+    @BeforeEach
+    void setUp() {
+        personSubSectionReferencesWriter = new PersonSubSectionReferencesWriterImpl(latexSubSectionHeaderMock);
+    }
+
+    @Test
+    void constructorTest() {
+        assertNotNull(personSubSectionReferencesWriter);
+    }
+}