Skip to content
Discussion options

You must be logged in to vote

I just tried using @BeforeAll; still doesn't work. Nor does moving the QuarkusMock.installMockForType() call to the test itself and foregoing use of @BeforeAll & @BeforeEach.

FWIW my code is already using @InjectMock; it isn't working the way I'd expect.

Regarding CDI @Alternative: I just tried creating the following class in /src/test/kotlin, which uses the io.quarkus.test.Mock annotation recommended by the documentation:

MockLocalstorageDatasource.kt
import io.agroal.api.AgroalDataSource
import io.agroal.api.AgroalDataSourceMetrics
import io.agroal.api.AgroalPoolInterceptor
import io.agroal.api.configuration.AgroalDataSourceConfiguration
import io.quarkus.agroal.DataSource
import io.qu…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jehrenzweig-leagueapps
Comment options

@jehrenzweig-leagueapps
Comment options

@yrodiere
Comment options

Comment options

You must be logged in to vote
10 replies
@jehrenzweig-leagueapps
Comment options

@yrodiere
Comment options

@jehrenzweig-leagueapps
Comment options

@yrodiere
Comment options

@jehrenzweig-leagueapps
Comment options

Answer selected by yrodiere
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment