commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1525264 - /commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
Date Sat, 21 Sep 2013 17:20:50 GMT
Author: mbenson
Date: Sat Sep 21 17:20:50 2013
New Revision: 1525264

URL: http://svn.apache.org/r1525264
Log:
make MockInvocation more benign, returning null for proxy instead of UnsupportedOperationExceptioncore/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java?rev=1525264&r1=1525263&r2=1525264&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
(original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
Sat Sep 21 17:20:50 2013
@@ -45,7 +45,7 @@ public class MockInvocation implements I
     @Override
     public Object getProxy()
     {
-        throw new UnsupportedOperationException("Proxy objects aren't supported.");
+        return null;
     }
 
     @Override



Mime
View raw message