directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r660385 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
Date Tue, 27 May 2008 05:24:48 GMT
Author: akarasulu
Date: Mon May 26 22:24:44 2008
New Revision: 660385

URL: http://svn.apache.org/viewvc?rev=660385&view=rev
Log:
did not have any tests to run which were commented out - uncommented what runs - need to investigate
who and why other failing tests were uncommented

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java?rev=660385&r1=660384&r2=660385&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
Mon May 26 22:24:44 2008
@@ -118,7 +118,7 @@
 
     /**
      * Just a little test to check wether opening the connection succeeds.
-     *
+     */
     @Test public void testSetUpTearDown()
     {
         assertNotNull( ctx );
@@ -129,7 +129,7 @@
      * Modify Rdn of an entry, delete its old rdn value.
      * 
      * @throws NamingException
-     *
+     */
     @Test public void testModifyRdnAndDeleteOld() throws NamingException
     {
         // Create a person, cn value is rdn
@@ -176,7 +176,7 @@
      * The JNDI property is set with 'False'
      * 
      * @throws NamingException
-     *
+     */
     @Test public void testModifyRdnAndDontDeleteOldFalse() throws NamingException
     {
         // Create a person, cn value is rdn
@@ -221,7 +221,7 @@
      * Modify Rdn of an entry, keep its old rdn value.
      * 
      * @throws NamingException
-     *
+     */
     @Test public void testModifyRdnAndKeepOld() throws NamingException
     {
         // Create a person, cn value is rdn
@@ -268,7 +268,7 @@
      * cn has another value as well.
      * 
      * @throws NamingException
-     *
+     */
     @Test public void testModifyRdnAndDeleteOldVariant() throws NamingException
     {
         // Create a person, cn value is rdn
@@ -322,7 +322,7 @@
      * Modify DN of an entry, changing RDN from cn to sn.
      * 
      * @throws NamingException
-     *
+     */
     @Test public void testModifyRdnDifferentAttribute() throws NamingException
     {
 
@@ -375,7 +375,9 @@
      * @throws NamingException
      */
     /*
-    @Test public void testModifyRdnAndDeleteOldWithChild() throws NamingException
+    @Test 
+    @Ignore( "Was commented out before for some failure to investigate" )
+    public void testModifyRdnAndDeleteOldWithChild() throws NamingException
     {
         // Create an organizational unit, ou value is rdn
         String oldOu = "Writers";
@@ -412,7 +414,7 @@
         assertNotNull( org );
   
         // Check values of ou
-        Attribute ou = org.getObject( "" ).get( "ou" );
+        Attribute ou = org.getAttributes( "" ).get( "ou" );
         assertTrue( ou.contains( newOu ) );
         assertTrue( !ou.contains( oldOu ) ); // old value is gone
         assertEquals( 1, ou.size() );
@@ -442,9 +444,12 @@
      * Ensure that the attribute itself contains the unencoded value.
      *
      * @throws Exception
-     *
+     */
+    
     /*
-    @Test public void testModifyRdnWithEncodedNewRdn() throws Exception
+    @Test    
+    @Ignore( "Was commented out before for some failure to investigate" )
+    public void testModifyRdnWithEncodedNewRdn() throws Exception
     {
         // Create a person, cn value is rdn
         String cnVal = "Tori Amos";
@@ -476,7 +481,7 @@
         assertNotNull( newCtx );
 
         // Check that cn contains the unecnoded value
-        Attribute cn = newCtx.getObject( "" ).get( "cn" );
+        Attribute cn = newCtx.getAttributes( "" ).get( "cn" );
         assertEquals( "Number of cn occurences", 1, cn.size() );
         assertTrue( cn.contains( newCnVal ) );
 



Mime
View raw message