[jboss-cvs] JBoss Messaging SVN: r2812 - trunk/tests/src/org/jboss/test/messaging/jms/message.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jun 28 04:31:32 EDT 2007
Author: sergeypk
Date: 2007-06-28 04:31:32 -0400 (Thu, 28 Jun 2007)
New Revision: 2812
Modified:
trunk/tests/src/org/jboss/test/messaging/jms/message/MessageTest.java
Log:
Fix test that failed when run as remote.
Modified: trunk/tests/src/org/jboss/test/messaging/jms/message/MessageTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/jms/message/MessageTest.java 2007-06-28 00:11:39 UTC (rev 2811)
+++ trunk/tests/src/org/jboss/test/messaging/jms/message/MessageTest.java 2007-06-28 08:31:32 UTC (rev 2812)
@@ -1288,6 +1288,16 @@
private static class ForeignDestination implements Destination, Serializable
{
+ // A ForeignDestination equals any other ForeignDestination, for simplicity
+ public boolean equals(Object obj)
+ {
+ return obj instanceof ForeignDestination;
+ }
+
+ public int hashCode()
+ {
+ return 157;
+ }
}
}
More information about the jboss-cvs-commits
mailing list