Class Overview
Control for manipulating server-side barriers.
Summary
Nested Classes |
class |
BarrierControl.Barrier |
An instance of the barrier, provided to the BarrierFunction
|
interface |
BarrierControl.BarrierFunction |
A task to be run while the barrier is raised. |
[Expand]
Inherited Constants |
From class
com.atlassian.jira.testkit.client.BackdoorControl
|
From class
com.atlassian.jira.testkit.client.RestApiClient
|
[Expand]
Inherited Fields |
From class
com.atlassian.jira.testkit.client.BackdoorControl
protected
final
FuncTestLogger |
logger |
|
protected
final
String |
rootPath |
|
|
From class
com.atlassian.jira.testkit.client.RestApiClient
|
Public Constructors |
|
BarrierControl(JIRAEnvironmentData environmentData)
|
[Expand]
Inherited Methods |
From class
com.atlassian.jira.functest.framework.backdoor.BackdoorControl
|
From class
com.atlassian.jira.testkit.client.BackdoorControl
WebResource
|
createResource()
|
final
WebResource
|
createResourceForPath(String arg0, String arg1)
|
final
WebResource
|
createResourceForPath(String arg0)
|
final
String
|
get(WebResource arg0)
|
String
|
getRestModulePath()
|
|
From class
com.atlassian.jira.testkit.client.RestApiClient
T
|
anonymous()
|
void
|
cleanUp()
|
final
Client
|
client()
|
WebResource
|
createResource()
|
WebResource
|
createResourceGadget()
|
WebResource
|
createResourceInternal()
|
<T>
Response<T>
|
errorResponse(ClientResponse arg0)
|
WebResource
|
expanded(WebResource arg0, EnumSet<?> arg1)
|
@Nonnull
JIRAEnvironmentData
|
getEnvironmentData()
|
T
|
loginAs(String arg0, String arg1)
|
T
|
loginAs(String arg0)
|
static
String
|
percentEncode(String arg0)
|
ClientResponse
|
registerResponse(ClientResponse arg0)
|
WebResource
|
resourceRoot(String arg0)
|
static
<E extends Enum<E>>
EnumSet<E>
|
setOf(Class<E> arg0, E... arg1)
|
Response<?>
|
toResponse(RestApiClient.Method arg0)
|
<T>
Response<T>
|
toResponse(RestApiClient.Method arg0, GenericType<T> arg1)
|
<T>
Response<T>
|
toResponse(RestApiClient.Method arg0, Class<T> arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
BarrierControl
(JIRAEnvironmentData environmentData)
Public Methods
public
void
raiseBarrierAndRun
(String barrierName, Runnable r)
Raises the barrier called barrierName
and calls the given Runnable
before lowering the barrier
again. This is useful to test for race conditions in production code.
Parameters
barrierName
| a String containing the barrier name |
r
| a Runnable
|
Raises the barrier called barrierName
and calls the given BarrierFunction
before lowering the
barrier again. The BarrierFunction
is provided with the Barrier
for fine-grained control.
Parameters
barrierName
| a String containing the barrier name |
function
| a BarrierFunction
|