directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r966336 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceIT.java
Date Wed, 21 Jul 2010 18:02:56 GMT
Author: elecharny
Date: Wed Jul 21 18:02:56 2010
New Revision: 966336

URL: http://svn.apache.org/viewvc?rev=966336&view=rev
Log:
Removed commented code

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

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceIT.java?rev=966336&r1=966335&r2=966336&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceIT.java
Wed Jul 21 18:02:56 2010
@@ -113,15 +113,6 @@ public class OperationalAttributeService
         Object value = ou.getString();
         assertTrue( value instanceof String );
 
-        // test with the property now making ou into a binary value
-        /*
-        sysRoot.addToEnvironment( BINARY_KEY, "ou" );
-        ctx = ( DirContext ) sysRoot.lookup( "ou=test" );
-        ou = ctx.getAttributes( "" ).get( "ou" );
-        value = ou.get();
-        assertEquals( "test", value );
-         */
-
         // try jpegPhoto which should be binary automatically - use ou as control
         byte[] keyValue = new byte[]
                                    { (byte)0xFF, (byte)0xD8, (byte)0xFF, (byte)0xE0, 0x01,
0x02, 'J', 'F', 'I', 'F', 0x00, 0x45, 0x23, 0x7d, 0x7f };
@@ -137,19 +128,6 @@ public class OperationalAttributeService
         value = jpegPhoto.getBytes();
         assertTrue( value instanceof byte[] );
         assertEquals( "0xFF 0xD8 0xFF 0xE0 0x01 0x02 0x4A 0x46 0x49 0x46 0x00 0x45 0x23 0x7D
0x7F ", StringTools.dumpBytes( ( byte[] ) value ) );
-
-        // try jpegPhoto which should be binary automatically but use String to
-        // create so we should still get back a byte[] - use ou as control
-        /*attributes.remove( "jpegPhoto" );
-        attributes.put( "jpegPhoto", "testing a string" );
-        sysRoot.createSubcontext( "ou=yetanothertest", attributes );
-        ctx = ( DirContext ) sysRoot.lookup( "ou=yetanothertest" );
-        ou = ctx.getObject( "" ).get( "ou" );
-        value = ou.get();
-        assertEquals( "yetanothertest", value );
-        jpegPhoto = ctx.getObject( "" ).get( "jpegPhoto" );
-        value = jpegPhoto.get();
-        assertTrue( value instanceof byte[] );*/
     }
 
 
@@ -180,9 +158,6 @@ public class OperationalAttributeService
         assertNull( entry.get( "createTimestamp" ) );
         assertNull( entry.get( "creatorsName" ) );
 
-        //sysRoot.addToEnvironment( JndiPropertyConstants.JNDI_LDAP_DAP_DEREF_ALIASES,
-        //    AliasDerefMode.NEVER_DEREF_ALIASES.getJndiValue() );
-
         Cursor<SearchResponse> responses = connection.search( "ou=testing00,ou=system",
"(ou=testing00)", SearchScope.SUBTREE, "ou", "createTimestamp", "creatorsName" );
         responses.next();
         SearchResultEntry result = (SearchResultEntry)responses.get();



Mime
View raw message