aboutsummaryrefslogtreecommitdiffstats
path: root/sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-10-02 15:48:23 -0400
committerDan Timoney <dtimoney@att.com>2017-10-02 15:48:23 -0400
commit2a7f6affcecfcd2a7f9db3731884699f1bacff1c (patch)
tree01deb47b62eb1144f6993cddf258bcb0baa0143d /sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java
parentbbf0e9ff14d10f46235d4282dce5b9c560f26321 (diff)
Add test cases for MdsalHelper
Add test cases for MdsalHelper methods toBuilder() and toProperties(). This requires a Yang model, so added a copy of sliapi/model to sli, since could not use sliapi directly otherwise would create circular dependency (since sliapi depends on sli). Change-Id: I4824afe250f93428c73dbeec9f4a4c36ee4f76e6 Issue-ID: CCSDK-106 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java')
-rw-r--r--sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java75
1 files changed, 75 insertions, 0 deletions
diff --git a/sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java b/sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java
new file mode 100644
index 00000000..d867ca23
--- /dev/null
+++ b/sli/model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/org/onap/ccsdk/sli/core/sliapi/rev161110/test/results/TestResultKey.java
@@ -0,0 +1,75 @@
+package org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results;
+import org.opendaylight.yangtools.yang.binding.Identifier;
+import java.util.Objects;
+
+public class TestResultKey
+ implements Identifier<TestResult> {
+ private static final long serialVersionUID = 3857649555637491806L;
+ private final java.lang.String _testIdentifier;
+
+
+ public TestResultKey(java.lang.String _testIdentifier) {
+
+
+ this._testIdentifier = _testIdentifier;
+ }
+
+ /**
+ * Creates a copy from Source Object.
+ *
+ * @param source Source object
+ */
+ public TestResultKey(TestResultKey source) {
+ this._testIdentifier = source._testIdentifier;
+ }
+
+
+ public java.lang.String getTestIdentifier() {
+ return _testIdentifier;
+ }
+
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + Objects.hashCode(_testIdentifier);
+ return result;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ TestResultKey other = (TestResultKey) obj;
+ if (!Objects.equals(_testIdentifier, other._testIdentifier)) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder builder = new java.lang.StringBuilder(org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results.TestResultKey.class.getSimpleName()).append(" [");
+ boolean first = true;
+
+ if (_testIdentifier != null) {
+ if (first) {
+ first = false;
+ } else {
+ builder.append(", ");
+ }
+ builder.append("_testIdentifier=");
+ builder.append(_testIdentifier);
+ }
+ return builder.append(']').toString();
+ }
+}
+