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.openecomp.policy.std.test;
23 import java.util.Hashtable;
27 import org.openecomp.policy.std.Matches;
29 import static org.junit.Assert.*;
32 * The class <code>MatchesTest</code> contains tests for the class <code>{@link Matches}</code>.
34 * @generatedBy CodePro at 6/1/16 1:41 PM
35 * @version $Revision: 1.0 $
37 public class MatchesTest {
39 * Run the Matches() constructor test.
41 * @generatedBy CodePro at 6/1/16 1:41 PM
44 public void testMatches_1()
46 Matches result = new Matches();
47 assertNotNull(result);
48 // add additional test code here
52 * Run the Map<String, String> getConfigAttributes() method test.
56 * @generatedBy CodePro at 6/1/16 1:41 PM
59 public void testGetConfigAttributes_1()
61 Matches fixture = new Matches();
62 fixture.setEcompName("");
63 fixture.setConfigAttributes(new Hashtable());
64 fixture.setConfigName("");
66 Map<String, String> result = fixture.getConfigAttributes();
68 // add additional test code here
69 assertNotNull(result);
70 assertEquals(0, result.size());
74 * Run the String getConfigName() method test.
78 * @generatedBy CodePro at 6/1/16 1:41 PM
81 public void testGetConfigName_1()
83 Matches fixture = new Matches();
84 fixture.setEcompName("");
85 fixture.setConfigAttributes(new Hashtable());
86 fixture.setConfigName("");
88 String result = fixture.getConfigName();
90 // add additional test code here
91 assertEquals("", result);
95 * Run the String getEcompName() method test.
99 * @generatedBy CodePro at 6/1/16 1:41 PM
102 public void testGetEcompName_1()
104 Matches fixture = new Matches();
105 fixture.setEcompName("");
106 fixture.setConfigAttributes(new Hashtable());
107 fixture.setConfigName("");
109 String result = fixture.getEcompName();
111 // add additional test code here
112 assertEquals("", result);
116 * Run the void setConfigAttributes(Map<String,String>) method test.
120 * @generatedBy CodePro at 6/1/16 1:41 PM
123 public void testSetConfigAttributes_1()
125 Matches fixture = new Matches();
126 fixture.setEcompName("");
127 fixture.setConfigAttributes(new Hashtable());
128 fixture.setConfigName("");
129 Map<String, String> configAttributes = new Hashtable();
131 fixture.setConfigAttributes(configAttributes);
133 // add additional test code here
137 * Run the void setConfigName(String) method test.
141 * @generatedBy CodePro at 6/1/16 1:41 PM
144 public void testSetConfigName_1()
146 Matches fixture = new Matches();
147 fixture.setEcompName("");
148 fixture.setConfigAttributes(new Hashtable());
149 fixture.setConfigName("");
150 String configName = "";
152 fixture.setConfigName(configName);
154 // add additional test code here
158 * Run the void setEcompName(String) method test.
162 * @generatedBy CodePro at 6/1/16 1:41 PM
165 public void testSetEcompName_1()
167 Matches fixture = new Matches();
168 fixture.setEcompName("");
169 fixture.setConfigAttributes(new Hashtable());
170 fixture.setConfigName("");
171 String ecompName = "";
173 fixture.setEcompName(ecompName);
175 // add additional test code here
179 * Perform pre-test initialization.
182 * if the initialization fails for some reason
184 * @generatedBy CodePro at 6/1/16 1:41 PM
189 // add additional set up code here
193 * Perform post-test clean-up.
196 * if the clean-up fails for some reason
198 * @generatedBy CodePro at 6/1/16 1:41 PM
201 public void tearDown()
203 // Add additional tear down code here
209 * @param args the command line arguments
211 * @generatedBy CodePro at 6/1/16 1:41 PM
213 public static void main(String[] args) {
214 new org.junit.runner.JUnitCore().run(MatchesTest.class);