directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: print out the operation counts
Date Thu, 27 Jul 2017 22:33:00 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master c39339401 -> da4d18f1d


print out the operation counts


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/da4d18f1
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/da4d18f1
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/da4d18f1

Branch: refs/heads/master
Commit: da4d18f1d24bb930e7ac5ae025ce7d2b85162514
Parents: c393394
Author: Shawn McKinney <smckinney@apache.org>
Authored: Thu Jul 27 16:59:22 2017 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Thu Jul 27 16:59:22 2017 -0500

----------------------------------------------------------------------
 .../fortress/core/impl/FortressJUnitTest.java      | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/da4d18f1/src/test/java/org/apache/directory/fortress/core/impl/FortressJUnitTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/directory/fortress/core/impl/FortressJUnitTest.java
b/src/test/java/org/apache/directory/fortress/core/impl/FortressJUnitTest.java
index 14fd18e..35e58e4 100755
--- a/src/test/java/org/apache/directory/fortress/core/impl/FortressJUnitTest.java
+++ b/src/test/java/org/apache/directory/fortress/core/impl/FortressJUnitTest.java
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import org.apache.directory.fortress.core.ldap.LdapCounters;
+import org.apache.directory.fortress.core.ldap.LdapDataProvider;
 import org.apache.directory.fortress.core.util.Config;
 
 import junit.framework.Test;
@@ -357,17 +359,14 @@ public class FortressJUnitTest extends TestCase
 
     public void testDisplayCounters()
     {
-        // TODO: fix me (removed for unboundid)
-/*
-        LdapCounters counters = UnboundIdDataProvider.getLdapCounters();
-        System.out.println( "NUMBER OF READS: " + counters.getRead() );
-        System.out.println( "NUMBER OF SEARCHES: " + counters.getSearch() );
-        System.out.println( "NUMBER OF COMPARES: " + counters.getCompare() );
-        System.out.println( "NUMBER OF BINDS: " + counters.getBind() );
+        LdapCounters counters = LdapDataProvider.getLdapCounters();
         System.out.println( "NUMBER OF ADDS: " + counters.getAdd() );
-        System.out.println( "NUMBER OF MODS: " + counters.getMod() );
+        System.out.println( "NUMBER OF BINDS: " + counters.getBind() );
         System.out.println( "NUMBER OF DELETES: " + counters.getDelete() );
-*/
+        System.out.println( "NUMBER OF MODS: " + counters.getMod() );
+        System.out.println( "NUMBER OF READS: " + counters.getRead() );
+        System.out.println( "NUMBER OF SEARCHES: " + counters.getSearch() );
+        //System.out.println( "NUMBER OF COMPARES: " + counters.getCompare() );
     }
 
     /**


Mime
View raw message