com.atlassian.confluence.it
Class LongRunningTask
java.lang.Object
com.atlassian.confluence.it.LongRunningTask
- Direct Known Subclasses:
- DeferredLongRunningTask
public class LongRunningTask
- extends java.lang.Object
Constructor Summary |
protected |
LongRunningTask(net.sourceforge.jwebunit.junit.WebTester tester,
java.lang.String taskId,
java.lang.String contextPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LONGRUNNINGTASK_ACTION
public static final java.lang.String LONGRUNNINGTASK_ACTION
- See Also:
- Constant Field Values
LongRunningTask
protected LongRunningTask(net.sourceforge.jwebunit.junit.WebTester tester,
java.lang.String taskId,
java.lang.String contextPath)
getInstanceForSetup
public static LongRunningTask getInstanceForSetup(java.lang.String taskId)
getInstanceForSetup
public static LongRunningTask getInstanceForSetup(java.lang.String taskId,
net.sourceforge.jwebunit.junit.WebTester webTester)
getInstance
public static LongRunningTask getInstance(java.lang.String taskId)
getInstance
public static LongRunningTask getInstance(java.lang.String taskId,
net.sourceforge.jwebunit.junit.WebTester webTester)
getInstanceForDisplayedTask
public static LongRunningTask getInstanceForDisplayedTask()
getInstanceForDisplayedTask
public static LongRunningTask getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester)
waitToComplete
public boolean waitToComplete(long timeout,
java.util.concurrent.TimeUnit unit,
java.lang.String pageLocation,
java.lang.String waitForText,
java.lang.String errorText)
- Wait for the current long running task to complete.
This is indicated either by completion getting to 100% or a particular string
which indicates an error appearing in the response.
- Parameters:
timeout
- fail after this many time units if the long running task has not completed.unit
- the units for the timeout.pageLocation
- the relative location to poll.waitForText
- the text which indicates the long running task has finished.errorText
- the appearance of this string in the response indicates that the task has completed with an error.
- Returns:
- true if the task completed successfully, otherwise false.
waitToComplete
public boolean waitToComplete(long timeout,
java.util.concurrent.TimeUnit unit,
java.lang.String errorText)
Copyright © 2003-2014 Atlassian. All Rights Reserved.