Aharoni, Pavel (pa0916) | ca3cb01 | 2018-10-22 15:29:57 +0300 | [diff] [blame] | 1 | /*-
|
| 2 | * ============LICENSE_START=======================================================
|
| 3 | * OSAM
|
| 4 | * ================================================================================
|
| 5 | * Copyright (C) 2018 AT&T
|
| 6 | * ================================================================================
|
| 7 | * Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 | * you may not use this file except in compliance with the License.
|
| 9 | * You may obtain a copy of the License at
|
| 10 | *
|
| 11 | * http://www.apache.org/licenses/LICENSE-2.0
|
| 12 | *
|
| 13 | * Unless required by applicable law or agreed to in writing, software
|
| 14 | * distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 | * See the License for the specific language governing permissions and
|
| 17 | * limitations under the License.
|
| 18 | * ============LICENSE_END=========================================================
|
| 19 | */
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 | package org.onap.osam.mso.rest;
|
| 24 |
|
| 25 | import org.junit.Test;
|
| 26 | import org.onap.osam.domain.mso.InstanceIds;
|
| 27 | import org.onap.osam.domain.mso.RequestStatus;
|
| 28 |
|
| 29 | public class RequestTest {
|
| 30 |
|
| 31 | private Request createTestSubject() {
|
| 32 | return new Request();
|
| 33 | }
|
| 34 |
|
| 35 | @Test
|
| 36 | public void testGetInstanceIds() throws Exception {
|
| 37 | Request testSubject;
|
| 38 | InstanceIds result;
|
| 39 |
|
| 40 | // default test
|
| 41 | testSubject = createTestSubject();
|
| 42 | result = testSubject.getInstanceIds();
|
| 43 | }
|
| 44 |
|
| 45 | @Test
|
| 46 | public void testSetInstanceIds() throws Exception {
|
| 47 | Request testSubject;
|
| 48 | InstanceIds instanceIds = null;
|
| 49 |
|
| 50 | // default test
|
| 51 | testSubject = createTestSubject();
|
| 52 | testSubject.setInstanceIds(instanceIds);
|
| 53 | }
|
| 54 |
|
| 55 | @Test
|
| 56 | public void testGetRequestDetails() throws Exception {
|
| 57 | Request testSubject;
|
| 58 | RequestDetails result;
|
| 59 |
|
| 60 | // default test
|
| 61 | testSubject = createTestSubject();
|
| 62 | result = testSubject.getRequestDetails();
|
| 63 | }
|
| 64 |
|
| 65 | @Test
|
| 66 | public void testSetRequestDetails() throws Exception {
|
| 67 | Request testSubject;
|
| 68 | RequestDetails requestDetails = null;
|
| 69 |
|
| 70 | // default test
|
| 71 | testSubject = createTestSubject();
|
| 72 | testSubject.setRequestDetails(requestDetails);
|
| 73 | }
|
| 74 |
|
| 75 | @Test
|
| 76 | public void testGetRequestStatus() throws Exception {
|
| 77 | Request testSubject;
|
| 78 | RequestStatus result;
|
| 79 |
|
| 80 | // default test
|
| 81 | testSubject = createTestSubject();
|
| 82 | result = testSubject.getRequestStatus();
|
| 83 | }
|
| 84 |
|
| 85 | @Test
|
| 86 | public void testSetRequestStatus() throws Exception {
|
| 87 | Request testSubject;
|
| 88 | RequestStatus requestStatus = null;
|
| 89 |
|
| 90 | // default test
|
| 91 | testSubject = createTestSubject();
|
| 92 | testSubject.setRequestStatus(requestStatus);
|
| 93 | }
|
| 94 |
|
| 95 | @Test
|
| 96 | public void testToString() throws Exception {
|
| 97 | Request testSubject;
|
| 98 | String result;
|
| 99 |
|
| 100 | // default test
|
| 101 | testSubject = createTestSubject();
|
| 102 | result = testSubject.toString();
|
| 103 | }
|
| 104 |
|
| 105 | @Test
|
| 106 | public void testEquals() throws Exception {
|
| 107 | Request testSubject;
|
| 108 | Object other = null;
|
| 109 | boolean result;
|
| 110 |
|
| 111 | // default test
|
| 112 | testSubject = createTestSubject();
|
| 113 | result = testSubject.equals(other);
|
| 114 | }
|
| 115 |
|
| 116 | @Test
|
| 117 | public void testHashCode() throws Exception {
|
| 118 | Request testSubject;
|
| 119 | int result;
|
| 120 |
|
| 121 | // default test
|
| 122 | testSubject = createTestSubject();
|
| 123 | result = testSubject.hashCode();
|
| 124 | }
|
| 125 | }
|