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 org.junit.Assert;
24 import org.junit.Before;
25 import org.junit.Test;
26 import org.onap.aai.AAISetup;
28 public class TransactionLogEntryTest extends AAISetup {
29 private TransactionLogEntry transactionLogEntry;
33 transactionLogEntry = new TransactionLogEntry();
37 public void testGetterSetterTransactionLogEntryId() {
38 String testTransactionLogEntryId = "testTransactionLogEntryId";
39 transactionLogEntry.setTransactionLogEntryId(testTransactionLogEntryId);
40 Assert.assertEquals(testTransactionLogEntryId, transactionLogEntry.getTransactionLogEntryId());
44 public void testGetterSetterStatus() {
45 String testStatus = "testStatus";
46 transactionLogEntry.setStatus(testStatus);
47 Assert.assertEquals(testStatus, transactionLogEntry.getStatus());
51 public void testGetterSetterRqstDate() {
52 String testRqstDate = "testRqstDate";
53 transactionLogEntry.setRqstDate(testRqstDate);
54 Assert.assertEquals(testRqstDate, transactionLogEntry.getRqstDate());
58 public void testGetterSetterRespDate() {
59 String testRespDate = "testRespDate";
60 transactionLogEntry.setRespDate(testRespDate);
61 Assert.assertEquals(testRespDate, transactionLogEntry.getRespDate());
65 public void testGetterSetterSourceId() {
66 String testSourceId = "testSourceId";
67 transactionLogEntry.setSourceId(testSourceId);
68 Assert.assertEquals(testSourceId, transactionLogEntry.getSourceId());
72 public void testGetterSetterResourceId() {
73 String testResourceId = "testResourceId";
74 transactionLogEntry.setResourceId(testResourceId);
75 Assert.assertEquals(testResourceId, transactionLogEntry.getResourceId());
79 public void testGetterSetterResourceType() {
80 String testResourceType = "testResourceType";
81 transactionLogEntry.setResourceType(testResourceType);
82 Assert.assertEquals(testResourceType, transactionLogEntry.getResourceType());
86 public void testGetterSetterRqstBuf() {
87 String testRqstBuf = "testRqstBuf";
88 transactionLogEntry.setRqstBuf(testRqstBuf);
89 Assert.assertEquals(testRqstBuf, transactionLogEntry.getRqstBuf());
93 public void testGetterSetterRespBuf() {
94 String testRespBuf = "testRespBuf";
95 transactionLogEntry.setrespBuf(testRespBuf);
96 Assert.assertEquals(testRespBuf, transactionLogEntry.getrespBuf());
100 public void testGetterSetterNotificationPayload() {
101 String testNotificationPayload = "testNotificationPayload";
102 transactionLogEntry.setNotificationPayload(testNotificationPayload);
103 Assert.assertEquals(testNotificationPayload, transactionLogEntry.getNotificationPayload());
107 public void testGetterSetterNotificationId() {
108 String testNotificationId = "testNotificationId";
109 transactionLogEntry.setNotificationId(testNotificationId);
110 Assert.assertEquals(testNotificationId, transactionLogEntry.getNotificationId());
114 public void testGetterSetterNotificationStatus() {
115 String testNotificationStatus = "testNotificationStatus";
116 transactionLogEntry.setNotificationStatus(testNotificationStatus);
117 Assert.assertEquals(testNotificationStatus, transactionLogEntry.getNotificationStatus());
121 public void testGetterSetterNotificationTopic() {
122 String testNotificationTopic = "testNotificationTopic";
123 transactionLogEntry.setNotificationTopic(testNotificationTopic);
124 Assert.assertEquals(testNotificationTopic, transactionLogEntry.getNotificationTopic());
128 public void testGetterSetterNotificationEntityLink() {
129 String testNotificationEntityLink = "testNotificationEntityLink";
130 transactionLogEntry.setNotificationEntityLink(testNotificationEntityLink);
131 Assert.assertEquals(testNotificationEntityLink, transactionLogEntry.getNotificationEntityLink());
135 public void testGetterSetterNotificationAction() {
136 String testNotificationAction = "testNotificationAction";
137 transactionLogEntry.setNotificationAction(testNotificationAction);
138 Assert.assertEquals(testNotificationAction, transactionLogEntry.getNotificationAction());