dain        2005/02/25 18:06:15

  Modified:    modules/core/src/test/org/openejb/slsb
                        StatelessInstanceInterceptorTest.java
  Log:

  Added support for in-tx cacheing back in
  This unturned a load of places that were not handling transaction contexts 
properly and bugs in the context itself
  Changed instance contexts so they track entrancy and can be killed as 
required by the spec
  Made all instance context fields final
  
  Revision  Changes    Path
  1.8       +4 -1      
openejb/modules/core/src/test/org/openejb/slsb/StatelessInstanceInterceptorTest.java
  
  Index: StatelessInstanceInterceptorTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/slsb/StatelessInstanceInterceptorTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StatelessInstanceInterceptorTest.java     5 Feb 2005 00:49:46 -0000       
1.7
  +++ StatelessInstanceInterceptorTest.java     25 Feb 2005 23:06:15 -0000      
1.8
  @@ -56,6 +56,7 @@
   import org.apache.geronimo.core.service.Invocation;
   import org.apache.geronimo.core.service.InvocationKey;
   import org.apache.geronimo.core.service.InvocationResult;
  +import org.apache.geronimo.transaction.context.UnspecifiedTransactionContext;
   import junit.framework.TestCase;
   
   import org.openejb.cache.InstancePool;
  @@ -97,6 +98,7 @@
   
       public void testNormalInvocation() throws Throwable {
           EJBInvocationImpl invocation = new 
EJBInvocationImpl(EJBInterfaceType.REMOTE, 0, null);
  +        invocation.setTransactionContext(new 
UnspecifiedTransactionContext());
           invocation.put(KEY, Boolean.FALSE);
           assertNull(interceptor.invoke(invocation));
           assertNull(invocation.getEJBInstanceContext());
  @@ -107,6 +109,7 @@
   
       public void testSystemException() throws Throwable {
           EJBInvocationImpl invocation = new 
EJBInvocationImpl(EJBInterfaceType.REMOTE, 0, null);
  +        invocation.setTransactionContext(new 
UnspecifiedTransactionContext());
           invocation.put(KEY, Boolean.TRUE);
           try {
               interceptor.invoke(invocation);
  
  
  

Reply via email to