Class AsyncAsserts
java.lang.Object
org.sterl.spring.persistent_tasks.test.AsyncAsserts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
assertMissing
(String value) void
assertMissing
(String value, String... inValues) org.assertj.core.api.ListAssert
<String> assertValue
(String value) void
awaitOrdered
(Runnable fn, String value, String... values) void
awaitOrdered
(String value, String... values) void
awaitValue
(Runnable fn, String value) Wait for the given value, if not found call the given methodvoid
awaitValue
(Runnable fn, String value, String... values) Wait for the given value, if not found call the given methodvoid
awaitValue
(String value) void
awaitValue
(String value, String... values) void
awaitValueOnce
(String value) void
clear()
int
getCount()
int
int
-
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
-