From 899debbbcc29f4233efceab492789ceff0097b39 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Sat, 05 Oct 2013 17:11:57 +0000
Subject: [PATCH] ReplicationTestCase.java Fixed problem introduced in tests at r9648.
---
opends/src/server/org/opends/server/replication/protocol/HeartbeatMsg.java | 6 ++++++
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/HeartbeatMsg.java b/opends/src/server/org/opends/server/replication/protocol/HeartbeatMsg.java
index 7ad610f..e80f30e 100644
--- a/opends/src/server/org/opends/server/replication/protocol/HeartbeatMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/HeartbeatMsg.java
@@ -83,4 +83,10 @@
return resultByteArray;
}
+ /** {@inheritDoc} */
+ @Override
+ public String toString()
+ {
+ return getClass().getSimpleName();
+ }
}
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
index 0b37869..9e92221 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
@@ -1001,7 +1001,7 @@
+ ex.getClass().getName() + " : " + ex.getMessage());
}
- if (replMsg.equals(msgType.getClass()))
+ if (replMsg.getClass().equals(msgType))
{
// Ok, got it, let's return the expected message
return (T) replMsg;
--
Gitblit v1.10.0