Class DummyApiAvailableTestResource
- java.lang.Object
-
- com.atlassian.confluence.it.api.test.plugin.apiavailable.DummyApiAvailableTestResource
-
public class DummyApiAvailableTestResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_AVAILABLE
static String
KEY_UNAVAILABLE
static String
STATIC_CONTENT
static String
TITLE
-
Constructor Summary
Constructors Constructor Description DummyApiAvailableTestResource(CustomContentManager customContentManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
content()
A rest resource that produces a static content object to test serialization, see RestApiContentAcceptanceTestString
doCreateAvailable()
String
doCreateUnavailable()
String
exception(int status)
-
-
-
Field Detail
-
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
-
KEY_AVAILABLE
public static final String KEY_AVAILABLE
- See Also:
- Constant Field Values
-
KEY_UNAVAILABLE
public static final String KEY_UNAVAILABLE
- See Also:
- Constant Field Values
-
STATIC_CONTENT
public static final String STATIC_CONTENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DummyApiAvailableTestResource
public DummyApiAvailableTestResource(CustomContentManager customContentManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
-
Method Detail
-
doCreateAvailable
public String doCreateAvailable()
-
doCreateUnavailable
public String doCreateUnavailable()
-
content
public Content content()
A rest resource that produces a static content object to test serialization, see RestApiContentAcceptanceTest- Returns:
- a content object
-
exception
public String exception(int status)
-
-