[jboss-cvs] JBossAS SVN: r65964 - in trunk/ejb3: src/resources/test and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 9 08:20:00 EDT 2007


Author: wolfc
Date: 2007-10-09 08:20:00 -0400 (Tue, 09 Oct 2007)
New Revision: 65964

Added:
   trunk/ejb3/src/resources/test/ejbthree1060/
   trunk/ejb3/src/resources/test/ejbthree1060/META-INF/
   trunk/ejb3/src/resources/test/ejbthree1060/META-INF/ejb-jar.xml
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/CommonRemote.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/InvokedBusinessInterfaceBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote1.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote2.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TestFailedException.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Tester.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TesterBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/InvokedBusinessInterfaceUnitTestCase.java
Modified:
   trunk/ejb3/build-test.xml
Log:
EJBTHREE-1060: unit test

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-10-09 12:08:50 UTC (rev 65963)
+++ trunk/ejb3/build-test.xml	2007-10-09 12:20:00 UTC (rev 65964)
@@ -2152,6 +2152,10 @@
       <build-simple-jar name="ejbthree1058"/>
    </target>
    
+   <target name="ejbthree1060" depends="compile-classes">
+      <build-simple-jar name="ejbthree1060"/>
+   </target>
+   
    <target name="jbas4489"
       description="Builds a simple jar files."
       depends="compile-classes">
@@ -3666,6 +3670,7 @@
       ejbthree939,
       ejbthree953, ejbthree957, ejbthree959, ejbthree963, ejbthree967, ejbthree971, ejbthree973, ejbthree985, ejbthree986,
       ejbthree989, ejbthree1020, ejbthree1023, ejbthree1025, ejbthree1040, ejbthree1058,
+      ejbthree1060,
       jaxws,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
       securitydomain, enventry, security5,
@@ -4617,6 +4622,9 @@
          <param name="test" value="ejbthree1058"/>
       </antcall>
       <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree1060"/>
+      </antcall>
+      <antcall target="test" inheritRefs="true">
          <param name="test" value="statelesscreation"/>
       </antcall>
       <antcall target="test" inheritRefs="true">

Added: trunk/ejb3/src/resources/test/ejbthree1060/META-INF/ejb-jar.xml
===================================================================
--- trunk/ejb3/src/resources/test/ejbthree1060/META-INF/ejb-jar.xml	                        (rev 0)
+++ trunk/ejb3/src/resources/test/ejbthree1060/META-INF/ejb-jar.xml	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,31 @@
+<?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" 
+   version="3.0" 
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+   <enterprise-beans>
+      <session>
+         <ejb-name>TesterBean</ejb-name>
+         <ejb-ref>
+            <ejb-ref-name>xml1</ejb-ref-name>
+            <ejb-ref-type>Session</ejb-ref-type>
+            <remote>org.jboss.ejb3.test.ejbthree1060.Remote1</remote>
+            <ejb-link>InvokedBusinessInterfaceBean</ejb-link>
+            <injection-target>
+               <injection-target-class>org.jboss.ejb3.test.ejbthree1060.TesterBean</injection-target-class>
+               <injection-target-name>xml1</injection-target-name>
+            </injection-target>
+         </ejb-ref>
+         <ejb-ref>
+            <ejb-ref-name>xml2</ejb-ref-name>
+            <ejb-ref-type>Session</ejb-ref-type>
+            <remote>org.jboss.ejb3.test.ejbthree1060.Remote2</remote>
+            <ejb-link>InvokedBusinessInterfaceBean</ejb-link>
+            <injection-target>
+               <injection-target-class>org.jboss.ejb3.test.ejbthree1060.TesterBean</injection-target-class>
+               <injection-target-name>xml2</injection-target-name>
+            </injection-target>
+         </ejb-ref>
+      </session>
+   </enterprise-beans>
+</ejb-jar>
\ No newline at end of file


