2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.changeManagement;
25 import org.junit.Test;
27 public class RequestInfoTest {
29 private RequestInfo createTestSubject() {
30 return new RequestInfo();
34 public void testGetSource() throws Exception {
35 RequestInfo testSubject;
39 testSubject = createTestSubject();
40 result = testSubject.getSource();
44 public void testSetSource() throws Exception {
45 RequestInfo testSubject;
49 testSubject = createTestSubject();
50 testSubject.setSource(source);
54 public void testGetSuppressRollback() throws Exception {
55 RequestInfo testSubject;
59 testSubject = createTestSubject();
60 result = testSubject.getSuppressRollback();
64 public void testSetSuppressRollback() throws Exception {
65 RequestInfo testSubject;
66 Boolean suppressRollback = null;
69 testSubject = createTestSubject();
70 testSubject.setSuppressRollback(suppressRollback);
74 public void testGetRequestorId() throws Exception {
75 RequestInfo testSubject;
79 testSubject = createTestSubject();
80 result = testSubject.getRequestorId();
84 public void testSetRequestorId() throws Exception {
85 RequestInfo testSubject;
86 String requestorId = "";
89 testSubject = createTestSubject();
90 testSubject.setRequestorId(requestorId);
94 public void testGetAdditionalProperties() throws Exception {
95 RequestInfo testSubject;
96 Map<String, Object> result;
99 testSubject = createTestSubject();
100 result = testSubject.getAdditionalProperties();
104 public void testSetAdditionalProperty() throws Exception {
105 RequestInfo testSubject;
110 testSubject = createTestSubject();
111 testSubject.setAdditionalProperty(name, value);