2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.dmaap.mr.cambria.transaction;
23 import static org.junit.Assert.*;
25 import org.junit.After;
26 import org.junit.Before;
27 import org.junit.Test;
29 import org.onap.dmaap.dmf.mr.transaction.TransactionObj;
30 import org.onap.dmaap.dmf.mr.transaction.TrnRequest;
32 public class TrnRequestTest {
35 public void setUp() throws Exception {
39 public void tearDown() throws Exception {
43 public void testGetId() {
44 TrnRequest req = new TrnRequest();
52 public void testSetId() {
53 TrnRequest req = new TrnRequest();
61 public void testGetRequestCreate() {
62 TrnRequest req = new TrnRequest();
64 req.getRequestCreate();
70 public void testSetRequestCreate() {
71 TrnRequest req = new TrnRequest();
73 req.setRequestCreate("createRequest");
79 public void testGetRequestHost() {
80 TrnRequest req = new TrnRequest();
88 public void testSetRequestHost() {
89 TrnRequest req = new TrnRequest();
91 req.setRequestHost("requestHost");
97 public void testGetServerHost() {
98 TrnRequest req = new TrnRequest();
106 public void testSetServerHost() {
107 TrnRequest req = new TrnRequest();
109 req.setServerHost("requestHost");
115 public void testGetMessageProceed() {
116 TrnRequest req = new TrnRequest();
118 req.getMessageProceed();
124 public void testSetMessageProceed() {
125 TrnRequest req = new TrnRequest();
127 req.setMessageProceed("messageProceed");
133 public void testGetTotalMessage() {
134 TrnRequest req = new TrnRequest();
136 req.getTotalMessage();
142 public void testSetTotalMessage() {
143 TrnRequest req = new TrnRequest();
145 req.setTotalMessage("200");
152 public void testGetClientType() {
153 TrnRequest req = new TrnRequest();
161 public void testSetClientType() {
162 TrnRequest req = new TrnRequest();
164 req.setClientType("admin");
170 public void testGetUrl() {
171 TrnRequest req = new TrnRequest();
179 public void testSetUrl() {
180 TrnRequest req = new TrnRequest();
182 req.setUrl("http://google.com");