-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x] - Add @RequestScoped support for testing #7916
[4.x] - Add @RequestScoped support for testing #7916
Conversation
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
microprofile/testing/junit5/src/main/java/io/helidon/microprofile/testing/junit5/AddJaxRs.java
Show resolved
Hide resolved
...sting/junit5/src/main/java/io/helidon/microprofile/testing/junit5/HelidonJunitExtension.java
Show resolved
Hide resolved
...rc/test/java/io/helidon/microprofile/tests/testing/junit5/TestReqScopeDisabledDiscovery.java
Outdated
Show resolved
Hide resolved
...rc/test/java/io/helidon/microprofile/tests/testing/testng/TestReqScopeDisabledDiscovery.java
Outdated
Show resolved
Hide resolved
...rc/test/java/io/helidon/microprofile/tests/testing/junit5/TestReqScopeDisabledDiscovery.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Would like to see this backported to 2.x |
In progress |
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
...ofile/testing/common/src/main/java/io/helidon/microprofile/testing/common/TestValidator.java
Outdated
Show resolved
Hide resolved
...rc/test/java/io/helidon/microprofile/tests/testing/testng/TestReqScopeDisabledDiscovery.java
Outdated
Show resolved
Hide resolved
...sting/testng/src/main/java/io/helidon/microprofile/testing/testng/HelidonTestNgListener.java
Outdated
Show resolved
Hide resolved
...file/testing/common/src/main/java/io/helidon/microprofile/testing/common/JaxRsValidator.java
Outdated
Show resolved
Hide resolved
...sting/testng/src/main/java/io/helidon/microprofile/testing/testng/HelidonTestNgListener.java
Show resolved
Hide resolved
...sting/testng/src/main/java/io/helidon/microprofile/testing/testng/HelidonTestNgListener.java
Show resolved
Hide resolved
…ile/testing/common/TestValidator.java Co-authored-by: Daniel Kec <[email protected]>
…roprofile/tests/testing/testng/TestReqScopeDisabledDiscovery.java Co-authored-by: Daniel Kec <[email protected]>
Co-authored-by: Daniel Kec <[email protected]>
…ile/testing/testng/HelidonTestNgListener.java Co-authored-by: Daniel Kec <[email protected]>
Co-authored-by: Daniel Kec <[email protected]>
…ile/testing/testng/HelidonTestNgListener.java Co-authored-by: Daniel Kec <[email protected]>
…ile/testing/testng/HelidonTestNgListener.java Co-authored-by: Daniel Kec <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering we always add the dependency, there is no service loader to load extensions, and that we want to keep this bacwkard compatible, I do not think this design is what we want.
The simplest solution here would be to just add the @AddJaxRs
annotation directly to the list of annotation in the existing testing module (so we do not introduce a set of new Common
annotations.
As long as we keept the dependency on MP Server optional, this should be sufficient.
microprofile/testing/junit5/pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduces a provided
dependency on MP Server to MP testing.
The extension was written in a way that there is no dependency on MP server (e.g. it can be used to test just CDI without Server).
I am not sure this is the right solution.
This was my first version of the PR :) |
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
microprofile/config/src/test/java/io/helidon/microprofile/config/ConfigBeanDescriptorTest.java
Outdated
Show resolved
Hide resolved
microprofile/server/src/main/java/io/helidon/microprofile/server/JaxRsService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Signed-off-by: Dmitry Aleksandrov <[email protected]>
microprofile/testing/junit5/src/main/java/io/helidon/microprofile/testing/junit5/AddJaxRs.java
Show resolved
Hide resolved
Signed-off-by: Dmitry Aleksandrov <[email protected]>
Resolves #7564 for 4.x