Author: hlship
Date: Wed Nov 22 17:50:29 2006
New Revision: 478430

URL: http://svn.apache.org/viewvc?view=rev&rev=478430
Log:
Make use of the EasyMock expect().andReturn() coding pattern.

Modified:
    
tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java

Modified: 
tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java?view=diff&rev=478430&r1=478429&r2=478430
==============================================================================
--- 
tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java
 (original)
+++ 
tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java
 Wed Nov 22 17:50:29 2006
@@ -96,19 +96,6 @@
     }
 
     /**
-     * Sets the return value for the most recent method call upon the mock.
-     * 
-     * @param returnValue
-     *            value to be returned from the method call
-     * @deprecated Use [EMAIL PROTECTED] #expect} instead
-     */
-    @SuppressWarnings("unchecked")
-    protected final <T> IExpectationSetters<T> setReturnValue(Object 
returnValue)
-    {
-        return getMocksControl().andReturn(returnValue);
-    }
-
-    /**
      * Trains a mock object to throw an exception (for the most recent method 
call). Generally,
      * using [EMAIL PROTECTED] #expect(Object)}.andThrow() is preferred, but 
that doesn't work for void
      * methods.


Reply via email to