Merge "Reorder modifiers"
[so.git] / mso-catalog-db / src / test / java / org / openecomp / mso / db / catalog / test / NetworkRecipeTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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.openecomp.mso.db.catalog.test;
22
23 import static org.junit.Assert.assertTrue;
24
25 import java.sql.Timestamp;
26
27 import org.junit.Test;
28 import org.openecomp.mso.db.catalog.beans.NetworkRecipe;
29
30 /**
31  */
32
33 public class NetworkRecipeTest {
34
35         @Test
36         public final void networkRecipeDataTest() {
37
38                 NetworkRecipe networkRecipe = new NetworkRecipe();
39                 networkRecipe.setAction("action");
40                 assertTrue(networkRecipe.getAction().equalsIgnoreCase("action"));
41                 networkRecipe.setCreated(new Timestamp(System.currentTimeMillis()));
42                 assertTrue(networkRecipe.getCreated() != null);
43                 networkRecipe.setDescription("description");
44                 assertTrue(networkRecipe.getDescription().equalsIgnoreCase("description"));
45                 networkRecipe.setId(1);
46                 assertTrue(networkRecipe.getId() == 1);
47                 networkRecipe.setModelName("modelName");
48                 assertTrue(networkRecipe.getModelName().equalsIgnoreCase("modelName"));
49                 networkRecipe.setParamXSD("networkParamXSD");
50                 assertTrue(networkRecipe.getParamXSD().equalsIgnoreCase("networkParamXSD"));
51                 networkRecipe.setOrchestrationUri("orchestrationUri");
52                 assertTrue(networkRecipe.getOrchestrationUri().equalsIgnoreCase("orchestrationUri"));
53                 networkRecipe.setRecipeTimeout(1);
54                 assertTrue(networkRecipe.getRecipeTimeout() == 1);
55                 networkRecipe.setServiceType("serviceType");
56                 assertTrue(networkRecipe.getServiceType().equalsIgnoreCase("serviceType"));
57                 networkRecipe.setVersion("version");
58                 assertTrue(networkRecipe.getVersion().equalsIgnoreCase("version"));
59 //              assertTrue(networkRecipe.toString() != null);
60
61         }
62
63 }