tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1196208 - in /openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests: enventry/ ext/enventries/ filterenventry/ listenerenventry/ listenerlocalinject/ sharedenv/
Date Tue, 01 Nov 2011 19:01:33 GMT
Author: rmannibucau
Date: Tue Nov  1 19:01:32 2011
New Revision: 1196208

URL: http://svn.apache.org/viewvc?rev=1196208&view=rev
Log:
updating shrinkwrap descriptor api

Modified:
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/enventry/ServletEnvEntryInjectionTest.java
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/ext/enventries/StratocasterTest.java
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/filterenventry/ServletFilterEnvEntryInjectionTest.java
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerenventry/ServletListenerEnvEntryInjectionTest.java
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerlocalinject/ServletListenerEjbLocalInjectionTest.java
    openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/sharedenv/SharedEnvironmentTest.java

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/enventry/ServletEnvEntryInjectionTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/enventry/ServletEnvEntryInjectionTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/enventry/ServletEnvEntryInjectionTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/enventry/ServletEnvEntryInjectionTest.java
Tue Nov  1 19:01:32 2011
@@ -123,11 +123,9 @@ public class ServletEnvEntryInjectionTes
 
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text("name")
-                .parent()
-                .create("lookup-name").text("java:module/ModuleName")
-        ;
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text("name")
+                .createChild("lookup-name").text("java:module/ModuleName");
 
 
         WebArchive archive = ShrinkWrap.create(WebArchive.class, TEST_NAME + ".war")
@@ -143,12 +141,10 @@ public class ServletEnvEntryInjectionTes
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value)
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value)
         ;
 
     }

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/ext/enventries/StratocasterTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/ext/enventries/StratocasterTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/ext/enventries/StratocasterTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/ext/enventries/StratocasterTest.java
Tue Nov  1 19:01:32 2011
@@ -77,12 +77,10 @@ public class StratocasterTest {
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value);
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value);
 
     }
 

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/filterenventry/ServletFilterEnvEntryInjectionTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/filterenventry/ServletFilterEnvEntryInjectionTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/filterenventry/ServletFilterEnvEntryInjectionTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/filterenventry/ServletFilterEnvEntryInjectionTest.java
Tue Nov  1 19:01:32 2011
@@ -150,12 +150,10 @@ public class ServletFilterEnvEntryInject
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value)
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value)
 /*
                 .parent()
                 .create("injection-target")

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerenventry/ServletListenerEnvEntryInjectionTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerenventry/ServletListenerEnvEntryInjectionTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerenventry/ServletListenerEnvEntryInjectionTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerenventry/ServletListenerEnvEntryInjectionTest.java
Tue Nov  1 19:01:32 2011
@@ -227,12 +227,10 @@ public class ServletListenerEnvEntryInje
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value)
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value)
 /*
                 .parent()
                 .create("injection-target")

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerlocalinject/ServletListenerEjbLocalInjectionTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerlocalinject/ServletListenerEjbLocalInjectionTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerlocalinject/ServletListenerEjbLocalInjectionTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/listenerlocalinject/ServletListenerEjbLocalInjectionTest.java
Tue Nov  1 19:01:32 2011
@@ -227,12 +227,10 @@ public class ServletListenerEjbLocalInje
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value)
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value)
 /*
                 .parent()
                 .create("injection-target")

Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/sharedenv/SharedEnvironmentTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/sharedenv/SharedEnvironmentTest.java?rev=1196208&r1=1196207&r2=1196208&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/sharedenv/SharedEnvironmentTest.java
(original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-tests/src/test/java/org/apache/openejb/arquillian/tests/sharedenv/SharedEnvironmentTest.java
Tue Nov  1 19:01:32 2011
@@ -74,13 +74,10 @@ public class SharedEnvironmentTest exten
     private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type,
String value) {
         Node rootNode = ((NodeProvider) descriptor).getRootNode();
         Node appNode = rootNode.get("/web-app").iterator().next();
-        appNode.create("/env-entry")
-                .create("env-entry-name").text(name)
-                .parent()
-                .create("env-entry-type").text(type)
-                .parent()
-                .create("env-entry-value").text(value)
-        ;
+        appNode.createChild("/env-entry")
+                .createChild("env-entry-name").text(name)
+                .createChild("env-entry-type").text(type)
+                .createChild("env-entry-value").text(value);
 
     }
 }



Mime
View raw message