com.atlassian.confluence.it.export
Class SimpleHtmlSpaceExportStructure

java.lang.Object
  extended by com.atlassian.confluence.it.export.SimpleHtmlSpaceExportStructure

public class SimpleHtmlSpaceExportStructure
extends java.lang.Object

Takes in an export html zip, and returns data about it. Use this to perform assertions in tests.


Constructor Summary
SimpleHtmlSpaceExportStructure(Space space, java.util.zip.ZipFile exportZipFile)
           
 
Method Summary
static java.lang.String computeZipEntryName(Page page)
           
 java.util.List<java.lang.String> getPages()
          The html export zip contains each page as a separate .html file, with an index.html file.
 boolean hasPage(Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHtmlSpaceExportStructure

public SimpleHtmlSpaceExportStructure(Space space,
                                      java.util.zip.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 java.lang.String computeZipEntryName(Page page)

getPages

public java.util.List<java.lang.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.



Copyright © 2003-2014 Atlassian. All Rights Reserved.