[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / MatchesTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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
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.policy.std.test;
22
23 import java.util.Hashtable;
24 import java.util.Map;
25
26 import org.junit.*;
27 import org.onap.policy.std.Matches;
28
29 import static org.junit.Assert.*;
30
31 /**
32  * The class <code>MatchesTest</code> contains tests for the class <code>{@link Matches}</code>.
33  *
34  * @generatedBy CodePro at 6/1/16 1:41 PM
35  * @version $Revision: 1.0 $
36  */
37 public class MatchesTest {
38         /**
39          * Run the Matches() constructor test.
40          *
41          * @generatedBy CodePro at 6/1/16 1:41 PM
42          */
43         @Test
44         public void testMatches_1()
45                 throws Exception {
46                 Matches result = new Matches();
47                 assertNotNull(result);
48                 // add additional test code here
49         }
50
51         /**
52          * Run the Map<String, String> getConfigAttributes() method test.
53          *
54          * @throws Exception
55          *
56          * @generatedBy CodePro at 6/1/16 1:41 PM
57          */
58         @Test
59         public void testGetConfigAttributes_1()
60                 throws Exception {
61                 Matches fixture = new Matches();
62                 fixture.setOnapName("");
63                 fixture.setConfigAttributes(new Hashtable<String, String>());
64                 fixture.setConfigName("");
65
66                 Map<String, String> result = fixture.getConfigAttributes();
67
68                 // add additional test code here
69                 assertNotNull(result);
70                 assertEquals(0, result.size());
71         }
72
73         /**
74          * Run the String getConfigName() method test.
75          *
76          * @throws Exception
77          *
78          * @generatedBy CodePro at 6/1/16 1:41 PM
79          */
80         @Test
81         public void testGetConfigName_1()
82                 throws Exception {
83                 Matches fixture = new Matches();
84                 fixture.setOnapName("");
85                 fixture.setConfigAttributes(new Hashtable<String, String>());
86                 fixture.setConfigName("");
87
88                 String result = fixture.getConfigName();
89
90                 // add additional test code here
91                 assertEquals("", result);
92         }
93
94         /**
95          * Run the String getOnapName() method test.
96          *
97          * @throws Exception
98          *
99          * @generatedBy CodePro at 6/1/16 1:41 PM
100          */
101         @Test
102         public void testGetOnapName_1()
103                 throws Exception {
104                 Matches fixture = new Matches();
105                 fixture.setOnapName("");
106                 fixture.setConfigAttributes(new Hashtable<String, String>());
107                 fixture.setConfigName("");
108
109                 String result = fixture.getOnapName();
110
111                 // add additional test code here
112                 assertEquals("", result);
113         }
114
115         /**
116          * Run the void setConfigAttributes(Map<String,String>) method test.
117          *
118          * @throws Exception
119          *
120          * @generatedBy CodePro at 6/1/16 1:41 PM
121          */
122         @Test
123         public void testSetConfigAttributes_1()
124                 throws Exception {
125                 Matches fixture = new Matches();
126                 fixture.setOnapName("");
127                 fixture.setConfigAttributes(new Hashtable<String, String>());
128                 fixture.setConfigName("");
129                 Map<String, String> configAttributes = new Hashtable<String, String>();
130
131                 fixture.setConfigAttributes(configAttributes);
132
133                 // add additional test code here
134         }
135
136         /**
137          * Run the void setConfigName(String) method test.
138          *
139          * @throws Exception
140          *
141          * @generatedBy CodePro at 6/1/16 1:41 PM
142          */
143         @Test
144         public void testSetConfigName_1()
145                 throws Exception {
146                 Matches fixture = new Matches();
147                 fixture.setOnapName("");
148                 fixture.setConfigAttributes(new Hashtable<String, String>());
149                 fixture.setConfigName("");
150                 String configName = "";
151
152                 fixture.setConfigName(configName);
153
154                 // add additional test code here
155         }
156
157         /**
158          * Run the void setOnapName(String) method test.
159          *
160          * @throws Exception
161          *
162          * @generatedBy CodePro at 6/1/16 1:41 PM
163          */
164         @Test
165         public void testSetOnapName_1()
166                 throws Exception {
167                 Matches fixture = new Matches();
168                 fixture.setOnapName("");
169                 fixture.setConfigAttributes(new Hashtable<String, String>());
170                 fixture.setConfigName("");
171                 String onapName = "";
172
173                 fixture.setOnapName(onapName);
174
175                 // add additional test code here
176         }
177
178         /**
179          * Perform pre-test initialization.
180          *
181          * @throws Exception
182          *         if the initialization fails for some reason
183          *
184          * @generatedBy CodePro at 6/1/16 1:41 PM
185          */
186         @Before
187         public void setUp()
188                 throws Exception {
189                 // add additional set up code here
190         }
191
192         /**
193          * Perform post-test clean-up.
194          *
195          * @throws Exception
196          *         if the clean-up fails for some reason
197          *
198          * @generatedBy CodePro at 6/1/16 1:41 PM
199          */
200         @After
201         public void tearDown()
202                 throws Exception {
203                 // Add additional tear down code here
204         }
205
206         /**
207          * Launch the test.
208          *
209          * @param args the command line arguments
210          *
211          * @generatedBy CodePro at 6/1/16 1:41 PM
212          */
213         public static void main(String[] args) {
214                 new org.junit.runner.JUnitCore().run(MatchesTest.class);
215         }
216 }