Merge "[AAI] Fix doc config files"
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / domain / translog / TransactionLogEntryTest.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
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 package org.onap.aai.domain.translog;
22
23 import org.junit.Assert;
24 import org.junit.Before;
25 import org.junit.Test;
26 import org.onap.aai.AAISetup;
27
28 public class TransactionLogEntryTest extends AAISetup {
29     private TransactionLogEntry transactionLogEntry;
30
31     @Before
32     public void setUp() {
33         transactionLogEntry = new TransactionLogEntry();
34     }
35
36     @Test
37     public void testGetterSetterTransactionLogEntryId() {
38         String testTransactionLogEntryId = "testTransactionLogEntryId";
39         transactionLogEntry.setTransactionLogEntryId(testTransactionLogEntryId);
40         Assert.assertEquals(testTransactionLogEntryId, transactionLogEntry.getTransactionLogEntryId());
41     }
42
43     @Test
44     public void testGetterSetterStatus() {
45         String testStatus = "testStatus";
46         transactionLogEntry.setStatus(testStatus);
47         Assert.assertEquals(testStatus, transactionLogEntry.getStatus());
48     }
49
50     @Test
51     public void testGetterSetterRqstDate() {
52         String testRqstDate = "testRqstDate";
53         transactionLogEntry.setRqstDate(testRqstDate);
54         Assert.assertEquals(testRqstDate, transactionLogEntry.getRqstDate());
55     }
56
57     @Test
58     public void testGetterSetterRespDate() {
59         String testRespDate = "testRespDate";
60         transactionLogEntry.setRespDate(testRespDate);
61         Assert.assertEquals(testRespDate, transactionLogEntry.getRespDate());
62     }
63
64     @Test
65     public void testGetterSetterSourceId() {
66         String testSourceId = "testSourceId";
67         transactionLogEntry.setSourceId(testSourceId);
68         Assert.assertEquals(testSourceId, transactionLogEntry.getSourceId());
69     }
70
71     @Test
72     public void testGetterSetterResourceId() {
73         String testResourceId = "testResourceId";
74         transactionLogEntry.setResourceId(testResourceId);
75         Assert.assertEquals(testResourceId, transactionLogEntry.getResourceId());
76     }
77
78     @Test
79     public void testGetterSetterResourceType() {
80         String testResourceType = "testResourceType";
81         transactionLogEntry.setResourceType(testResourceType);
82         Assert.assertEquals(testResourceType, transactionLogEntry.getResourceType());
83     }
84
85     @Test
86     public void testGetterSetterRqstBuf() {
87         String testRqstBuf = "testRqstBuf";
88         transactionLogEntry.setRqstBuf(testRqstBuf);
89         Assert.assertEquals(testRqstBuf, transactionLogEntry.getRqstBuf());
90     }
91
92     @Test
93     public void testGetterSetterRespBuf() {
94         String testRespBuf = "testRespBuf";
95         transactionLogEntry.setrespBuf(testRespBuf);
96         Assert.assertEquals(testRespBuf, transactionLogEntry.getrespBuf());
97     }
98
99     @Test
100     public void testGetterSetterNotificationPayload() {
101         String testNotificationPayload = "testNotificationPayload";
102         transactionLogEntry.setNotificationPayload(testNotificationPayload);
103         Assert.assertEquals(testNotificationPayload, transactionLogEntry.getNotificationPayload());
104     }
105
106     @Test
107     public void testGetterSetterNotificationId() {
108         String testNotificationId = "testNotificationId";
109         transactionLogEntry.setNotificationId(testNotificationId);
110         Assert.assertEquals(testNotificationId, transactionLogEntry.getNotificationId());
111     }
112
113     @Test
114     public void testGetterSetterNotificationStatus() {
115         String testNotificationStatus = "testNotificationStatus";
116         transactionLogEntry.setNotificationStatus(testNotificationStatus);
117         Assert.assertEquals(testNotificationStatus, transactionLogEntry.getNotificationStatus());
118     }
119
120     @Test
121     public void testGetterSetterNotificationTopic() {
122         String testNotificationTopic = "testNotificationTopic";
123         transactionLogEntry.setNotificationTopic(testNotificationTopic);
124         Assert.assertEquals(testNotificationTopic, transactionLogEntry.getNotificationTopic());
125     }
126
127     @Test
128     public void testGetterSetterNotificationEntityLink() {
129         String testNotificationEntityLink = "testNotificationEntityLink";
130         transactionLogEntry.setNotificationEntityLink(testNotificationEntityLink);
131         Assert.assertEquals(testNotificationEntityLink, transactionLogEntry.getNotificationEntityLink());
132     }
133
134     @Test
135     public void testGetterSetterNotificationAction() {
136         String testNotificationAction = "testNotificationAction";
137         transactionLogEntry.setNotificationAction(testNotificationAction);
138         Assert.assertEquals(testNotificationAction, transactionLogEntry.getNotificationAction());
139     }
140 }