public class Repetitively extends Object
Deferred values.
To customize assertion behavior and timeouts, this class allows extensive use
of Options. For example, the following Options may be used
to customize timeout constraints when asserting Deferred values;
Timeout, MaximumRetryDelay, Initial InitialDelay and
RetryFrequency.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Eventually,
Concurrently| Constructor and Description |
|---|
Repetitively() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
assertThat(JavaApplication application,
RemoteCallable<T> callable,
org.hamcrest.Matcher<? super T> matcher)
Asserts that the specified
RemoteCallable submitted to the
JavaApplication repetitively matches the specified matcher
using the specified Options. |
static <T> void |
assertThat(JavaApplication application,
RemoteCallable<T> callable,
org.hamcrest.Matcher<? super T> matcher,
com.oracle.bedrock.Option... options)
Asserts that the specified
RemoteCallable submitted to
the JavaApplication repetitively matches the specified matcher
using the provided Options. |
static <T> void |
assertThat(String message,
com.oracle.bedrock.deferred.Deferred<T> deferred,
org.hamcrest.Matcher<? super T> matcher,
com.oracle.bedrock.Option... options)
Asserts that a
Deferred value, when available, repetitively satisfies
the specified Matcher over the Timeout
and other constraints defined by the provided Options. |
static <T> void |
assertThat(String message,
T value,
org.hamcrest.Matcher<? super T> matcher)
Asserts that a value will repetitively satisfy the specified
Matcher. |
static <T> void |
assertThat(String message,
T value,
org.hamcrest.Matcher<? super T> matcher,
com.oracle.bedrock.Option... options)
Asserts that a value will repetitively satisfy the specified
Matcher
using the provided Options. |
static <T> void |
assertThat(T value,
org.hamcrest.Matcher<? super T> matcher,
com.oracle.bedrock.Option... options)
Asserts that a value will repetitively satisfy the specified
Matcher
using the specified Options. |
public static <T> void assertThat(T value,
org.hamcrest.Matcher<? super T> matcher,
com.oracle.bedrock.Option... options)
throws AssertionError
Matcher
using the specified Options.
Should the value be the result of a call to DeferredHelper.invoking(Deferred)
the result is unwrapped into a Deferred that is then used for the assert.
T - the type of the valuevalue - the valuematcher - the Matcher for the valueoptions - the Options for the assertionAssertionError - if the assertion failspublic static <T> void assertThat(String message, T value, org.hamcrest.Matcher<? super T> matcher) throws AssertionError
Matcher.
Should the value be the result of a call to DeferredHelper.invoking(Deferred)
the result is unwrapped into a Deferred that is then used for the assert.
T - the type of the valuemessage - the message for the AssertionError (null ok)value - the valuematcher - the Matcher for the valueAssertionError - if the assertion failspublic static <T> void assertThat(String message, T value, org.hamcrest.Matcher<? super T> matcher, com.oracle.bedrock.Option... options) throws AssertionError
Matcher
using the provided Options.
Should the value be the result of a call to DeferredHelper.invoking(Deferred)
the result is unwrapped into a Deferred that is then used for the assert.
T - the type of the valuemessage - the message for the AssertionError (null ok)value - the valuematcher - the Matcher for the valueoptions - the OptionsAssertionError - if the assertion failspublic static <T> void assertThat(String message, com.oracle.bedrock.deferred.Deferred<T> deferred, org.hamcrest.Matcher<? super T> matcher, com.oracle.bedrock.Option... options) throws AssertionError
Deferred value, when available, repetitively satisfies
the specified Matcher over the Timeout
and other constraints defined by the provided Options.T - the type of the valuemessage - the message for the AssertionError (null ok)deferred - the Deferred valuematcher - the Matcher for the valueoptions - the OptionsAssertionError - if the assertion failspublic static <T> void assertThat(JavaApplication application, RemoteCallable<T> callable, org.hamcrest.Matcher<? super T> matcher) throws AssertionError
RemoteCallable submitted to the
JavaApplication repetitively matches the specified matcher
using the specified Options.T - the type of the valueapplication - the JavaApplication to which the RemoteCallable will be submittedcallable - the RemoteCallablematcher - the Matcher representing the desire condition to matchAssertionError - if the assertion failspublic static <T> void assertThat(JavaApplication application, RemoteCallable<T> callable, org.hamcrest.Matcher<? super T> matcher, com.oracle.bedrock.Option... options) throws AssertionError
RemoteCallable submitted to
the JavaApplication repetitively matches the specified matcher
using the provided Options.T - the type of the valueapplication - the JavaApplication to which the RemoteCallable will be submittedcallable - the RemoteCallablematcher - the Matcher representing the desire condition to matchoptions - the OptionsAssertionError - if the assertion failsCopyright © 2017. All rights reserved.