-
Notifications
You must be signed in to change notification settings - Fork 0
net.natura.testcommons.extensions.InstantTaskExecutorExtension
Lucas de Souza da Conceição edited this page Jul 2, 2020
·
1 revision
class InstantTaskExecutorExtension : BeforeEachCallback, AfterEachCallback
A JUnit 5 extension that swaps the background executor used by the Architecture Components with a different one which executes each task synchronously.
Example usage:
@ExtendWith(InstantTaskExecutorExtension::class)
class MyViewModelTest {
}