deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject git commit: DELTASPIKE-399 For war deployments on app servers, put a copy in WEB-INF/classes to read classpath entry.
Date Mon, 23 Dec 2013 16:42:15 GMT
Updated Branches:
  refs/heads/master 871e5c714 -> a60f751e1


DELTASPIKE-399 For war deployments on app servers, put a copy in WEB-INF/classes to read classpath
entry.


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

Branch: refs/heads/master
Commit: a60f751e1b6a7e3c2a77c46917bb697ca40acc28
Parents: 871e5c7
Author: John D. Ament <john.d.ament@gmail.com>
Authored: Mon Dec 23 11:41:24 2013 -0500
Committer: John D. Ament <john.d.ament@gmail.com>
Committed: Mon Dec 23 11:41:24 2013 -0500

----------------------------------------------------------------------
 .../test/core/impl/resourceloader/InjectResourceTest.java          | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/a60f751e/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/resourceloader/InjectResourceTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/resourceloader/InjectResourceTest.java
b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/resourceloader/InjectResourceTest.java
index ecbd906..ced10cd 100644
--- a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/resourceloader/InjectResourceTest.java
+++ b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/resourceloader/InjectResourceTest.java
@@ -27,6 +27,7 @@ import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Assert;
 import org.junit.Test;
@@ -44,6 +45,7 @@ public class InjectResourceTest {
     {
         Archive<?> arch = ShrinkWrap.create(WebArchive.class, "resourceloader.war")
                 .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
+                .add(new StringAsset("some.propertykey = somevalue"),"WEB-INF/classes/myconfig.properties")
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreArchive());
         return arch;
     }


Mime
View raw message