deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [2/2] deltaspike git commit: DELTASPIKE-1146 improved test-code of TransactionalBean#executeInTransaction
Date Mon, 16 May 2016 15:28:50 GMT
DELTASPIKE-1146 improved test-code of TransactionalBean#executeInTransaction


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/f3ee6faf
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/f3ee6faf
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/f3ee6faf

Branch: refs/heads/master
Commit: f3ee6faff9bccaaef597d7e7cd37b44bd9287967
Parents: 21848ec
Author: gpetracek <gpetracek@apache.org>
Authored: Mon May 16 17:25:36 2016 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Mon May 16 17:26:24 2016 +0200

----------------------------------------------------------------------
 .../api/transactionscoped/defaultinjection/TransactionalBean.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/f3ee6faf/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactionscoped/defaultinjection/TransactionalBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactionscoped/defaultinjection/TransactionalBean.java
b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactionscoped/defaultinjection/TransactionalBean.java
index aad1bcd..caee2ea 100644
--- a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactionscoped/defaultinjection/TransactionalBean.java
+++ b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactionscoped/defaultinjection/TransactionalBean.java
@@ -33,5 +33,7 @@ public class TransactionalBean
     @Transactional
     public void executeInTransaction()
     {
+        //just access the transaction-scoped bean
+        entityManager.getTransaction();
     }
 }


Mime
View raw message