You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/03/25 01:05:41 UTC
svn commit: r158971 -
directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
Author: akarasulu
Date: Thu Mar 24 16:05:40 2005
New Revision: 158971
URL: http://svn.apache.org/viewcvs?view=rev&rev=158971
Log:
Reversing my last commit. I missunderstood the issue it seems: http://issues.apache.org/jira/browse/DIRLDAP-38
Modified:
directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java?view=diff&r1=158970&r2=158971
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java (original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/filter/FilterParserImplTest.java Thu Mar 24 16:05:40 2005
@@ -574,65 +574,6 @@
}
- /** Filter From http://issues.apache.org/jira/browse/DIRLDAP-38 */
- public static final String REARRANGING_FILTER = "(& (a=A) (| (b=B) (c=C) ) )";
-
-
- /**
- * Test case for problem described in http://issues.apache.org/jira/browse/DIRLDAP-38.
- *
- * @throws IOException when parser cannot form pipe
- * @throws ParseException when parsing bad input
- */
- public void testFilterRearrangement() throws IOException, ParseException
- {
-// From http://issues.apache.org/jira/browse/DIRLDAP-38
-//
-// (& (a=A) (| (b=B) (c=C) ) )
-//
-// The resulting expression object after the BER parser is finished is:
-//
-// (& (| (c=C) (b=B) (a=A) ) )
-
- // let's just try printing out first using a standard visitor
-
- FilterParserImpl parser = new FilterParserImpl();
-
- ExprNode rootNode = parser.parse( REARRANGING_FILTER );
-
- StringBuffer buf = new StringBuffer();
-
- rootNode.printToBuffer( buf );
-
- String regenerated = buf.toString().trim();
-
- assertEquals( REARRANGING_FILTER, regenerated );
-
- System.err.println( regenerated );
-
- // let's now try normalizing then printing out: start with fresh stuff
-
- parser = new FilterParserImpl();
-
- rootNode = parser.parse( REARRANGING_FILTER );
-
- buf = new StringBuffer();
-
- BranchNormalizedVisitor visitor = new BranchNormalizedVisitor();
-
- visitor.visit( rootNode );
-
- rootNode.printToBuffer( buf );
-
- regenerated = buf.toString().trim();
-
- assertEquals( REARRANGING_FILTER, regenerated );
-
- System.err.println( regenerated );
-
- }
-
-
/* @todo look at custom error handlers for the parser */
/////// Causes parser to hang rather than really bombing out. Looks like
/////// we may need to implement a custom error handler for this parser.