commiting code for test coverage
[dmaap/messagerouter/messageservice.git] / src / test / java / com / att / nsa / dmaap / service / TransactionRestServiceTest.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * ONAP Policy Engine\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
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \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
19  */\r
20 \r
21 package com.att.nsa.dmaap.service;\r
22 \r
23 import static org.junit.Assert.*;\r
24 \r
25 import java.lang.reflect.InvocationTargetException;\r
26 import java.lang.reflect.Method;\r
27 \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
37 \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
45 \r
46 /*@RunWith(PowerMockRunner.class)\r
47 @PrepareForTest({ PropertiesMapBean.class })*/\r
48 public class TransactionRestServiceTest {/*\r
49 \r
50         @InjectMocks\r
51         TransactionRestService transactionRestService;\r
52 \r
53         @Mock\r
54         private TransactionService transactionService;\r
55 \r
56         @Mock\r
57         DMaaPContext dmaapContext;\r
58 \r
59         @Before\r
60         public void setUp() throws Exception {\r
61                 MockitoAnnotations.initMocks(this);\r
62         }\r
63 \r
64         @After\r
65         public void tearDown() throws Exception {\r
66 \r
67         }\r
68 \r
69         @Test\r
70         public void testGetAllTransactionObjs() throws CambriaApiException {\r
71 \r
72                 transactionRestService.getAllTransactionObjs();\r
73 \r
74         }\r
75 \r
76         @Test\r
77         public void testGetTransactionObj() throws CambriaApiException {\r
78 \r
79                 transactionRestService.getTransactionObj("transactionId");\r
80 \r
81         }\r
82 \r
83 */}