[jboss-cvs] JBossAS SVN: r82209 - in projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222: unit and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 10 16:25:23 EST 2008
Author: ALRubinger
Date: 2008-12-10 16:25:23 -0500 (Wed, 10 Dec 2008)
New Revision: 82209
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/TestStatefulWithRemoveMethodRemote.java
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/unit/RegularRemoveMethodUnitTestCase.java
Log:
[EJBTHREE-1241] NoSuchObjectException is thrown for SFSB w/ EJB2.x remote view, not NoSuchEJBException
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/TestStatefulWithRemoveMethodRemote.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/TestStatefulWithRemoveMethodRemote.java 2008-12-10 21:06:13 UTC (rev 82208)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/TestStatefulWithRemoveMethodRemote.java 2008-12-10 21:25:23 UTC (rev 82209)
@@ -21,6 +21,8 @@
*/
package org.jboss.ejb3.test.ejbthree1222;
+import java.rmi.RemoteException;
+
import javax.ejb.EJBObject;
/**
@@ -33,7 +35,7 @@
*/
public interface TestStatefulWithRemoveMethodRemote extends EJBObject
{
- void reset();
+ void reset() throws RemoteException;
- int getCalls();
+ int getCalls() throws RemoteException;
}
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/unit/RegularRemoveMethodUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/unit/RegularRemoveMethodUnitTestCase.java 2008-12-10 21:06:13 UTC (rev 82208)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1222/unit/RegularRemoveMethodUnitTestCase.java 2008-12-10 21:25:23 UTC (rev 82209)
@@ -21,6 +21,8 @@
*/
package org.jboss.ejb3.test.ejbthree1222.unit;
+import java.rmi.NoSuchObjectException;
+
import javax.ejb.NoSuchEJBException;
import junit.framework.Test;
@@ -93,7 +95,7 @@
}
}
-
+
/**
* Tests that a call to an unannotated "void remove()"
* method is a traditional call on a local view
@@ -101,8 +103,8 @@
public void testLocalNormalMethodNamedRemove() throws Exception
{
// Lookup Access Bean
- AccessLocalSfsbRemoteBusiness bean = (AccessLocalSfsbRemoteBusiness) this
- .getInitialContext().lookup(AccessLocalSfsbRemoteBusiness.JNDI_NAME);
+ AccessLocalSfsbRemoteBusiness bean = (AccessLocalSfsbRemoteBusiness) this.getInitialContext().lookup(
+ AccessLocalSfsbRemoteBusiness.JNDI_NAME);
// Reset the number of calls, if any
bean.resetOnLocalBusiness();
@@ -130,7 +132,7 @@
}
}
-
+
/**
* Tests that a call to EJBLocalObject's "void remove()"
* results in proper bean removal
@@ -203,7 +205,7 @@
// Ensure the instance was removed by making another call
bean.getCalls();
}
- catch (NoSuchEJBException nsee)
+ catch (NoSuchObjectException nsee)
{
// Expected
return;
More information about the jboss-cvs-commits
mailing list