[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/notifications ...
Manik Surtani
msurtani at jboss.com
Wed Aug 16 06:52:51 EDT 2006
User: msurtani
Date: 06/08/16 06:52:51
Modified: tests/functional/org/jboss/cache/notifications
CacheListenerTest.java
Log:
fixed simple notification events
Revision Changes Path
1.2 +27 -0 JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheListenerTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CacheListenerTest.java 15 Aug 2006 21:02:23 -0000 1.1
+++ CacheListenerTest.java 16 Aug 2006 10:52:51 -0000 1.2
@@ -228,6 +228,33 @@
", data=" + data +
'}';
}
+
+ public boolean equals(Object o)
+ {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+
+ final Event event = (Event) o;
+
+ if (local != event.local) return false;
+ if (pre != event.pre) return false;
+ if (data != null ? !data.equals(event.data) : event.data != null) return false;
+ if (fqn != null ? !fqn.equals(event.fqn) : event.fqn != null) return false;
+ if (methodName != event.methodName) return false;
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ int result;
+ result = (methodName != null ? methodName.hashCode() : 0);
+ result = 29 * result + (fqn != null ? fqn.hashCode() : 0);
+ result = 29 * result + (pre ? 1 : 0);
+ result = 29 * result + (local ? 1 : 0);
+ result = 29 * result + (data != null ? data.hashCode() : 0);
+ return result;
+ }
}
public enum ListenerMethod {NODE_CREATED, NODE_REMOVED, NODE_VISITED, NODE_MODIFIED};
More information about the jboss-cvs-commits
mailing list