Class PDFCreatorTest


  • class PDFCreatorTest
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String PATH_TO_PDF  
      private static java.util.List<Photo> photoList  
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFCreatorTest()  
    • Method Summary

      Modifier and Type Method Description
      (package private) void createPDF_ShouldWork_GeneratedFileNotNull()  
      (package private) static void setup()  
      (package private) static void tearDown()
      Delete the generated PDF after all tests have been executed.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • photoList

        private static java.util.List<Photo> photoList
    • Constructor Detail

      • PDFCreatorTest

        PDFCreatorTest()
    • Method Detail

      • setup

        @BeforeAll
        static void setup()
      • tearDown

        @AfterAll
        static void tearDown()
        Delete the generated PDF after all tests have been executed.
      • createPDF_ShouldWork_GeneratedFileNotNull

        @Test
        void createPDF_ShouldWork_GeneratedFileNotNull()
                                                throws com.itextpdf.text.DocumentException,
                                                       java.io.IOException
        Throws:
        com.itextpdf.text.DocumentException
        java.io.IOException