You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jc...@apache.org on 2005/08/25 05:28:26 UTC

svn commit: r239984 - /jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java

Author: jcarman
Date: Wed Aug 24 20:28:24 2005
New Revision: 239984

URL: http://svn.apache.org/viewcvs?rev=239984&view=rev
Log:
Improved test case.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java?rev=239984&r1=239983&r2=239984&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java Wed Aug 24 20:28:24 2005
@@ -29,7 +29,11 @@
     {
         final PatternMethodFilter filter = new PatternMethodFilter( "set\\w+|get\\w+" );
         assertTrue( filter.accepts( Date.class.getMethod( "getSeconds" ) ) );
+        assertTrue( filter.accepts( Date.class.getMethod( "getMinutes" ) ) );
         assertTrue( filter.accepts( Date.class.getMethod( "setSeconds", Integer.TYPE ) ) );
+        assertTrue( filter.accepts( Date.class.getMethod( "setMinutes", Integer.TYPE ) ) );
         assertFalse( filter.accepts( Date.class.getMethod( "toString" ) ) );
+        assertFalse( filter.accepts( Date.class.getMethod( "hashCode" ) ) );
+
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org