diff options
author | valerijf <valerijf@yahoo-inc.com> | 2016-08-25 13:53:21 +0200 |
---|---|---|
committer | valerijf <valerijf@yahoo-inc.com> | 2016-08-25 13:53:21 +0200 |
commit | 2f42484b5e3f6150de07a07632dc2b8915614b00 (patch) | |
tree | 6e5f1b54c832ece0fd16319c00f8b2ba19a2cdd6 /orchestrator-restapi/src | |
parent | 7b21483ae2883005c6d4434fc8cb1dda219878ec (diff) |
Added OrchestratorImpl tests
Diffstat (limited to 'orchestrator-restapi/src')
-rw-r--r-- | orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java index 8311967e1bb..739799fc37a 100644 --- a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java +++ b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/BatchHostSuspendRequest.java @@ -38,6 +38,26 @@ public class BatchHostSuspendRequest { } @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + BatchHostSuspendRequest that = (BatchHostSuspendRequest) o; + + if (parentHostname != null ? !parentHostname.equals(that.parentHostname) : that.parentHostname != null) + return false; + return hostnames != null ? hostnames.equals(that.hostnames) : that.hostnames == null; + + } + + @Override + public int hashCode() { + int result = parentHostname != null ? parentHostname.hashCode() : 0; + result = 31 * result + (hostnames != null ? hostnames.hashCode() : 0); + return result; + } + + @Override public String toString() { return "BatchHostSuspendRequest{" + "parentHostname=" + parentHostname + |