commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r239984 - /jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java
Date Thu, 25 Aug 2005 03:28:26 GMT
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


Mime
View raw message