|
@@ -7,6 +7,8 @@ package scot.carricksoftware.grantswriter.writer.latex.sections;
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
+import org.mockito.Mock;
|
|
|
|
+import scot.carricksoftware.grantswriter.writer.latex.parts.people.PersonSectionHeader;
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|
|
|
|
|
@@ -15,9 +17,12 @@ class PersonSectionTest {
|
|
|
|
|
|
private PersonSection personSection;
|
|
private PersonSection personSection;
|
|
|
|
|
|
|
|
+ @Mock
|
|
|
|
+ PersonSectionHeader personSectionHeaderMock;
|
|
|
|
+
|
|
@BeforeEach
|
|
@BeforeEach
|
|
void setUp() {
|
|
void setUp() {
|
|
- personSection = new PersonSectionImpl();
|
|
|
|
|
|
+ personSection = new PersonSectionImpl(personSectionHeaderMock);
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|