Repository: camel Updated Branches: refs/heads/master 346fdca79 -> b83df498e
Fixed test Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b83df498 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b83df498 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b83df498 Branch: refs/heads/master Commit: b83df498e504938756b463071830f80be55a448e Parents: 346fdca Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Mar 17 07:19:50 2016 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Mar 17 07:19:50 2016 +0100 ---------------------------------------------------------------------- .../camel/component/gson/TestPojoExclusion.java | 30 +++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/b83df498/components/camel-gson/src/test/java/org/apache/camel/component/gson/TestPojoExclusion.java ---------------------------------------------------------------------- diff --git a/components/camel-gson/src/test/java/org/apache/camel/component/gson/TestPojoExclusion.java b/components/camel-gson/src/test/java/org/apache/camel/component/gson/TestPojoExclusion.java index 3ca744b..cdf20fc 100644 --- a/components/camel-gson/src/test/java/org/apache/camel/component/gson/TestPojoExclusion.java +++ b/components/camel-gson/src/test/java/org/apache/camel/component/gson/TestPojoExclusion.java @@ -29,7 +29,6 @@ public class TestPojoExclusion { @ExcludeWeight private int weight = 70; - public int getAge() { return age; } @@ -53,4 +52,33 @@ public class TestPojoExclusion { public void setWeight(int weight) { this.weight = weight; } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + + TestPojoExclusion that = (TestPojoExclusion) o; + + if (age != that.age) { + return false; + } + if (height != that.height) { + return false; + } + return weight == that.weight; + + } + + @Override + public int hashCode() { + int result = age; + result = 31 * result + height; + result = 31 * result + weight; + return result; + } }