2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 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.aai.domain.translog;
23 import com.google.common.collect.ArrayListMultimap;
24 import com.google.common.collect.Multimap;
25 import org.junit.Assert;
26 import org.junit.Before;
27 import org.junit.Test;
28 import org.onap.aai.AAISetup;
29 import org.onap.aai.domain.model.AAIResource;
31 import java.util.ArrayList;
32 import java.util.HashMap;
33 import java.util.List;
36 public class TransactionLogEntryTest extends AAISetup {
37 private TransactionLogEntry transactionLogEntry;
41 transactionLogEntry = new TransactionLogEntry();
45 public void testGetterSetterTransactionLogEntryId() {
46 String testTransactionLogEntryId = "testTransactionLogEntryId";
47 transactionLogEntry.setTransactionLogEntryId(testTransactionLogEntryId);
48 Assert.assertEquals(testTransactionLogEntryId, transactionLogEntry.getTransactionLogEntryId());
52 public void testGetterSetterStatus() {
53 String testStatus = "testStatus";
54 transactionLogEntry.setStatus(testStatus);
55 Assert.assertEquals(testStatus, transactionLogEntry.getStatus());
59 public void testGetterSetterRqstDate() {
60 String testRqstDate = "testRqstDate";
61 transactionLogEntry.setRqstDate(testRqstDate);
62 Assert.assertEquals(testRqstDate, transactionLogEntry.getRqstDate());
66 public void testGetterSetterRespDate() {
67 String testRespDate = "testRespDate";
68 transactionLogEntry.setRespDate(testRespDate);
69 Assert.assertEquals(testRespDate, transactionLogEntry.getRespDate());
73 public void testGetterSetterSourceId() {
74 String testSourceId = "testSourceId";
75 transactionLogEntry.setSourceId(testSourceId);
76 Assert.assertEquals(testSourceId, transactionLogEntry.getSourceId());
80 public void testGetterSetterResourceId() {
81 String testResourceId = "testResourceId";
82 transactionLogEntry.setResourceId(testResourceId);
83 Assert.assertEquals(testResourceId, transactionLogEntry.getResourceId());
87 public void testGetterSetterResourceType() {
88 String testResourceType = "testResourceType";
89 transactionLogEntry.setResourceType(testResourceType);
90 Assert.assertEquals(testResourceType, transactionLogEntry.getResourceType());
94 public void testGetterSetterRqstBuf() {
95 String testRqstBuf = "testRqstBuf";
96 transactionLogEntry.setRqstBuf(testRqstBuf);
97 Assert.assertEquals(testRqstBuf, transactionLogEntry.getRqstBuf());
101 public void testGetterSetterRespBuf() {
102 String testRespBuf = "testRespBuf";
103 transactionLogEntry.setrespBuf(testRespBuf);
104 Assert.assertEquals(testRespBuf, transactionLogEntry.getrespBuf());
108 public void testGetterSetterNotificationPayload() {
109 String testNotificationPayload = "testNotificationPayload";
110 transactionLogEntry.setNotificationPayload(testNotificationPayload);
111 Assert.assertEquals(testNotificationPayload, transactionLogEntry.getNotificationPayload());
115 public void testGetterSetterNotificationId() {
116 String testNotificationId = "testNotificationId";
117 transactionLogEntry.setNotificationId(testNotificationId);
118 Assert.assertEquals(testNotificationId, transactionLogEntry.getNotificationId());
122 public void testGetterSetterNotificationStatus() {
123 String testNotificationStatus = "testNotificationStatus";
124 transactionLogEntry.setNotificationStatus(testNotificationStatus);
125 Assert.assertEquals(testNotificationStatus, transactionLogEntry.getNotificationStatus());
129 public void testGetterSetterNotificationTopic() {
130 String testNotificationTopic = "testNotificationTopic";
131 transactionLogEntry.setNotificationTopic(testNotificationTopic);
132 Assert.assertEquals(testNotificationTopic, transactionLogEntry.getNotificationTopic());
136 public void testGetterSetterNotificationEntityLink() {
137 String testNotificationEntityLink = "testNotificationEntityLink";
138 transactionLogEntry.setNotificationEntityLink(testNotificationEntityLink);
139 Assert.assertEquals(testNotificationEntityLink, transactionLogEntry.getNotificationEntityLink());
143 public void testGetterSetterNotificationAction() {
144 String testNotificationAction = "testNotificationAction";
145 transactionLogEntry.setNotificationAction(testNotificationAction);
146 Assert.assertEquals(testNotificationAction, transactionLogEntry.getNotificationAction());