ConfluenceStatelessRestTestRunner
A an abstract JUnit3 base class for REST-related tests. Exposes various helpers via getter methods.
NOTE: This class does NOT auto-create User.TEST
in setup. Any tests that require
such a user are strongly encouraged to create a user with a random name via createTestUser()
.
@Deprecated public abstract class AbstractJUnit3RestAcceptanceTest extends com.atlassian.confluence.junit3.JUnit3TimingTestCase
Modifier and Type | Field and Description |
---|---|
protected static Page |
TEST_PAGE
Deprecated.
|
protected static Space |
TEST_SPACE
Deprecated.
|
Constructor and Description |
---|
AbstractJUnit3RestAcceptanceTest()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
baseUrl()
Deprecated.
|
protected String |
configuredBaseUrl()
Deprecated.
|
protected User |
createTestUser()
Deprecated.
|
protected com.sun.jersey.api.client.Client |
restClient()
Deprecated.
|
protected ConfluenceRpc |
rpc()
Deprecated.
|
protected ServerStateManager |
serverState()
Deprecated.
|
protected void |
setUp()
Deprecated.
|
protected void |
tearDown()
Deprecated.
|
protected UserManagementHelper |
users()
Deprecated.
|
runBare, setExceptionTransformer
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
protected static final Space TEST_SPACE
protected static final Page TEST_PAGE
public AbstractJUnit3RestAcceptanceTest()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
protected User createTestUser()
protected com.sun.jersey.api.client.Client restClient()
protected ConfluenceRpc rpc()
protected String baseUrl()
protected String configuredBaseUrl()
protected ServerStateManager serverState()
protected UserManagementHelper users()
Copyright © 2003–2018 Atlassian. All rights reserved.