PollingChangeTracker
@Deprecated public class RepeatableTaskRunner extends Object
AssertionFailedError
if the
task does not return the desired result within the timeout period.
This is designed for testing asynchronous events on the server.
Constructor and Description |
---|
RepeatableTaskRunner(long intervalMillis,
long timeoutMillis)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
assertFalse(String message,
RepeatableTask task)
Deprecated.
since 5.6 use
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead |
<V> void |
assertThat(Callable<V> task,
org.hamcrest.Matcher<V> matcher)
Deprecated.
|
<V> void |
assertThat(String message,
Callable<V> task,
org.hamcrest.Matcher<V> matcher)
Deprecated.
|
void |
assertTrue(String message,
RepeatableTask task)
Deprecated.
since 5.6 use
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead |
public RepeatableTaskRunner(long intervalMillis, long timeoutMillis)
intervalMillis
- the interval between successive runs of the tasktimeoutMillis
- the total amount of time from the start of running a task until the
AssertionFailedError
is thrown.@Deprecated public void assertTrue(String message, RepeatableTask task) throws Exception
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher)
insteadAssertionFailedError
if the task doesn't
return true within the timeout provided.message
- the failure message used if the task doesn't return true within the timeouttask
- a Callable which returns a BooleanAssertionFailedError
- if the task does not return true before the timeout expiresException
- if the task itself throws an exception@Deprecated public void assertFalse(String message, RepeatableTask task) throws Exception
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher)
insteadAssertionFailedError
if the task doesn't
return false within the timeout provided.message
- the failure message used if the task doesn't return false within the timeouttask
- a Callable which returns a BooleanAssertionFailedError
- if the task does not return false before the timeout expiresException
- if the task itself throws an exceptionpublic <V> void assertThat(Callable<V> task, org.hamcrest.Matcher<V> matcher) throws Exception
Exception
Copyright © 2003–2016 Atlassian. All rights reserved.