Class SimpleHtmlSpaceExportStructure


  • public class SimpleHtmlSpaceExportStructure
    extends Object
    Takes in an export html zip, and returns data about it. Use this to perform assertions in tests.
    • Constructor Detail

      • SimpleHtmlSpaceExportStructure

        public SimpleHtmlSpaceExportStructure​(Space space,
                                              ZipFile exportZipFile)
        Parameters:
        space - the space from which the export was made
        exportZipFile - the zip file for the export
    • Method Detail

      • hasPage

        public boolean hasPage​(Page page)
      • computeZipEntryName

        public static String computeZipEntryName​(Page page)
      • getPages

        public List<String> getPages()
        The html export zip contains each page as a separate .html file, with an index.html file. This method considers all the files that end in html other than index.html to be a page from the original space.