This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.19.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.19.x by this push:
new 6b08c62cbc Add in missing equals() in Stomp test class (#1888)
6b08c62cbc is described below
commit 6b08c62cbca7f7fa3edcc79048f81e0e003d721f
Author: Christopher L. Shannon <[email protected]>
AuthorDate: Wed Apr 8 09:41:36 2026 -0400
Add in missing equals() in Stomp test class (#1888)
SamplePojo test object in StompTest was missing the equals() method
which was causing test failures. This backports from main.
---
.../java/org/apache/activemq/transport/stomp/SamplePojo.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/SamplePojo.java
b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/SamplePojo.java
index 9ed4ef4fd9..76f1d7992c 100644
---
a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/SamplePojo.java
+++
b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/SamplePojo.java
@@ -52,4 +52,15 @@ public class SamplePojo implements Serializable {
public void setName(String name) {
this.name = name;
}
+ quals
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof SamplePojo) {
+ SamplePojo other = (SamplePojo) obj;
+ return name.equals(other.name) && city.equals(other.city);
+ }
+ return false;
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact