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.mso.db.catalog.test;
23 import static org.junit.Assert.assertTrue;
25 import java.sql.Timestamp;
27 import org.junit.Test;
28 import org.openecomp.mso.db.catalog.beans.NetworkResource;
29 import org.openecomp.mso.db.catalog.beans.NetworkResourceCustomization;
34 public class NetworkResourceCustomizationTest {
37 public final void networkResourceCustomizationDataTest() {
38 NetworkResourceCustomization networkResourceCustomization = new NetworkResourceCustomization();
39 networkResourceCustomization.setModelCustomizationUuid("modelCustomizationUuid");
40 assertTrue(networkResourceCustomization.getModelCustomizationUuid().equalsIgnoreCase("modelCustomizationUuid"));
41 networkResourceCustomization.setModelInstanceName("modelInstanceName");
42 assertTrue(networkResourceCustomization.getModelInstanceName().equalsIgnoreCase("modelInstanceName"));
43 networkResourceCustomization.setCreated(new Timestamp(System.currentTimeMillis()));
44 assertTrue(networkResourceCustomization.getCreated() != null);
45 networkResourceCustomization.setNetworkResource(new NetworkResource());
46 assertTrue(networkResourceCustomization.getNetworkResource() != null);
47 networkResourceCustomization.setNetworkResourceModelUuid("networkResourceModelUuid");
48 assertTrue(networkResourceCustomization.getNetworkResourceModelUuid()
49 .equalsIgnoreCase("networkResourceModelUuid"));
50 networkResourceCustomization.setNetworkRole("networkRole");
51 assertTrue(networkResourceCustomization.getNetworkRole().equalsIgnoreCase("networkRole"));
52 networkResourceCustomization.setNetworkScope("networkScope");
53 assertTrue(networkResourceCustomization.getNetworkScope().equalsIgnoreCase("networkScope"));
54 networkResourceCustomization.setNetworkTechnology("networkTechnology");
55 assertTrue(networkResourceCustomization.getNetworkTechnology().equalsIgnoreCase("networkTechnology"));
56 networkResourceCustomization.setNetworkType("networkType");
57 assertTrue(networkResourceCustomization.getNetworkType().equalsIgnoreCase("networkType"));
58 // assertTrue(networkResourceCustomization.toString() != null);