2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package com.att.nsa.cambria.transaction;
\r
23 import static org.junit.Assert.*;
\r
25 import org.junit.After;
\r
26 import org.junit.Before;
\r
27 import org.junit.Test;
\r
29 import com.att.dmf.mr.transaction.TransactionObj;
\r
30 import com.att.dmf.mr.transaction.TrnRequest;
\r
32 public class TrnRequestTest {
\r
35 public void setUp() throws Exception {
\r
39 public void tearDown() throws Exception {
\r
43 public void testGetId() {
\r
44 TrnRequest req = new TrnRequest();
\r
52 public void testSetId() {
\r
53 TrnRequest req = new TrnRequest();
\r
61 public void testGetRequestCreate() {
\r
62 TrnRequest req = new TrnRequest();
\r
64 req.getRequestCreate();
\r
70 public void testSetRequestCreate() {
\r
71 TrnRequest req = new TrnRequest();
\r
73 req.setRequestCreate("createRequest");
\r
79 public void testGetRequestHost() {
\r
80 TrnRequest req = new TrnRequest();
\r
82 req.getRequestHost();
\r
88 public void testSetRequestHost() {
\r
89 TrnRequest req = new TrnRequest();
\r
91 req.setRequestHost("requestHost");
\r
97 public void testGetServerHost() {
\r
98 TrnRequest req = new TrnRequest();
\r
100 req.getServerHost();
\r
106 public void testSetServerHost() {
\r
107 TrnRequest req = new TrnRequest();
\r
109 req.setServerHost("requestHost");
\r
115 public void testGetMessageProceed() {
\r
116 TrnRequest req = new TrnRequest();
\r
118 req.getMessageProceed();
\r
124 public void testSetMessageProceed() {
\r
125 TrnRequest req = new TrnRequest();
\r
127 req.setMessageProceed("messageProceed");
\r
133 public void testGetTotalMessage() {
\r
134 TrnRequest req = new TrnRequest();
\r
136 req.getTotalMessage();
\r
142 public void testSetTotalMessage() {
\r
143 TrnRequest req = new TrnRequest();
\r
145 req.setTotalMessage("200");
\r
152 public void testGetClientType() {
\r
153 TrnRequest req = new TrnRequest();
\r
155 req.getClientType();
\r
161 public void testSetClientType() {
\r
162 TrnRequest req = new TrnRequest();
\r
164 req.setClientType("admin");
\r
170 public void testGetUrl() {
\r
171 TrnRequest req = new TrnRequest();
\r
179 public void testSetUrl() {
\r
180 TrnRequest req = new TrnRequest();
\r
182 req.setUrl("http://google.com");
\r