com.atlassian.confluence.it.rest
Class AbstractJUnit3RestAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.it.rest.AbstractJUnit3RestAcceptanceTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BreadcrumbsAcceptanceTest, CommentAcceptanceTest, ContentAcceptanceTest, DarkFeaturesRestAcceptanceTest, EdgeIndexAcceptanceTest, GroupsAcceptanceTest, I18nAcceptanceTest, KeyboardShortcutAcceptanceTest, PageAcceptanceTest, QuickReloadAcceptanceTest, RestAttachmentAcceptanceTest, RestSignupAcceptanceTest, RestSpaceAcceptanceTest, RestSpaceListAcceptanceTest, UserAcceptanceTest, UserHistoryAcceptanceTest, UsersAcceptanceTest

public abstract class AbstractJUnit3RestAcceptanceTest
extends com.atlassian.confluence.junit3.JUnit3TimingTestCase

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().

Since:
5.6

Field Summary
protected static Page TEST_PAGE
           
protected static Space TEST_SPACE
           
 
Constructor Summary
AbstractJUnit3RestAcceptanceTest()
           
 
Method Summary
protected  String baseUrl()
           
protected  String configuredBaseUrl()
           
protected  User createTestUser()
           
protected  com.sun.jersey.api.client.Client restClient()
           
protected  ConfluenceRpc rpc()
           
protected  ServerStateManager serverState()
           
protected  void setUp()
           
protected  void tearDown()
           
protected  UserManagementHelper users()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_SPACE

protected static final Space TEST_SPACE

TEST_PAGE

protected static final Page TEST_PAGE
Constructor Detail

AbstractJUnit3RestAcceptanceTest

public AbstractJUnit3RestAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

createTestUser

protected User createTestUser()

restClient

protected com.sun.jersey.api.client.Client restClient()

rpc

protected ConfluenceRpc rpc()

baseUrl

protected String baseUrl()

configuredBaseUrl

protected String configuredBaseUrl()

serverState

protected ServerStateManager serverState()

users

protected UserManagementHelper users()


Copyright © 2003–2015 Atlassian. All rights reserved.