Property changes on: trunk/ejb3/src/resources/test/ejbthree1060/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/CommonRemote.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/CommonRemote.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/CommonRemote.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface CommonRemote
+{
+   Class<?> getInvokedBusinessInterface();
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/CommonRemote.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/InvokedBusinessInterfaceBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/InvokedBusinessInterfaceBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/InvokedBusinessInterfaceBean.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+import javax.annotation.Resource;
+import javax.ejb.Remote;
+import javax.ejb.SessionContext;
+import javax.ejb.Stateless;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at Remote({Remote1.class, Remote2.class})
+public class InvokedBusinessInterfaceBean implements CommonRemote
+{
+   @Resource
+   private SessionContext ctx;
+   
+   public Class<?> getInvokedBusinessInterface()
+   {
+      return ctx.getInvokedBusinessInterface();
+   }
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/InvokedBusinessInterfaceBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote1.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote1.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote1.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface Remote1 extends CommonRemote
+{
+
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote1.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote2.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote2.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote2.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface Remote2 extends CommonRemote
+{
+
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Remote2.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TestFailedException.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TestFailedException.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TestFailedException.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class TestFailedException extends Exception
+{
+   private static final long serialVersionUID = 1L;
+
+   public TestFailedException(String message)
+   {
+      super(message);
+   }
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TestFailedException.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Tester.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Tester.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Tester.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+import javax.ejb.Remote;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Remote
+public interface Tester
+{
+   void testAnnotated1() throws TestFailedException;
+   void testAnnotated2() throws TestFailedException;
+   void testXml1() throws TestFailedException;
+   void testXml2() throws TestFailedException;
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/Tester.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TesterBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TesterBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TesterBean.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060;
+
+import javax.ejb.EJB;
+import javax.ejb.Stateless;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Stateless
+public class TesterBean implements Tester
+{
+   private static final Logger log = Logger.getLogger(TesterBean.class);
+   
+   @EJB
+   private Remote1 annotated1;
+   
+   @EJB
+   private Remote2 annotated2;
+   
+   private Remote1 xml1;
+   
+   private Remote2 xml2;
+   
+   private void check(String name, CommonRemote bean, Class<?> expectedInvokedBusinessInterface) throws TestFailedException
+   {
+      if(bean == null)
+         throw new TestFailedException(name + " was not injected");
+      Class<?> invokedBusinessInterface = annotated1.getInvokedBusinessInterface();
+      log.info("invokedBusinessInterface = " + invokedBusinessInterface);
+      if(!invokedBusinessInterface.equals(expectedInvokedBusinessInterface))
+         throw new TestFailedException("InvokedBusinessInterface was " + invokedBusinessInterface + " instead of " + expectedInvokedBusinessInterface);
+   }
+   
+   public void testAnnotated1() throws TestFailedException
+   {
+      check("annotated1", annotated1, Remote1.class);
+   }
+   
+   public void testAnnotated2() throws TestFailedException
+   {
+      check("annotated2", annotated2, Remote2.class);
+   }
+
+   public void testXml1() throws TestFailedException
+   {
+      check("xml1", xml1, Remote1.class);
+   }
+
+   public void testXml2() throws TestFailedException
+   {
+      check("xml2", xml2, Remote2.class);
+   }
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/TesterBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/InvokedBusinessInterfaceUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/InvokedBusinessInterfaceUnitTestCase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/InvokedBusinessInterfaceUnitTestCase.java	2007-10-09 12:20:00 UTC (rev 65964)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1060.unit;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree1060.TestFailedException;
+import org.jboss.ejb3.test.ejbthree1060.Tester;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Test to see if the proper invoked business interface is returned.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class InvokedBusinessInterfaceUnitTestCase extends JBossTestCase
+{
+   public InvokedBusinessInterfaceUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(InvokedBusinessInterfaceUnitTestCase.class, "ejbthree1060.jar");
+   }
+   
+   public void testAnnotated1() throws Exception
+   {
+      Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
+      try
+      {
+         tester.testAnnotated1();
+      }
+      catch(TestFailedException e)
+      {
+         fail(e.getMessage());
+      }
+   }
+   
+   public void testAnnotated2() throws Exception
+   {
+      Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
+      try
+      {
+         tester.testAnnotated2();
+      }
+      catch(TestFailedException e)
+      {
+         fail(e.getMessage());
+      }
+   }
+   
+   public void testXml1() throws Exception
+   {
+      Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
+      try
+      {
+         tester.testXml1();
+      }
+      catch(TestFailedException e)
+      {
+         fail(e.getMessage());
+      }
+   }
+   
+   public void testXml2() throws Exception
+   {
+      Tester tester = (Tester) getInitialContext().lookup("TesterBean/remote");
+      try
+      {
+         tester.testXml2();
+      }
+      catch(TestFailedException e)
+      {
+         fail(e.getMessage());
+      }
+   }
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1060/unit/InvokedBusinessInterfaceUnitTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native




More information about the jboss-cvs-commits mailing list