[jboss-cvs] JBossAS SVN: r65802 - trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree785/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 3 11:22:55 EDT 2007
Author: ALRubinger
Date: 2007-10-03 11:22:54 -0400 (Wed, 03 Oct 2007)
New Revision: 65802
Modified:
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree785/unit/SuperBeanTesterUnitTestCase.java
Log:
EJBTHREE-785: Added test case to ensure local is deployed, added comments to describe testing via remote delegate, renamed test case methods to be more descriptive
Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree785/unit/SuperBeanTesterUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree785/unit/SuperBeanTesterUnitTestCase.java 2007-10-03 15:17:35 UTC (rev 65801)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree785/unit/SuperBeanTesterUnitTestCase.java 2007-10-03 15:22:54 UTC (rev 65802)
@@ -26,6 +26,7 @@
import junit.framework.Test;
import org.jboss.ejb3.test.ejbthree785.MyStatelessBean;
+import org.jboss.ejb3.test.ejbthree785.MyStatelessLocal;
import org.jboss.ejb3.test.ejbthree785.MyStatelessRemote;
import org.jboss.ejb3.test.ejbthree785.Tester;
import org.jboss.ejb3.test.ejbthree785.TesterBean;
@@ -46,7 +47,14 @@
super(name);
}
- public void testSuperRemote() throws Exception
+ /**
+ * Ensures that a remote view of a business interface
+ * implemented by a superclass of an EJB's Implementation
+ * Class is deployed and invokable
+ *
+ * @throws Exception
+ */
+ public void testSuperRemoteInvokable() throws Exception
{
MyStatelessRemote session = (MyStatelessRemote) getInitialContext().lookup(MyStatelessBean.JNDI_NAME_REMOTE);
Date date = new Date();
@@ -55,7 +63,25 @@
assertEquals(expected, actual);
}
- //TODO This test case fails due to Tester not getting fully deployed; related to its dependency on MyStatelessLocal
+ /**
+ * Ensures that a local view of a business interface
+ * implemented by a superclass of an EJB's Implementation
+ * Class is deployed; won't be invokable as unit test runs in separate JVM
+ *
+ * @throws Exception
+ */
+ public void testSuperLocalDeployed() throws Exception
+ {
+ MyStatelessLocal session = (MyStatelessLocal) getInitialContext().lookup(MyStatelessBean.JNDI_NAME_LOCAL);
+ assertNotNull(session);
+ }
+
+ /**
+ * Ensures that dependencies may be made upon EJBs with @Local implemented by
+ * superclass of an EJB's Implementation Class, and that invocation succeeds.
+ *
+ * @throws Exception
+ */
public void testSuperLocalViaRemoteDelegate() throws Exception
{
Tester session = (Tester) getInitialContext().lookup(TesterBean.JNDI_NAME);
More information about the jboss-cvs-commits
mailing list