Ver código fonte

PersonSectionContentsWriterOnyContentsTest

Andrew Grant 1 semana atrás
pai
commit
e18a6eda5e

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

@@ -90,4 +90,13 @@ class PersonSectionContentsWriterOnyContentsTest {
         writer.write(person);
         verify(latexDivisionHeaderMock).write((Integer) any(), any());
     }
+
+    @Test
+    void sortIsCalled() {
+        contents = new ArrayList<>();
+        contents.add(personText);
+        when(personTextServiceMock.findAllByPerson(person)).thenReturn(contents);
+        writer.write(person);
+        verify(personListSortByOrderMock).sort(contents);
+    }
 }