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.test;
24 import org.openecomp.policy.api.PolicyResponseStatus;
26 import static org.junit.Assert.*;
29 * The class <code>PolicyResponseStatusTest</code> contains tests for the class <code>{@link PolicyResponseStatus}</code>.
31 * @generatedBy CodePro at 6/1/16 1:41 PM
32 * @version $Revision: 1.0 $
34 public class PolicyResponseStatusTest {
36 * Run the PolicyResponseStatus getStatus(String) method test.
40 * @generatedBy CodePro at 6/1/16 1:41 PM
43 public void testGetStatus_1()
45 String responseStatus = "";
47 PolicyResponseStatus result = PolicyResponseStatus.getStatus(responseStatus);
49 // add additional test code here
50 assertNotNull(result);
51 assertEquals("no_action", result.toString());
52 assertEquals("NO_ACTION_REQUIRED", result.name());
53 assertEquals(0, result.ordinal());
57 * Run the PolicyResponseStatus getStatus(String) method test.
61 * @generatedBy CodePro at 6/1/16 1:41 PM
64 public void testGetStatus_2()
66 String responseStatus = "";
68 PolicyResponseStatus result = PolicyResponseStatus.getStatus(responseStatus);
70 // add additional test code here
71 assertNotNull(result);
72 assertEquals("no_action", result.toString());
73 assertEquals("NO_ACTION_REQUIRED", result.name());
74 assertEquals(0, result.ordinal());
78 * Run the PolicyResponseStatus getStatus(String) method test.
82 * @generatedBy CodePro at 6/1/16 1:41 PM
85 public void testGetStatus_3()
87 String responseStatus = "";
89 PolicyResponseStatus result = PolicyResponseStatus.getStatus(responseStatus);
91 // add additional test code here
92 assertNotNull(result);
93 assertEquals("no_action", result.toString());
94 assertEquals("NO_ACTION_REQUIRED", result.name());
95 assertEquals(0, result.ordinal());
99 * Run the String toString() method test.
103 * @generatedBy CodePro at 6/1/16 1:41 PM
106 public void testToString_1()
108 PolicyResponseStatus fixture = PolicyResponseStatus.ACTION_ADVISED;
110 String result = fixture.toString();
112 // add additional test code here
113 assertEquals("action_advised", result);
117 * Perform pre-test initialization.
120 * if the initialization fails for some reason
122 * @generatedBy CodePro at 6/1/16 1:41 PM
127 // add additional set up code here
131 * Perform post-test clean-up.
134 * if the clean-up fails for some reason
136 * @generatedBy CodePro at 6/1/16 1:41 PM
139 public void tearDown()
141 // Add additional tear down code here
147 * @param args the command line arguments
149 * @generatedBy CodePro at 6/1/16 1:41 PM
151 public static void main(String[] args) {
152 new org.junit.runner.JUnitCore().run(PolicyResponseStatusTest.class);