You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2006/11/23 02:50:30 UTC
svn commit: r478430 -
/tapestry/tapestry5/tapestry-ioc/trunk/src/main/java/org/apache/tapestry/ioc/test/TestBase.java
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 {@link #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 {@link #expect(Object)}.andThrow() is preferred, but that doesn't work for void
* methods.