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.dmaap.service;
\r
23 import static org.junit.Assert.*;
\r
25 import java.lang.reflect.InvocationTargetException;
\r
26 import java.lang.reflect.Method;
\r
28 import org.junit.After;
\r
29 import org.junit.Before;
\r
30 import org.junit.Test;
\r
31 import org.junit.runner.RunWith;
\r
32 /*import org.mockito.InjectMocks;
\r
33 import org.mockito.Mock;
\r
34 import org.mockito.MockitoAnnotations;
\r
35 import org.powermock.core.classloader.annotations.PrepareForTest;
\r
36 import org.powermock.modules.junit4.PowerMockRunner;*/
\r
38 import com.att.ajsc.beans.PropertiesMapBean;
\r
39 import com.att.nsa.cambria.CambriaApiException;
\r
40 import com.att.nsa.cambria.beans.DMaaPContext;
\r
41 import com.att.nsa.cambria.service.EventsService;
\r
42 import com.att.nsa.cambria.service.TransactionService;
\r
43 import com.att.nsa.configs.ConfigDbException;
\r
44 import com.att.nsa.security.ReadWriteSecuredResource.AccessDeniedException;
\r
46 /*@RunWith(PowerMockRunner.class)
\r
47 @PrepareForTest({ PropertiesMapBean.class })*/
\r
48 public class TransactionRestServiceTest {/*
\r
51 TransactionRestService transactionRestService;
\r
54 private TransactionService transactionService;
\r
57 DMaaPContext dmaapContext;
\r
60 public void setUp() throws Exception {
\r
61 MockitoAnnotations.initMocks(this);
\r
65 public void tearDown() throws Exception {
\r
70 public void testGetAllTransactionObjs() throws CambriaApiException {
\r
72 transactionRestService.getAllTransactionObjs();
\r
77 public void testGetTransactionObj() throws CambriaApiException {
\r
79 transactionRestService.getTransactionObj("transactionId");
\r