Package com.atlassian.testsupport
Class TestDataCreator
java.lang.Object
com.atlassian.testsupport.TestDataCreator
Helper class to generate test data for bulk action tests. Caller class will have to handle transaction itself
- Since:
- 6.0
-
Constructor Summary
ConstructorsConstructorDescriptionTestDataCreator
(SpaceManager spaceManager, PageManager pageManager, LabelManager labelManager) -
Method Summary
Modifier and TypeMethodDescriptioncreatePage
(Space testSpace, Page parentPage, String title, String body, ConfluenceUser author) createSpace
(String spaceKey, String spaceDescriptionStr, String homePageTitle, String homePageBody, ConfluenceUser author) generateChildPages
(ConfluenceUser author, Page parentPage, String body, int width, int childCount) pageHierarchyGenerator
(Space testSpace, Page rootPage, int width, int childCount, List<ConfluenceUser> authors)
-
Constructor Details
-
TestDataCreator
public TestDataCreator(SpaceManager spaceManager, PageManager pageManager, LabelManager labelManager)
-
-
Method Details
-
pageHierarchyGenerator
-
generateChildPages
public List<Page> generateChildPages(ConfluenceUser author, Page parentPage, String body, int width, int childCount) -
createSpace
-
createPage
-