com.atlassian.confluence.acceptancetest.roundtrip
Class SpaceRoundTripSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by com.atlassian.confluence.acceptancetest.roundtrip.SpaceRoundTripSuite
All Implemented Interfaces:
junit.framework.Test

public class SpaceRoundTripSuite
extends junit.framework.TestSuite

Create suite of tests to test roundtripping of a single space.


Constructor Summary
SpaceRoundTripSuite(Space space, java.lang.String spaceExportPath)
          Construct a suite to test the roundtrip of a particular space.
SpaceRoundTripSuite(Space space, java.lang.String spaceExportPath, PageRoundTripTestFactory testFactory)
          Construct a suite to test the roundtrip of a particular space.
 
Method Summary
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpaceRoundTripSuite

public SpaceRoundTripSuite(Space space,
                           java.lang.String spaceExportPath)
                    throws java.io.IOException
Construct a suite to test the roundtrip of a particular space. The spaceExportPath should point to an XML space export file for the space. The export will only be used if the space does not already exist in confluence. Note that the baseurl System property must be set to the baseurl of the Confluence instance to be tested or else "http://localhost:8080/confluence" will be assumed.

Uses the RpcPageRoundTripTestFactory for its tests.

Parameters:
space - whose pages will be tested
spaceExportPath - path to xml backup file containing space
Throws:
java.io.IOException

SpaceRoundTripSuite

public SpaceRoundTripSuite(Space space,
                           java.lang.String spaceExportPath,
                           PageRoundTripTestFactory testFactory)
                    throws java.io.IOException
Construct a suite to test the roundtrip of a particular space. The spaceExportPath should point to an XML space export file for the space. The export will only be used if the space does not already exist in confluence. Note that the baseurl System property must be set to the baseurl of the Confluence instance to be tested or else "http://localhost:8080/confluence" will be assumed.

Parameters:
space - whose pages will be tested
spaceExportPath - path to xml backup file containing space
Throws:
java.io.IOException


Copyright © 2003-2011 Atlassian. All Rights Reserved.