You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2012/11/23 22:05:33 UTC

svn commit: r1413067 - /shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy

Author: lhazlewood
Date: Fri Nov 23 21:05:32 2012
New Revision: 1413067

URL: http://svn.apache.org/viewvc?rev=1413067&view=rev
Log:
SHIRO-397: applied patch

Modified:
    shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy

Modified: shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy
URL: http://svn.apache.org/viewvc/shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy?rev=1413067&r1=1413066&r2=1413067&view=diff
==============================================================================
--- shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy (original)
+++ shiro/trunk/core/src/test/groovy/org/apache/shiro/event/bus/SingleArgumentMethodEventListenerTest.groovy Fri Nov 23 21:05:32 2012
@@ -29,7 +29,7 @@ class SingleArgumentMethodEventListenerT
 
         def target = new Object()
 
-        def method = Object.class.getMethods()[0] //any old method will do
+        def method = Object.class.getMethod("hashCode") //any method without a single arg will do
 
         try {
             //noinspection GroovyResultOfObjectAllocationIgnored