You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running a @QuarkusTest fails with a java.lang.ClassCastException, see MWE.
Expected behavior
The tests passes.
Actual behavior
When using @ParameterizedTest with @MethodSource, see MWE, the test fails with the following exception: java.lang.ClassCastException: class org.hamcrest.core.Is cannot be cast to class org.hamcrest.Matcher (org.hamcrest.core.Is is in unnamed module of loader 'app'; org.hamcrest.Matcher is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @7188af83)
However, if the test parameters are mapped manually (using a regular @Test) it passes.
Describe the bug
Running a
@QuarkusTest
fails with ajava.lang.ClassCastException
, see MWE.Expected behavior
The tests passes.
Actual behavior
When using
@ParameterizedTest
with@MethodSource
, see MWE, the test fails with the following exception:java.lang.ClassCastException: class org.hamcrest.core.Is cannot be cast to class org.hamcrest.Matcher (org.hamcrest.core.Is is in unnamed module of loader 'app'; org.hamcrest.Matcher is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @7188af83)
However, if the test parameters are mapped manually (using a regular
@Test
) it passes.To Reproduce
Steps to reproduce the behavior:
./mvnw verify
Configuration
# no properties are set explicitly
Environment (please complete the following information):
uname -a
orver
:java -version
:11.0.1, vendor: Oracle Corporation
1.3.1.Final
mvnw --version
orgradlew --version
):Additional context
The behavior occurred when I upgraded quarkus from 1.2.1.Final to 1.3.0.Final/1.3.1.Final.
quarkusio#8251
The text was updated successfully, but these errors were encountered: