You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2009/01/16 23:20:05 UTC

svn commit: r735161 - in /incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition: testBeanConstructor1.xml testBeanConstructor2.xml testBeanConstructor3.xml

Author: gerdogdu
Date: Fri Jan 16 14:20:04 2009
New Revision: 735161

URL: http://svn.apache.org/viewvc?rev=735161&view=rev
Log:
xml resource for constructor test.

Added:
    incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml   (with props)
    incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml   (with props)
    incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml   (with props)

Added: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml?rev=735161&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml (added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml Fri Jan 16 14:20:04 2009
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<WebBeans 	xmlns="urn:java:javax.webbeans"
+		  	xmlns:myapp="urn:java:org.apache.webbeans.test.xml.definition"
+		  	xmlns:lang="urn:java:java.lang"
+ 			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+			xsi:schemaLocation="urn:java:javax.webbeans http://java.sun.com/jee/web-beans-1.0.xsd">
+	
+    <!-- 
+      The parameter bean for the constuctor. 
+    -->
+    <myapp:CtParameter>
+    </myapp:CtParameter>
+
+    <!-- 
+      The constructor under test: public TstBeanConstructor(CtParameter ctParam)
+      CtParameter will be injected into the constructor.
+      
+      After bean creation, val2 will be injected via setter method.
+    -->
+    <myapp:TstBeanConstructor>
+        <myapp:CtParameter/>
+        <myapp:val2>13</myapp:val2>                
+    </myapp:TstBeanConstructor> 
+	
+</WebBeans>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor1.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml?rev=735161&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml (added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml Fri Jan 16 14:20:04 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<WebBeans 	xmlns="urn:java:javax.webbeans"
+		  	xmlns:myapp="urn:java:org.apache.webbeans.test.xml.definition"
+		  	xmlns:lang="urn:java:java.lang"
+ 			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+			xsi:schemaLocation="urn:java:javax.webbeans http://java.sun.com/jee/web-beans-1.0.xsd">
+
+    <!-- 
+      The constructor under test: public TstBeanConstructor(Integer ctParam)
+      Integer ctParam value 42 will be injected into the constructor.
+      
+      After bean creation, val2 will be injected via setter method.
+    -->
+    <myapp:TstBeanConstructor>
+        <RequestScoped/>          
+		
+		<myapp:setVal2>
+			<Initializer/>
+		</myapp:setVal2>
+		 
+    </myapp:TstBeanConstructor> 
+	
+</WebBeans>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor2.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml?rev=735161&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml (added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml Fri Jan 16 14:20:04 2009
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<WebBeans 	xmlns="urn:java:javax.webbeans"
+		  	xmlns:myapp="urn:java:org.apache.webbeans.test.xml.definition"
+		  	xmlns:lang="urn:java:java.lang"
+ 			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+			xsi:schemaLocation="urn:java:javax.webbeans http://java.sun.com/jee/web-beans-1.0.xsd">
+
+    <!-- 
+      The constructor under test: public TstBeanConstructor(int ctParam, int multiplier)
+      int ctParam value 42 and int multiplier value 100 will be injected into the constructor.
+      Since these two values are primitives (int) their according wrapper classes have to be used (Integer).
+      
+      After bean creation, val2 will be injected via setter method.
+    -->
+    <myapp:TstBeanConstructor>
+        <lang:Integer>42</lang:Integer>
+        <lang:Integer>100</lang:Integer>
+        <myapp:val2>13</myapp:val2>                
+    </myapp:TstBeanConstructor> 
+	
+</WebBeans>
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/test/resources/org/apache/webbeans/test/xml/definition/testBeanConstructor3.xml
------------------------------------------------------------------------------
    svn:eol-style = native