directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r612571 - /directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java
Date Wed, 16 Jan 2008 21:32:19 GMT
Author: elecharny
Date: Wed Jan 16 13:32:08 2008
New Revision: 612571

URL: http://svn.apache.org/viewvc?rev=612571&view=rev
Log:
Added a test for null assertionValues in filters

Modified:
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java?rev=612571&r1=612570&r2=612571&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserTest.java
Wed Jan 16 13:32:08 2008
@@ -632,6 +632,17 @@
         assertNull( node.getFinal() );
     }
     
+    
+    @Test
+    public void testEqualsFilterNullValue() throws ParseException
+    {
+        SimpleNode node = ( SimpleNode ) FilterParser.parse( "(ou=)" );
+        assertEquals( "ou", node.getAttribute() );
+        assertEquals( "", node.getValue() );
+        assertTrue( node instanceof EqualityNode );
+    }
+
+    
     /*
     @Test
     public void testPerf() throws ParseException



Mime
View raw message