Package org.apache.polaris.nosql.async
Class AsyncExecTestBase
java.lang.Object
org.apache.polaris.nosql.async.AsyncExecTestBase
@EnableWeld
@ExtendWith(org.assertj.core.api.junit.jupiter.SoftAssertionsExtension.class)
public abstract class AsyncExecTestBase
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Durationprotected org.apache.polaris.nosql.async.AsyncExecprotected org.assertj.core.api.SoftAssertions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidperiodic(int failAfter) voidvoidvoidvoidprotected abstract void
-
Field Details
-
soft
protected org.assertj.core.api.SoftAssertions soft -
executor
@Inject protected org.apache.polaris.nosql.async.AsyncExec executor -
asyncTimeout
-
-
Constructor Details
-
AsyncExecTestBase
public AsyncExecTestBase()
-
-
Method Details
-
simpleTests
- Throws:
Exception
-
applicationScopedInvocation
@Test public void applicationScopedInvocation() -
submitMany
@Test public void submitMany() -
submitManyFailing
@Test public void submitManyFailing() -
scheduleMany
@Test public void scheduleMany() -
periodic
@ParameterizedTest @ValueSource(ints={2147483647,0,1,3,5}) public void periodic(int failAfter) -
threadAssertion
protected abstract void threadAssertion()
-