[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...

Gavin King gavin.king at jboss.com
Sun Feb 11 14:48:12 EST 2007


  User: gavin   
  Date: 07/02/11 14:48:12

  Modified:    src/test/misc/org/jboss/seam/test  InterceptorTest.java
  Log:
  optimize interceptor stack
  
  Revision  Changes    Path
  1.29      +1 -38     jboss-seam/src/test/misc/org/jboss/seam/test/InterceptorTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InterceptorTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/test/misc/org/jboss/seam/test/InterceptorTest.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -b -r1.28 -r1.29
  --- InterceptorTest.java	9 Feb 2007 03:44:22 -0000	1.28
  +++ InterceptorTest.java	11 Feb 2007 19:48:12 -0000	1.29
  @@ -1,4 +1,4 @@
  -//$Id: InterceptorTest.java,v 1.28 2007/02/09 03:44:22 gavin Exp $
  +//$Id: InterceptorTest.java,v 1.29 2007/02/11 19:48:12 gavin Exp $
   package org.jboss.seam.test;
   
   import java.lang.reflect.Method;
  @@ -10,7 +10,6 @@
   import org.jboss.seam.Component;
   import org.jboss.seam.RequiredException;
   import org.jboss.seam.Seam;
  -import org.jboss.seam.annotations.Outcome;
   import org.jboss.seam.contexts.Context;
   import org.jboss.seam.contexts.Contexts;
   import org.jboss.seam.contexts.FacesApplicationContext;
  @@ -24,7 +23,6 @@
   import org.jboss.seam.interceptors.BijectionInterceptor;
   import org.jboss.seam.interceptors.ConversationInterceptor;
   import org.jboss.seam.interceptors.ConversationalInterceptor;
  -import org.jboss.seam.interceptors.OutcomeInterceptor;
   import org.jboss.seam.interceptors.RemoveInterceptor;
   import org.jboss.seam.interceptors.ValidationInterceptor;
   import org.jboss.seam.mock.MockApplication;
  @@ -705,41 +703,6 @@
      }
      
      @Test
  -   public void testOutcomeInterceptor() throws Exception
  -   {
  -      Lifecycle.setPhaseId(PhaseId.INVOKE_APPLICATION);
  -      
  -      OutcomeInterceptor oi = new OutcomeInterceptor();
  -      
  -      String outcome = (String) oi.aroundInvoke( new MockInvocationContext() {
  -         @Override
  -         public Object proceed() throws Exception
  -         {
  -            return Outcome.REDISPLAY;
  -         } 
  -      } );
  -      assert outcome==null;
  -      
  -      outcome = (String) oi.aroundInvoke( new MockInvocationContext() {
  -         @Override
  -         public Object proceed() throws Exception
  -         {
  -            return "success";
  -         } 
  -      } );
  -      assert outcome=="success";
  -      
  -      Object result = oi.aroundInvoke( new MockInvocationContext() {
  -         @Override
  -         public Object proceed() throws Exception
  -         {
  -            return InterceptorTest.this;
  -         } 
  -      } );
  -      assert result==this;
  -   }
  -   
  -   @Test 
      public void testRemoveInterceptor() throws Exception
      {
         MockServletContext servletContext = new MockServletContext();
  
  
  



More information about the jboss-cvs-commits mailing list