directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 21043 - in incubator/directory/snickers/trunk/ber-codec: . src/test/org/apache/snickers/ber/digester src/test/org/apache/snickers/ber/digester/testutils
Date Fri, 11 Jun 2004 02:38:47 GMT
Author: akarasulu
Date: Thu Jun 10 19:38:46 2004
New Revision: 21043

Removed:
   incubator/directory/snickers/trunk/ber-codec/src/test/org/apache/snickers/ber/digester/testutils/
Modified:
   incubator/directory/snickers/trunk/ber-codec/project.xml
   incubator/directory/snickers/trunk/ber-codec/src/test/org/apache/snickers/ber/digester/TagTreeTest.java
Log:
Commit changes ...

 o put the test utils for accessing private members and methods into commons
 o modified classes for changes 
 o updated project to include the jar



Modified: incubator/directory/snickers/trunk/ber-codec/project.xml
==============================================================================
--- incubator/directory/snickers/trunk/ber-codec/project.xml	(original)
+++ incubator/directory/snickers/trunk/ber-codec/project.xml	Thu Jun 10 19:38:46 2004
@@ -26,6 +26,13 @@
     </dependency>
 
     <dependency>
+      <groupId>commons-test</groupId>
+      <artifactId>commons-test</artifactId>
+      <version>0.1</version>
+      <url>http://jakarta.apache.org/commons/test</url>
+    </dependency>
+
+    <dependency>
       <groupId>commons-codec</groupId>
       <artifactId>commons-codec</artifactId>
       <version>SNAPSHOT</version>

Modified: incubator/directory/snickers/trunk/ber-codec/src/test/org/apache/snickers/ber/digester/TagTreeTest.java
==============================================================================
--- incubator/directory/snickers/trunk/ber-codec/src/test/org/apache/snickers/ber/digester/TagTreeTest.java
(original)
+++ incubator/directory/snickers/trunk/ber-codec/src/test/org/apache/snickers/ber/digester/TagTreeTest.java
Thu Jun 10 19:38:46 2004
@@ -22,7 +22,7 @@
 import java.util.HashMap ;
 
 import org.apache.commons.collections.primitives.IntStack ;
-import org.apache.snickers.ber.digester.testutils.PrivateTestCase ;
+import org.apache.commons.test.PrivateTestCase ;
 
 
 /**
@@ -54,7 +54,7 @@
      */ 
     private TagNode getWildNode( TagTree tree, int tag )
     {
-        HashMap nodes = ( HashMap ) super.getMember( "wildNodes", tree ) ;
+        HashMap nodes = ( HashMap ) getMember( "wildNodes", tree ) ;
         return ( TagNode ) nodes.get( new Integer( tag ) ) ;
     }
 
@@ -69,7 +69,7 @@
      */ 
     private TagNode getNormalNode( TagTree tree, int tag )
     {
-        HashMap nodes = ( HashMap ) super.getMember( "normNodes", tree ) ;
+        HashMap nodes = ( HashMap ) getMember( "normNodes", tree ) ;
         return ( TagNode ) nodes.get( new Integer( tag ) ) ;
     }
 
@@ -86,8 +86,8 @@
     {
         Class[] argClasses = { pattern.getClass(), Stack.class } ;
         Object[] args = { pattern, stack } ;
-        Object result = super.invokeMemberMethod( tree, TagTree.class,
-                "isTailMatch", argClasses, args ) ;
+        Object result = invoke( tree, TagTree.class, "isTailMatch", argClasses,
+                args ) ;
         return ( ( Boolean ) result ).booleanValue() ;
     }
 
@@ -106,8 +106,8 @@
     {
         Class[] argClasses = { pattern.getClass(), Stack.class } ;
         Object[] args = { pattern, stack } ;
-        Object result = super.invokeMemberMethod( tree, TagTree.class,
-                "isReverseTailMatch", argClasses, args ) ;
+        Object result = invoke( tree, TagTree.class, "isReverseTailMatch",
+                argClasses, args ) ;
         return ( ( Boolean ) result ).booleanValue() ;
     }
 
@@ -226,8 +226,8 @@
         } ;
 
         Object[] args = { pattern, rule, stack, node } ;
-        super.invokeMemberMethod( tree, TagTree.class,
-                "addWildRuleToNormalTree", argClasses, args ) ;
+        invoke( tree, TagTree.class, "addWildRuleToNormalTree",
+                argClasses, args ) ;
     }
 
 
@@ -363,8 +363,8 @@
         } ;
 
         Object[] args = { pattern, rule, stack, node } ;
-        super.invokeMemberMethod( tree, TagTree.class,
-                "addWildRuleToWildTree", argClasses, args ) ;
+        invoke( tree, TagTree.class, "addWildRuleToWildTree", argClasses,
+                args ) ;
     }
 
 
@@ -461,8 +461,7 @@
     {
         Class[] argClasses = { pattern.getClass(), Rule.class } ;
         Object[] args = { pattern, rule } ;
-        super.invokeMemberMethod( tree, TagTree.class, "addWildRule",
-                argClasses, args ) ;
+        invoke( tree, TagTree.class, "addWildRule", argClasses, args ) ;
     }
 
 
@@ -478,7 +477,7 @@
     {
         Class[] argClasses = { pattern.getClass(), Rule.class } ;
         Object[] args = { pattern, rule } ;
-        super.invokeMemberMethod( tree, TagTree.class, "addNormalRule",
+        invoke( tree, TagTree.class, "addNormalRule",
                 argClasses, args ) ;
     }
 

Mime
View raw message