Selaa lähdekoodia

writing longtable

Andrew Grant 3 kuukautta sitten
vanhempi
commit
35cee73621

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

@@ -32,7 +32,10 @@ public class PersonSubSectionTimeLineWriterImpl implements PersonSubSectionTimeL
     private final TimelineData timelineData;
     private final FileWriter fileWriter;
 
-    public PersonSubSectionTimeLineWriterImpl(LatexSubSectionHeader latexSubSectionHeader, CensusEntryService censusEntryService, TimelineData timelineData, FileWriter fileWriter) {
+    public PersonSubSectionTimeLineWriterImpl(LatexSubSectionHeader latexSubSectionHeader,
+                                              CensusEntryService censusEntryService,
+                                              TimelineData timelineData,
+                                              FileWriter fileWriter) {
         this.latexSubSectionHeader = latexSubSectionHeader;
         this.censusEntryService = censusEntryService;
         this.timelineData = timelineData;

+ 9 - 1
src/test/java/scot/carricksoftware/grantswriter/writer/latex/parts/people/subsections/PersonSubSectionTimeLineWriterTest.java

@@ -14,8 +14,10 @@ import scot.carricksoftware.grantswriter.data.TimelineData;
 import scot.carricksoftware.grantswriter.domains.census.CensusEntry;
 import scot.carricksoftware.grantswriter.domains.people.Person;
 import scot.carricksoftware.grantswriter.services.censusentry.CensusEntryService;
+import scot.carricksoftware.grantswriter.writer.FileWriter;
 import scot.carricksoftware.grantswriter.writer.latex.LatexSubSectionHeader;
 
+
 import java.util.ArrayList;
 import java.util.List;
 
@@ -37,13 +39,19 @@ class PersonSubSectionTimeLineWriterTest {
     @Mock
     private TimelineData timelineDataMock;
 
+    @Mock
+    private FileWriter fileWriterMock;
+
 
     @Mock
     private Person personMock;
 
     @BeforeEach
     void setUp() {
-        writer = new PersonSubSectionTimeLineWriterImpl(latexSubSectionHeaderMock, censusEntryServiceMock, timelineDataMock);
+        writer = new PersonSubSectionTimeLineWriterImpl(latexSubSectionHeaderMock,
+                censusEntryServiceMock,
+                timelineDataMock,
+                fileWriterMock);
     }
 
     @Test