You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/02/22 23:14:41 UTC
svn commit: r1292542 -
/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Author: elecharny
Date: Wed Feb 22 22:14:41 2012
New Revision: 1292542
URL: http://svn.apache.org/viewvc?rev=1292542&view=rev
Log:
Fixed 3 failing tests
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=1292542&r1=1292541&r2=1292542&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 Wed Feb 22 22:14:41 2012
@@ -6,16 +6,16 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
- * under the License.
- *
+ * under the License.
+ *
*/
package org.apache.directory.server.operations.add;
@@ -513,7 +513,7 @@ public class AddIT extends AbstractLdapT
String rdnAlias = "ou=bestFruit";
containerCtx.createSubcontext( rdnAlias, alias );
- // search one level scope for alias
+ // search one level scope for alias
SearchControls controls = new SearchControls();
controls.setDerefLinkFlag( true );
controls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
@@ -806,7 +806,7 @@ public class AddIT extends AbstractLdapT
/**
- * Tests add operation on normal and referral entries without the
+ * Tests add operation on normal and referral entries without the
* ManageDsaIT control. Referrals are sent back to the client with a
* non-success result code.
*/
@@ -844,8 +844,8 @@ public class AddIT extends AbstractLdapT
/**
- * Tests add operation on normal and referral entries without the
- * ManageDsaIT control using JNDI instead of the Netscape API. Referrals
+ * Tests add operation on normal and referral entries without the
+ * ManageDsaIT control using JNDI instead of the Netscape API. Referrals
* are sent back to the client with a non-success result code.
*/
@Test
@@ -974,7 +974,7 @@ public class AddIT extends AbstractLdapT
assertEquals( 2, cn.size() );
String[] expectedCns =
- { "Jackson", "michael" };
+ { "Jackson", "Michael" };
for ( String name : expectedCns )
{
@@ -1069,15 +1069,15 @@ public class AddIT extends AbstractLdapT
assertEquals( 2, cn.size() );
assertTrue( cn.contains( "Jackson" ) );
- assertTrue( cn.contains( "michael" ) );
+ assertTrue( cn.contains( "Michael" ) );
}
/**
* Test that if we inject a PDU above the max allowed size,
- * the connection is closed.
+ * the connection is closed.
*
- * @throws NamingException
+ * @throws NamingException
*/
@Test
public void testAddPDUExceedingMaxSizeJNDI() throws Exception
@@ -1144,9 +1144,9 @@ public class AddIT extends AbstractLdapT
/**
* Test that if we inject a PDU above the max allowed size,
- * the connection is closed.
+ * the connection is closed.
*
- * @throws NamingException
+ * @throws NamingException
*/
@Test
public void testAddPDUExceedingMaxSizeLdapApi() throws Exception
@@ -1225,7 +1225,7 @@ public class AddIT extends AbstractLdapT
binary.put( "userPassword", "test" );
/*
* Note that the Rdn attribute is different to the userPassword specified
- * in the entry. This creates a second cn attribute "userPassword:#414243".
+ * in the entry. This creates a second cn attribute "userPassword:#414243".
* This is a JNDI hack:
* If no other userPassword is available in the entry, JNDI adds the Rdn
* attribute to the entry before sending the request to the server.
@@ -1241,7 +1241,7 @@ public class AddIT extends AbstractLdapT
javax.naming.directory.Attribute cnAttribute = res.next().getAttributes().get( "cn" );
assertEquals( 2, cnAttribute.size() );
assertTrue( cnAttribute.contains( "Tori,Amos" ) );
- assertTrue( cnAttribute.contains( "amos,tori" ) );
+ assertTrue( cnAttribute.contains( "Amos,Tori" ) );
assertFalse( res.hasMore() );
// search for the implicit added userPassword
@@ -1333,7 +1333,7 @@ public class AddIT extends AbstractLdapT
* |--cn=alias <--alias, pointing to the real entry
* </pre>
*
- * @throws NamingException
+ * @throws NamingException
*/
@Test
@CreateDS(
@@ -1378,7 +1378,7 @@ public class AddIT extends AbstractLdapT
/**
* Adding an entry with a non existing attribute type.
*
- * @throws Exception
+ * @throws Exception
*/
@Test
public void testAddEntryNonExistingAT() throws Exception
@@ -1414,7 +1414,7 @@ public class AddIT extends AbstractLdapT
/**
* Adding an entry with a non existing attribute type.
*
- * @throws Exception
+ * @throws Exception
*/
@Test(expected = LdapOperationException.class)
public void testAddEntryNonExistingOC() throws Exception
@@ -1436,7 +1436,7 @@ public class AddIT extends AbstractLdapT
/**
* Adding an entry with a 100K attribute's value.
*
- * @throws Exception
+ * @throws Exception
*/
@Test(expected = LdapException.class)
public void testAddEntry100KData() throws Exception
@@ -1464,7 +1464,7 @@ public class AddIT extends AbstractLdapT
connection.add( personEntry );
- // Check that the entry has been stored
+ // Check that the entry has been stored
Entry entry = connection.lookup( dn, "description", "cn", "sn" );
String description = entry.get( "description" ).getString();