This is an automated email from the ASF dual-hosted git repository.

jungm pushed a commit to branch ee11
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/ee11 by this push:
     new 5d30756290 replace MaangedBean with CDI bean in test
5d30756290 is described below

commit 5d307562905e477928d5b3022479806cdda2f24c
Author: Markus Jung <[email protected]>
AuthorDate: Wed Nov 5 20:13:26 2025 +0100

    replace MaangedBean with CDI bean in test
---
 .../java/org/apache/openejb/arquillian/tests/resenventry/Purple.java  | 4 ++--
 .../java/org/apache/openejb/arquillian/tests/resenventry/Red.java     | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Purple.java
 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Purple.java
index 01926d1029..c0841527c0 100644
--- 
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Purple.java
+++ 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Purple.java
@@ -19,8 +19,8 @@ package org.apache.openejb.arquillian.tests.resenventry;
 
 import java.lang.reflect.Field;
 
-import jakarta.annotation.ManagedBean;
 import jakarta.annotation.Resource;
+import jakarta.enterprise.context.ApplicationScoped;
 import jakarta.enterprise.inject.spi.BeanManager;
 import jakarta.transaction.TransactionManager;
 import jakarta.transaction.TransactionSynchronizationRegistry;
@@ -30,7 +30,7 @@ import jakarta.validation.ValidatorFactory;
 
 import org.junit.Assert;
 
-@ManagedBean
+@ApplicationScoped
 public class Purple {
 
     @Resource
diff --git 
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Red.java
 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Red.java
index 8fe5f5e1a9..4c246daa40 100644
--- 
a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Red.java
+++ 
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/resenventry/Red.java
@@ -22,6 +22,7 @@ import java.lang.reflect.Field;
 
 import jakarta.annotation.Resource;
 import jakarta.enterprise.inject.spi.BeanManager;
+import jakarta.inject.Inject;
 import jakarta.servlet.ServletException;
 import jakarta.servlet.annotation.WebServlet;
 import jakarta.servlet.http.HttpServlet;
@@ -57,7 +58,7 @@ public class Red  extends HttpServlet {
     @Resource
     private BeanManager beanManager;
 
-    @Resource
+    @Inject
     private Purple purple;
 
     @Override

Reply via email to