Class AsyncAsserts
java.lang.Object
org.sterl.spring.persistent_tasks.test.AsyncAsserts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidassertMissing(String value) voidassertMissing(String value, String... inValues) org.assertj.core.api.ListAssert<String> assertValue(String value) voidawaitOrdered(Runnable fn, String value, String... values) voidawaitOrdered(String value, String... values) voidawaitValue(Runnable fn, String value) Wait for the given value, if not found call the given methodvoidawaitValue(Runnable fn, String value, String... values) Wait for the given value, if not found call the given methodvoidawaitValue(String value) voidawaitValue(String value, String... values) voidawaitValueOnce(String value) voidclear()intgetCount()intint
-
Constructor Details
-
AsyncAsserts
public AsyncAsserts()
-
-
Method Details
-
clear
public void clear() -
add
-
info
- Returns:
- how often this value has been already added ...
-
getCount
public int getCount() -
getCount
-
awaitValue
-
awaitValue
Wait for the given value, if not found call the given method- Parameters:
fn- the optional function to call after each waitvalue- the value to wait for
-
awaitValue
Wait for the given value, if not found call the given method- Parameters:
fn- the optional function to call after each waitvalue- the value to wait for
-
awaitValue
-
awaitOrdered
-
awaitOrdered
-
assertValue
-
assertMissing
-
assertMissing
-
awaitValueOnce
-