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:55 GMT
Repository: tomee
Updated Branches:
  refs/heads/develop f110b276f -> 9040ece1d


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/9040ece1
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/9040ece1
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/9040ece1

Branch: refs/heads/develop
Commit: 9040ece1daf67b65ceea499b2cc1126fdf7a4d4c
Parents: f110b27
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Thu Jan 15 09:52:34 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Thu Jan 15 09:52:34 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/9040ece1/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 2745999..46571ed 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
@@ -152,6 +152,10 @@ public final class ApplicationComposers {
     private MockServletContext servletContext;
     private final Collection<String> globalJndiEntries = new ArrayList<>();
 
+    public ApplicationComposers(final Object... modules) {
+        this(modules[0].getClass(), modules);
+    }
+
     public ApplicationComposers(final Class<?> klass, final Object... additionalModules)
{
         testClass = klass;
 


Mime
View raw message