|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
public abstract class AbstractConfluenceAcceptanceTest
This superclass provides Confluence specific functions useful in acceptance tests.
| Field Summary | |
|---|---|
static String |
DASHBOARD_RECENT_UPDATES_URL
|
protected LogAdjuster |
logAdjuster
Can be used by subclasses to turn logging on the server up or down for just one test. |
protected ConfluenceRpc |
rpc
|
protected static User |
TEST_ADMIN
Deprecated. since 5.6 Use User.ADMIN |
BlogPost |
TEST_BLOG
|
Comment |
TEST_COMMENT
|
protected static String |
TEST_GROUP1
|
protected static String |
TEST_GROUP2
|
Page |
TEST_PAGE
|
Space |
TEST_SPACE
|
Space |
TEST_SPACE2
|
protected static User |
TEST_USER1
Deprecated. since 5.6 Use createTestUser() |
protected static User |
TEST_USER2
Deprecated. since 5.6 Use User.ADMIN |
static String |
TESTBLOG_CONTENT
|
static String |
TESTBLOG_TITLE
|
protected TestData |
testData
|
static String |
TESTPAGE_COMMENT
|
static String |
TESTPAGE_CONTENT
|
static String |
TESTPAGE_TITLE
|
static String |
TESTSPACE_KEY
|
static String |
TESTSPACE_TITLE
|
static String |
TESTSPACE2_KEY
|
static String |
TESTSPACE2_TITLE
|
protected net.sourceforge.jwebunit.junit.WebTester |
webTester
|
protected ConfluenceRpc |
wikiMarkupRpc
Use this for tests where you want to create pages/comments/blogs using wikimarkup. |
| Constructor Summary | |
|---|---|
AbstractConfluenceAcceptanceTest()
|
|
AbstractConfluenceAcceptanceTest(String testName)
|
|
| Method Summary | |
|---|---|
AdminConsole |
adminConsole()
|
AttachmentsTester |
attachments()
|
BaseUrlSelector |
baseUrlSelector()
|
void |
createSpaceViaWebUI(Space space)
|
void |
createTestSpaceViaWebUI()
For those times we need to ensure a space was created via the web UI (For example if the web UI may behave differently to RPC) |
protected User |
createTestUser()
Creates a user with a pseudo-random username. |
protected DarkFeaturesHelper |
darkFeatures()
|
static DirectoryConfiguration |
directoryConfig()
|
File |
generateFile(String filename,
String contents)
|
String |
getAppContext()
|
protected String |
getBaseUrl()
|
String |
getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app. |
protected PluginHelper |
getPluginHelper()
Deprecated. since 5.6 Use plugins() |
protected ServerStateManager |
getServerStateManager()
|
void |
goToBlogCollector(String spaceKey)
|
LoginHelper |
logins()
|
void |
logout()
Log out by going straight to the regular logout.action and then starting a new conversation at the start location, usually noop.jsp. |
PageAcceptanceTester |
pages()
|
protected PluginHelper |
plugins()
|
protected void |
rebuildIndex()
|
protected void |
setUp()
Default setUp method. |
protected void |
setUpTestNG(Method method)
Called by TestNG, calls setUp() on the current class, prevents the need to put this annotation everywhere, and sets the test name properly. |
protected String |
substituteForNodeBaseUrl(String url)
|
protected void |
tearDown()
Default tearDown method. |
protected void |
tearDownTestNG()
Called by TestNG, calls tearDown() on the current class, prevents the need to put this annotation everywhere, and sets the test name properly. |
UserManagementHelper |
users()
|
void |
viewHomepage()
|
SpaceAdmin |
viewSpaceAdmin(Space space)
|
SpacePermissions |
viewSpacePermissions(Space space)
|
void |
viewSpaceSummary(String spaceKey)
|
void |
viewSpaceTools(String spaceKey)
|
void |
viewTrash(String spaceKey,
String spaceTitle)
|
PagesCollectorBean |
watchSpace(String spaceKey)
|
static String |
webAppContextPath()
|
| Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase |
|---|
runBare, setExceptionTransformer |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TestData testData
protected static final String TEST_GROUP1
protected static final String TEST_GROUP2
public Space TEST_SPACE
public Space TEST_SPACE2
public static String TESTSPACE_TITLE
public static String TESTSPACE_KEY
public static String TESTSPACE2_TITLE
public static String TESTSPACE2_KEY
public static final String TESTPAGE_TITLE
public static final String TESTPAGE_CONTENT
public static final String TESTPAGE_COMMENT
public static final String TESTBLOG_TITLE
public static final String TESTBLOG_CONTENT
public Page TEST_PAGE
public BlogPost TEST_BLOG
public Comment TEST_COMMENT
@Deprecated protected static final User TEST_ADMIN
User.ADMIN@Deprecated protected static final User TEST_USER1
createTestUser()@Deprecated protected static final User TEST_USER2
User.ADMINprotected ConfluenceRpc wikiMarkupRpc
protected ConfluenceRpc rpc
protected LogAdjuster logAdjuster
LogAdjuster.resetLogLevels() is called in tearDown().
public static final String DASHBOARD_RECENT_UPDATES_URL
protected net.sourceforge.jwebunit.junit.WebTester webTester
| Constructor Detail |
|---|
public AbstractConfluenceAcceptanceTest(String testName)
public AbstractConfluenceAcceptanceTest()
| Method Detail |
|---|
public static String webAppContextPath()
public static DirectoryConfiguration directoryConfig()
public AttachmentsTester attachments()
public AdminConsole adminConsole()
protected void setUpTestNG(Method method)
throws Exception
method - The test method being called
Exception - if setup fails
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException - from super@Deprecated protected PluginHelper getPluginHelper()
plugins()
protected void tearDownTestNG()
throws Exception
Exception - if tear down fails
protected void tearDown()
throws Exception
filesToDelete list.
tearDown in class junit.framework.TestCaseExceptionpublic String getConfiguredBaseUrl()
public void logout()
LoginHelper.logOutSlowly() instead if you're testing what
logging out actually does, and LoginHelper.logout() if you just want to clean up the session as fast as
possible.
LoginHelper.logout(),
LoginHelper.logOutSlowly()public void createSpaceViaWebUI(Space space)
public void createTestSpaceViaWebUI()
public SpaceAdmin viewSpaceAdmin(Space space)
public void goToBlogCollector(String spaceKey)
public void viewSpaceSummary(String spaceKey)
public SpacePermissions viewSpacePermissions(Space space)
public void viewHomepage()
public void viewTrash(String spaceKey,
String spaceTitle)
public String getAppContext()
public void viewSpaceTools(String spaceKey)
public PagesCollectorBean watchSpace(String spaceKey)
public File generateFile(String filename,
String contents)
protected String getBaseUrl()
getConfiguredBaseUrl() method.
protected void rebuildIndex()
throws InterruptedException
InterruptedExceptionpublic PageAcceptanceTester pages()
public UserManagementHelper users()
protected User createTestUser()
User.TEST, User.TEST2 or User.APOSTROPHE
public LoginHelper logins()
protected ServerStateManager getServerStateManager()
protected DarkFeaturesHelper darkFeatures()
protected PluginHelper plugins()
protected String substituteForNodeBaseUrl(String url)
public BaseUrlSelector baseUrlSelector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||