From commits-return-27388-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Fri Sep 10 09:29:45 2010 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 3727 invoked from network); 10 Sep 2010 09:29:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 09:29:45 -0000 Received: (qmail 99717 invoked by uid 500); 10 Sep 2010 09:29:45 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 99680 invoked by uid 500); 10 Sep 2010 09:29:43 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 99673 invoked by uid 99); 10 Sep 2010 09:29:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:29:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:29:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 082B523889E7; Fri, 10 Sep 2010 09:29:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r995717 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java Date: Fri, 10 Sep 2010 09:29:21 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100910092922.082B523889E7@eris.apache.org> Author: elecharny Date: Fri Sep 10 09:29:21 2010 New Revision: 995717 URL: http://svn.apache.org/viewvc?rev=995717&view=rev Log: Reformatted the server annotations which have been dorked by the formatter Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java?rev=995717&r1=995716&r2=995717&view=diff ============================================================================== --- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java (original) +++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java Fri Sep 10 09:29:21 2010 @@ -86,7 +86,6 @@ import org.apache.directory.shared.ldap. import org.apache.directory.shared.ldap.entry.EntryAttribute; import org.apache.directory.shared.ldap.ldif.LdifUtils; import org.apache.directory.shared.ldap.message.ResultCodeEnum; -import org.apache.directory.shared.ldap.message.SearchResultEntry; import org.apache.directory.shared.ldap.name.DN; import org.apache.directory.shared.ldap.util.StringTools; import org.junit.Test; @@ -103,13 +102,35 @@ import org.slf4j.LoggerFactory; @RunWith(FrameworkRunner.class) @CreateDS(allowAnonAccess = true, name = "AddIT-class", partitions = { - @CreatePartition(name = "example", suffix = "dc=example,dc=com", contextEntry = @ContextEntry(entryLdif = "dn: dc=example,dc=com\n" - + "dc: example\n" + "objectClass: top\n" + "objectClass: domain\n\n"), indexes = - { @CreateIndex(attribute = "objectClass"), @CreateIndex(attribute = "dc"), @CreateIndex(attribute = "ou") }), - - @CreatePartition(name = "directory", suffix = "dc=directory,dc=apache,dc=org", contextEntry = @ContextEntry(entryLdif = "dn: dc=directory,dc=apache,dc=org\n" - + "dc: directory\n" + "objectClass: top\n" + "objectClass: domain\n\n"), indexes = - { @CreateIndex(attribute = "objectClass"), @CreateIndex(attribute = "dc"), @CreateIndex(attribute = "ou") }) }) + @CreatePartition( + name = "example", + suffix = "dc=example,dc=com", + contextEntry = @ContextEntry( + entryLdif = "dn: dc=example,dc=com\n" + + "dc: example\n" + + "objectClass: top\n" + + "objectClass: domain\n\n"), + indexes = + { + @CreateIndex(attribute = "objectClass"), + @CreateIndex(attribute = "dc"), + @CreateIndex(attribute = "ou") + }), + + @CreatePartition( + name = "directory", + suffix = "dc=directory,dc=apache,dc=org", + contextEntry = @ContextEntry( + entryLdif = "dn: dc=directory,dc=apache,dc=org\n" + + "dc: directory\n" + + "objectClass: top\n" + + "objectClass: domain\n\n"), + indexes = + { + @CreateIndex(attribute = "objectClass"), + @CreateIndex(attribute = "dc"), + @CreateIndex(attribute = "ou") + }) }) @CreateLdapServer(transports = { @CreateTransport(protocol = "LDAP") }) @ApplyLdifs( @@ -123,21 +144,29 @@ import org.slf4j.LoggerFactory; "sn: Person", // Entry # 1 - "dn: uid=akarasulu,ou=users,ou=system", "objectClass: uidObject", "objectClass: person", + "dn: uid=akarasulu,ou=users,ou=system", + "objectClass: uidObject", + "objectClass: person", "objectClass: top", "uid: akarasulu", "cn: Alex Karasulu", "sn: karasulu", // Entry # 2 - "dn: ou=Computers,uid=akarasulu,ou=users,ou=system", "objectClass: organizationalUnit", "objectClass: top", + "dn: ou=Computers,uid=akarasulu,ou=users,ou=system", + "objectClass: organizationalUnit", + "objectClass: top", "ou: computers", "description: Computers for Alex", "seeAlso: ou=Machines,uid=akarasulu,ou=users,ou=system", // Entry # 3 - "dn: uid=akarasuluref,ou=users,ou=system", "objectClass: uidObject", "objectClass: referral", - "objectClass: top", "uid: akarasuluref", "ref: ldap://localhost:10389/uid=akarasulu,ou=users,ou=system", + "dn: uid=akarasuluref,ou=users,ou=system", + "objectClass: uidObject", + "objectClass: referral", + "objectClass: top", + "uid: akarasuluref", + "ref: ldap://localhost:10389/uid=akarasulu,ou=users,ou=system", "ref: ldap://foo:10389/uid=akarasulu,ou=users,ou=system", "ref: ldap://bar:10389/uid=akarasulu,ou=users,ou=system" }) public class AddIT extends AbstractLdapTestUnit