directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r686648 - in /directory: apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/ apacheds/branches/bigbang/se...
Date Sun, 17 Aug 2008 21:58:53 GMT
Author: elecharny
Date: Sun Aug 17 14:58:52 2008
New Revision: 686648

URL: http://svn.apache.org/viewvc?rev=686648&view=rev
Log:
o Removed dead or commented code
o Remove some System.out.println calls

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java
    directory/apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
    directory/apacheds/branches/bigbang/server-unit/src/main/java/org/apache/directory/server/unit/AbstractServerTest.java
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestPerfTest.java
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java?rev=686648&r1=686647&r2=686648&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogInterceptor.java
Sun Aug 17 14:58:52 2008
@@ -265,8 +265,6 @@
             mods, 
             clientEntry );
         
-        //System.out.println( "forward : " + forward );
-        //System.out.println( "reverse : " + reverse );
         opContext.setChangeLogEvent( changeLog.log( getPrincipal(), forward, reverse ) );
     }
 

Modified: directory/apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java?rev=686648&r1=686647&r2=686648&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
(original)
+++ directory/apacheds/branches/bigbang/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
Sun Aug 17 14:58:52 2008
@@ -217,7 +217,6 @@
 
              NamingEnumeration<? extends Attribute> answer = attrs.getAll();
              Attribute result = answer.next();
-             System.out.println( result );
              assertEquals( 6, result.size() );
              assertTrue( result.contains( SupportedSaslMechanisms.GSSAPI ) );
              assertTrue( result.contains( SupportedSaslMechanisms.DIGEST_MD5 ) );

Modified: directory/apacheds/branches/bigbang/server-unit/src/main/java/org/apache/directory/server/unit/AbstractServerTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/main/java/org/apache/directory/server/unit/AbstractServerTest.java?rev=686648&r1=686647&r2=686648&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/main/java/org/apache/directory/server/unit/AbstractServerTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/main/java/org/apache/directory/server/unit/AbstractServerTest.java
Sun Aug 17 14:58:52 2008
@@ -396,12 +396,6 @@
         }
 
         sysRoot = null;
-//        apacheDS = new ApacheDS();
-        
-        if ( start >= nbTests )
-        {
-            System.out.println( "Delta = " + ( System.currentTimeMillis() - t0 ) );
-        }
     }
 
     

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestPerfTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestPerfTest.java?rev=686648&r1=686647&r2=686648&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestPerfTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/codec/bind/BindRequestPerfTest.java
Sun Aug 17 14:58:52 2008
@@ -83,7 +83,7 @@
         // Decode the BindRequest PDU
         try
         {
-            int nbLoops = 1000;
+            int nbLoops = 1;
             long t0 = System.currentTimeMillis();
             
             for ( int i = 0; i < nbLoops; i++ )
@@ -94,7 +94,7 @@
             }
             
             long t1 = System.currentTimeMillis();
-            System.out.println( "testDecodeBindRequestSimpleNoControlsPerf, " + nbLoops +
" loops, Delta = " + ( t1 - t0 ) );
+            //System.out.println( "testDecodeBindRequestSimpleNoControlsPerf, " + nbLoops
+ " loops, Delta = " + ( t1 - t0 ) );
             
             ldapDecoder.decode( stream, ldapMessageContainer );
         }
@@ -150,7 +150,7 @@
     public void testEncodeBindRequestPerf() throws Exception
     {
         LdapDN name = new LdapDN( "uid=akarasulu,dc=example,dc=com" );
-        int nbLoops = 10000;
+        int nbLoops = 1;
         long t0 = System.currentTimeMillis();
         
         for ( int i = 0; i< nbLoops; i++)
@@ -185,6 +185,6 @@
         }
 
         long t1 = System.currentTimeMillis();
-        System.out.println( "BindRequest testEncodeBindRequestPerf, " + nbLoops + " loops,
Delta = " + (t1 - t0));
+        //System.out.println( "BindRequest testEncodeBindRequestPerf, " + nbLoops + " loops,
Delta = " + (t1 - t0));
     }
 }

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java?rev=686648&r1=686647&r2=686648&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/util/AttributeSerializerUtilsTest.java
Sun Aug 17 14:58:52 2008
@@ -224,7 +224,7 @@
     
     public void doSerializerSpeedTest() throws IOException
     {
-        final int limit = 1000000;
+        final int limit = 1;
         long start = System.currentTimeMillis();
         for ( int ii = 0; ii < limit; ii++ )
         {
@@ -237,7 +237,7 @@
             AttributeSerializerUtils.deserialize( serialized );
         }
         
-        System.out.println( limit + " attributes with 3 values each were serialized and deserialized
in " 
-            + ( System.currentTimeMillis() - start ) + " (ms)" );
+        //System.out.println( limit + " attributes with 3 values each were serialized and
deserialized in " 
+        //    + ( System.currentTimeMillis() - start ) + " (ms)" );
     }
 }



Mime
View raw message