tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r574117 - /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/test/MockTester.java
Date Mon, 10 Sep 2007 02:42:26 GMT
Author: hlship
Date: Sun Sep  9 19:42:24 2007
New Revision: 574117

URL: http://svn.apache.org/viewvc?rev=574117&view=rev
Log:
TAPESTRY-1741: TestBase/MockTester should give each Mock a name based on the type of mock,
which assists with debugging

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

Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/test/MockTester.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/test/MockTester.java?rev=574117&r1=574116&r2=574117&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/test/MockTester.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/test/MockTester.java
Sun Sep  9 19:42:24 2007
@@ -62,7 +62,7 @@
      */
     public <T> T newMock(Class<T> mockClass)
     {
-        return getMocksControl().createMock(mockClass);
+        return getMocksControl().createMock(mockClass.getSimpleName(), mockClass);
     }
 
     /**



Mime
View raw message