dain        2004/04/10 02:51:39

  Modified:    modules/itests/src/java/org/openejb/test/stateless
                        StatelessEjbHomeTests.java
  Log:

  Rewrote most unit tests to work against the new container
  Removed unit tests for already deleted code or functionality
  Changed EJBHome and EJBLocalHome remove by primary key on Session beans
  to throw RemoveException instead of RemoteException (see EJB 2.1
  Specification Section 6.6)
  
  Revision  Changes    Path
  1.2       +3 -3      
openejb/modules/itests/src/java/org/openejb/test/stateless/StatelessEjbHomeTests.java
  
  Index: StatelessEjbHomeTests.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/itests/src/java/org/openejb/test/stateless/StatelessEjbHomeTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StatelessEjbHomeTests.java        1 Mar 2004 05:22:43 -0000       1.1
  +++ StatelessEjbHomeTests.java        10 Apr 2004 06:51:39 -0000      1.2
  @@ -115,11 +115,11 @@
       public void test03_removeByPrimaryKey(){
           try{
               ejbHome.remove("primaryKey");
  -        } catch (java.rmi.RemoteException e){
  +        } catch (javax.ejb.RemoveException e){
               assertTrue( true );
               return;
           } catch (Exception e){
  -            fail("Received "+e.getClass()+" instead of java.rmi.RemoteException");
  +            fail("Received "+e.getClass()+" instead of javax.ejb.RemoveException");
           }
           assertTrue("java.rmi.RemoteException should have been thrown", false );
       }
  
  
  

Reply via email to