directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r493134 - /directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
Date Fri, 05 Jan 2007 18:45:04 GMT
Author: elecharny
Date: Fri Jan  5 10:45:03 2007
New Revision: 493134

URL: http://svn.apache.org/viewvc?view=rev&rev=493134
Log:
Added a commented test for bad filters

Modified:
    directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java

Modified: directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java?view=diff&rev=493134&r1=493133&r2=493134
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
Fri Jan  5 10:45:03 2007
@@ -175,6 +175,22 @@
         assertEquals( AbstractExprNode.EQUALITY, node.getAssertionType() );
     }
 
+    /*
+    public void testBadEqualsFilter() throws IOException, ParseException
+    {
+        try
+        {
+            SimpleNode node = ( SimpleNode ) parser.parse( "ou = people" );
+            
+            // The parsing should fail
+            fail();
+        }
+        catch( ParseException pe )
+        {
+            assertTrue( true );
+        }
+    }
+    */
 
     public void testEqualsWithForwardSlashFilter() throws IOException, ParseException
     {



Mime
View raw message