You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2020/04/15 03:02:36 UTC
[cxf] branch 3.2.x-fixes updated: CXF-8078: Support RxJava 3.0.
Fixing test cases
This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.2.x-fixes by this push:
new 8088827 CXF-8078: Support RxJava 3.0. Fixing test cases
8088827 is described below
commit 8088827bcb6eb722fccf3610721bc185c50fa741
Author: reta <dr...@gmail.com>
AuthorDate: Tue Apr 14 22:47:24 2020 -0400
CXF-8078: Support RxJava 3.0. Fixing test cases
---
.../cxf/systest/jaxrs/reactive/HelloWorldBean.java | 37 ++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/reactive/HelloWorldBean.java b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/reactive/HelloWorldBean.java
index 799403c..202e73b 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/reactive/HelloWorldBean.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/reactive/HelloWorldBean.java
@@ -40,4 +40,41 @@ public class HelloWorldBean {
public void setAudience(String audience) {
this.audience = audience;
}
+
+ @Override
+ public int hashCode() {
+ int result = 31 + ((audience == null) ? 0 : audience.hashCode());
+ result = 31 * result + ((greeting == null) ? 0 : greeting.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+
+ if (obj == null) {
+ return false;
+ }
+
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+
+ final HelloWorldBean other = (HelloWorldBean) obj;
+ if (audience == null && other.audience != null) {
+ return false;
+ } else if (!audience.equals(other.audience)) {
+ return false;
+ }
+
+ if (greeting == null && other.greeting != null) {
+ return false;
+ } else if (!greeting.equals(other.greeting)) {
+ return false;
+ }
+
+ return true;
+ }
}