2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2018 TechMahindra
\r
6 *=================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.onap.dcaegen2.ves.domain.ves7_0;
\r
23 import static org.junit.Assert.assertNotNull;
\r
24 import org.junit.Test;
\r
27 public class IpmiPowerSupplyArrayTest {
\r
29 private IpmiPowerSupplyArray createTestSubject() {
\r
30 return new IpmiPowerSupplyArray();
\r
34 public void testGetPowerSupplyIdentifier() throws Exception {
\r
35 IpmiPowerSupplyArray testSubject;
\r
39 testSubject = createTestSubject();
\r
40 result = testSubject.getPowerSupplyIdentifier();
\r
44 public void testSetPowerSupplyIdentifier() throws Exception {
\r
45 IpmiPowerSupplyArray testSubject;
\r
46 String powerSupplyIdentifier = "";
\r
49 testSubject = createTestSubject();
\r
50 testSubject.setPowerSupplyIdentifier(powerSupplyIdentifier);
\r
54 public void testGetPowerSupplyInputPower() throws Exception {
\r
55 IpmiPowerSupplyArray testSubject;
\r
59 testSubject = createTestSubject();
\r
60 result = testSubject.getPowerSupplyInputPower();
\r
64 public void testSetPowerSupplyInputPower() throws Exception {
\r
65 IpmiPowerSupplyArray testSubject;
\r
66 Double powerSupplyInputPower = null;
\r
69 testSubject = createTestSubject();
\r
70 testSubject.setPowerSupplyInputPower(powerSupplyInputPower);
\r
74 public void testGetPowerSupplyCurrentOutputPercent() throws Exception {
\r
75 IpmiPowerSupplyArray testSubject;
\r
79 testSubject = createTestSubject();
\r
80 result = testSubject.getPowerSupplyCurrentOutputPercent();
\r
84 public void testSetPowerSupplyCurrentOutputPercent() throws Exception {
\r
85 IpmiPowerSupplyArray testSubject;
\r
86 Double powerSupplyCurrentOutputPercent = null;
\r
89 testSubject = createTestSubject();
\r
90 testSubject.setPowerSupplyCurrentOutputPercent(powerSupplyCurrentOutputPercent);
\r
94 public void testGetPowerSupplyTemperature() throws Exception {
\r
95 IpmiPowerSupplyArray testSubject;
\r
99 testSubject = createTestSubject();
\r
100 result = testSubject.getPowerSupplyTemperature();
\r
104 public void testSetPowerSupplyTemperature() throws Exception {
\r
105 IpmiPowerSupplyArray testSubject;
\r
106 Double powerSupplyTemperature = null;
\r
109 testSubject = createTestSubject();
\r
110 testSubject.setPowerSupplyTemperature(powerSupplyTemperature);
\r
114 public void testToString() throws Exception {
\r
115 IpmiPowerSupplyArray testSubject;
\r
119 testSubject = createTestSubject();
\r
120 result = testSubject.toString();
\r
124 public void testHashCode() throws Exception {
\r
125 IpmiPowerSupplyArray testSubject;
\r
129 testSubject = createTestSubject();
\r
130 result = testSubject.hashCode();
\r
134 public void testEquals() throws Exception {
\r
135 IpmiPowerSupplyArray testSubject;
\r
136 IpmiPowerSupplyArray testSubject2;
\r
137 Object other = null;
\r
141 testSubject = createTestSubject();
\r
142 testSubject2 = createTestSubject();
\r
143 result = testSubject.equals(other);
\r
144 result = testSubject.equals(testSubject);
\r
145 result = testSubject.equals(testSubject2);
\r
146 assertNotNull(result);
\r