directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r524623 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
Date Sun, 01 Apr 2007 16:03:27 GMT
Author: seelmann
Date: Sun Apr  1 09:03:26 2007
New Revision: 524623

URL: http://svn.apache.org/viewvc?view=rev&rev=524623
Log:
Added commented test cases for DIRSERVER-891

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java?view=diff&rev=524623&r1=524622&r2=524623
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
Sun Apr  1 09:03:26 2007
@@ -237,4 +237,49 @@
 
         assertTrue( checker.isValidSyntax( spec ) );
     }
+    
+//    /**
+//     * Test case for DIRSERVER-891
+//     */
+//    public void testInvalidAttributeValue()
+//    {
+//        String spec;
+//        
+//        // no name-value-pair
+//        spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none
 , "
+//            + "itemOrUserFirst userFirst:  { userPermissions { { protectedItems{ entry
 , attributeType { cn  , ou }  , attributeValue { must_be_a_name_value_pair } , "
+//            + "rangeOfValues (cn=ErsinEr) }  , grantsAndDenials { grantBrowse } } }, userClasses
{  allUsers  , name { \"ou=people,cn=ersin\" }, "
+//            + "subtree {{ minimum 7, maximum 9, base \"ou=system\" }, { base \"ou=ORGANIZATIONUNIT\","
+//            + " maximum   2, minimum  1 } } }  }  }   ";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//        
+//        // no name-value-pair
+//        spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none
 , "
+//            + "itemOrUserFirst userFirst:  { userPermissions { { protectedItems{ entry
 , attributeType { cn  , ou }  , attributeValue { x=y,m=n,k=l,x } , "
+//            + "rangeOfValues (cn=ErsinEr) }  , grantsAndDenials { grantBrowse } } }, userClasses
{  allUsers  , name { \"ou=people,cn=ersin\" }, "
+//            + "subtree {{ minimum 7, maximum 9, base \"ou=system\" }, { base \"ou=ORGANIZATIONUNIT\","
+//            + " maximum   2, minimum  1 } } }  }  }   ";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//    }
+//    
+//    /**
+//     * Test case for DIRSERVER-891
+//     */
+//    public void testIncomplete()
+//    {
+//        String spec;
+//        
+//        spec = "{ }";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//        
+//        spec = "{ identificationTag \"id2\" }";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//        
+//        spec = "{ identificationTag \"id2\", precedence 14 } ";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//        
+//        spec = "{ identificationTag \"id2\", precedence 14, authenticationLevel none }
";
+//        assertFalse( checker.isValidSyntax( spec ) );
+//    }
+    
 }



Mime
View raw message