com.atlassian.confluence.it.export
Class SimpleHtmlSpaceExportStructure

java.lang.Object
  extended by com.atlassian.confluence.it.export.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 Summary
SimpleHtmlSpaceExportStructure(Space space, ZipFile exportZipFile)
           
 
Method Summary
static String computeZipEntryName(Page page)
           
 List<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,
                                      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.



Copyright © 2003-2013 Atlassian. All Rights Reserved.