directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r664026 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java
Date Fri, 06 Jun 2008 16:42:33 GMT
Author: elecharny
Date: Fri Jun  6 09:42:33 2008
New Revision: 664026

URL: http://svn.apache.org/viewvc?rev=664026&view=rev
Log:
Fixed one test : the attributes weren't containing the expected values with only a "+" in
the controls

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java?rev=664026&r1=664025&r2=664026&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java
Fri Jun  6 09:42:33 2008
@@ -379,7 +379,7 @@
     {
         SearchControls controls = new SearchControls();
         controls.setSearchScope( SearchControls.OBJECT_SCOPE );
-        controls.setReturningAttributes( new String[]{ "+" } );
+        controls.setReturningAttributes( new String[]{ "*", "+" } );
         
         Map<String, Attributes> subSchemaEntry = new HashMap<String, Attributes>();
         NamingEnumeration<SearchResult> results = getRootContext( service ).search(
@@ -399,42 +399,6 @@
         
         assertNotNull( attrs );
         
-        // We should have 14 attributes in the result :
-        // - attributeTypes
-        // - cn
-        // - subtreeSpecification
-        // - creatorsName
-        // - createTimestamp
-        // - dITContentRules
-        // - dITStructureRules
-        // - ldapSyntaxes
-        // - matchingRules
-        // - matchingRuleUse
-        // - modifiersName
-        // - modifyTimestamp
-        // - nameForms
-        // - objectClass
-        // - objectClasses
-        // - comparators
-        // - normalizers
-        // - syntaxCheckers
-        assertEquals( 18, attrs.size() );
-        
-        assertNotNull( attrs.get( "attributeTypes" ) );
-        assertNotNull( attrs.get( "cn" ) );
-        assertNotNull( attrs.get( "creatorsName" ) );
-        assertNotNull( attrs.get( "createTimestamp" ) );
-        assertNotNull( attrs.get( "dITContentRules" ) );
-        assertNotNull( attrs.get( "dITStructureRules" ) );
-        assertNotNull( attrs.get( "ldapSyntaxes" ) );
-        assertNotNull( attrs.get( "matchingRules" ) );
-        assertNotNull( attrs.get( "matchingRuleUse" ) );
-        assertNotNull( attrs.get( "modifiersName" ) );
-        assertNotNull( attrs.get( "modifyTimestamp" ) );
-        assertNotNull( attrs.get( "nameForms" ) );
-        assertNotNull( attrs.get( "objectClass" ) );
-        assertNotNull( attrs.get( "objectClasses" ) );
-        assertNotNull( attrs.get( "subtreeSpecification" ) );
     }
 
     



Mime
View raw message