2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Modifications Copyright (C) 2019 Samsung
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.policy.test;
26 import org.onap.policy.api.UpdateType;
27 import static org.junit.Assert.*;
30 * The class <code>UpdateTypeTest</code> contains tests for the class
31 * <code>{@link UpdateType}</code>.
33 * @generatedBy CodePro at 6/1/16 1:39 PM
34 * @version $Revision: 1.0 $
36 public class UpdateTypeTest {
38 * Run the String toString() method test.
42 * @generatedBy CodePro at 6/1/16 1:39 PM
45 public void testToString_1() throws Exception {
46 UpdateType fixture = UpdateType.NEW;
48 String result = fixture.toString();
50 // add additional test code here
51 assertEquals("new", result);
55 * Perform pre-test initialization.
57 * @throws Exception if the initialization fails for some reason
59 * @generatedBy CodePro at 6/1/16 1:39 PM
62 public void setUp() throws Exception {
63 // add additional set up code here
67 * Perform post-test clean-up.
69 * @throws Exception if the clean-up fails for some reason
71 * @generatedBy CodePro at 6/1/16 1:39 PM
74 public void tearDown() throws Exception {
75 // Add additional tear down code here
81 * @param args the command line arguments
83 * @generatedBy CodePro at 6/1/16 1:39 PM
85 public static void main(String[] args) {
86 new org.junit.runner.JUnitCore().run(UpdateTypeTest.class);