tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: making ApplicationComposers easier to instantiate on its own
Date Thu, 15 Jan 2015 08:52:21 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 851977127 -> 90f9852f8


making ApplicationComposers easier to instantiate on its own


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

Branch: refs/heads/tomee-1.7.x
Commit: 90f9852f8b015118e254931d00739796ae6d4598
Parents: 8519771
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Thu Jan 15 09:51:37 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Thu Jan 15 09:51:37 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/openejb/testing/ApplicationComposers.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/90f9852f/container/openejb-core/src/main/java/org/apache/openejb/testing/ApplicationComposers.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/testing/ApplicationComposers.java
b/container/openejb-core/src/main/java/org/apache/openejb/testing/ApplicationComposers.java
index 729bb8a..ce28cb5 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/testing/ApplicationComposers.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/testing/ApplicationComposers.java
@@ -151,6 +151,10 @@ public final class ApplicationComposers {
     private MockServletContext servletContext;
     private final Collection<String> globalJndiEntries = new ArrayList<String>();
 
+    public ApplicationComposers(final Object... modules) {
+        this(modules[0].getClass(), modules);
+    }
+
     public ApplicationComposers(final Class<?> klass, final Object... additionalModules)
{
         testClass = klass;
 


Mime
View raw message