From dc3aa5b894af22c2986d0b8bb9024b778bb8fccf Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 24 Aug 2009 08:55:35 +0000
Subject: [PATCH] Improve unit tests traces to help debugging

---
 opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java
index 20c01a3..5cab2f2 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java
@@ -77,6 +77,7 @@
 import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
 import static org.opends.server.loggers.debug.DebugLogger.getTracer;
 import static org.opends.messages.ReplicationMessages.*;
+import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString;
 
 /**
  * Various tests around fractional replication
@@ -977,7 +978,9 @@
     catch(Exception e)
     {
       fail("checkEntryFilteredAfterAdd error: "  +
-        e.getClass().getName() + " :" + e.getMessage());
+        e.getClass().getName() + " :" + e.getMessage() +
+        " " + stackTraceToSingleLineString(e)
+        );
     }
   }
 

--
Gitblit v1.10.0