[jboss-svn-commits] JBoss Common SVN: r2600 - in jbossxb/trunk/src/test: resources/org/jboss/test/ejb/metadata/test and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 5 08:39:30 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-10-05 08:39:29 -0400 (Fri, 05 Oct 2007)
New Revision: 2600

Added:
   jbossxb/trunk/src/test/resources/org/jboss/test/ejb/metadata/test/EjbJar3x_testServiceRefs.xml
Modified:
   jbossxb/trunk/src/test/java/org/jboss/test/ejb/metadata/test/EjbJar3xUnitTestCase.java
Log:
Basic service-ref test

Modified: jbossxb/trunk/src/test/java/org/jboss/test/ejb/metadata/test/EjbJar3xUnitTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/ejb/metadata/test/EjbJar3xUnitTestCase.java	2007-10-02 19:03:19 UTC (rev 2599)
+++ jbossxb/trunk/src/test/java/org/jboss/test/ejb/metadata/test/EjbJar3xUnitTestCase.java	2007-10-05 12:39:29 UTC (rev 2600)
@@ -157,4 +157,16 @@
       assertEquals("TestBean", beanMetaData.getEjbName());
       assertFalse(iterator.hasNext());
 */   }
+
+   /**
+    * Test session/service-ref
+    * @throws Exception
+    */
+   public void testServiceRefs()
+      throws Exception
+   {
+         EjbJar3xMetaData result = unmarshal();
+         EnterpriseBeansMetaData beans = result.getEnterpriseBeans();
+         assertNotNull(beans);
+   }
 }

Added: jbossxb/trunk/src/test/resources/org/jboss/test/ejb/metadata/test/EjbJar3x_testServiceRefs.xml
===================================================================
--- jbossxb/trunk/src/test/resources/org/jboss/test/ejb/metadata/test/EjbJar3x_testServiceRefs.xml	                        (rev 0)
+++ jbossxb/trunk/src/test/resources/org/jboss/test/ejb/metadata/test/EjbJar3x_testServiceRefs.xml	2007-10-05 12:39:29 UTC (rev 2600)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+    version="3.0"
+    id="ejb-jar-service-refs">
+    <display-name>SecurityTests</display-name>
+    <enterprise-beans>
+        <session id="session1">
+            <description>A secured trival echo session bean</description>
+            <ejb-name>StatelessSession1</ejb-name>
+            <home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
+            <remote>org.jboss.test.security.interfaces.StatelessSession</remote>
+            <local-home>org.jboss.test.security.interfaces.StatelessSessionLocalHome</local-home>
+            <local>org.jboss.test.security.interfaces.StatelessSessionLocal</local>
+            <ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+            <service-ref>
+                <!-- JNDI name bound to the service interface in the client's environment context -->
+                <service-ref-name>session1/Hello</service-ref-name>
+                <!-- service interface class -->
+                <service-interface>org.jboss.test.security.interfaces.HelloWorldService</service-interface>
+                <!-- placeholder for published WSDL file -->
+                <wsdl-file>session1-wsdl-file</wsdl-file>
+                <!-- Java<->XML mapping file -->
+                <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+                <port-component-ref>
+                    <!-- service endpoint interface class -->
+                    <service-endpoint-interface>org.jboss.test.security.interfaces.HelloEndPoint</service-endpoint-interface>
+                </port-component-ref>
+            </service-ref>
+        </session>
+        <session>
+            <description>A secured trival echo session bean</description>
+            <ejb-name>StatelessSession2</ejb-name>
+            <home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
+            <remote>org.jboss.test.security.interfaces.StatelessSession</remote>
+            <local-home>org.jboss.test.security.interfaces.StatelessSessionLocalHome</local-home>
+            <local>org.jboss.test.security.interfaces.StatelessSessionLocal</local>
+            <ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+            <service-ref>
+                <!-- JNDI name bound to the service interface in the client's environment context -->
+                <service-ref-name>session2/Hello</service-ref-name>
+                <!-- service interface class -->
+                <service-interface>org.jboss.test.security.interfaces.HelloWorldService</service-interface>
+                <!-- placeholder for published WSDL file -->
+                <wsdl-file>session2-wsdl-file</wsdl-file>
+                <!-- Java<->XML mapping file -->
+                <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+                <port-component-ref>
+                    <!-- service endpoint interface class -->
+                    <service-endpoint-interface>org.jboss.test.security.interfaces.HelloEndPoint</service-endpoint-interface>
+                </port-component-ref>
+            </service-ref>
+        </session>
+    </enterprise-beans>
+    
+</ejb-jar>


Property changes on: jbossxb/trunk/src/test/resources/org/jboss/test/ejb/metadata/test/EjbJar3x_testServiceRefs.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native




More information about the jboss-svn-commits mailing list