+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * ONAP - SO\r
+ * ================================================================================\r
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+\r
+package org.openecomp.mso.db.catalog.test;\r
+\r
+import static org.junit.Assert.assertTrue;\r
+\r
+import java.sql.Timestamp;\r
+\r
+import org.junit.Test;\r
+import org.openecomp.mso.db.catalog.beans.VfModule;\r
+import org.openecomp.mso.db.catalog.beans.VfModuleCustomization;\r
+\r
+/**\r
+ */\r
+\r
+public class VfModuleCustomizationTest {\r
+\r
+ @Test\r
+ public final void vfModuleCustomizationDataTest() {\r
+ VfModuleCustomization vfModuleCustomization = new VfModuleCustomization();\r
+ vfModuleCustomization.setCreated(new Timestamp(System.currentTimeMillis()));\r
+ assertTrue(vfModuleCustomization.getCreated() != null);\r
+ vfModuleCustomization.setAvailabilityZoneCount(1);\r
+ assertTrue(vfModuleCustomization.getAvailabilityZoneCount() == 1);\r
+ vfModuleCustomization.hashCode();\r
+ vfModuleCustomization.setVolEnvironmentArtifactUuid("volEnvironmentArtifactUuid");\r
+ assertTrue(\r
+ vfModuleCustomization.getVolEnvironmentArtifactUuid().equalsIgnoreCase("volEnvironmentArtifactUuid"));\r
+\r
+ vfModuleCustomization.setHeatEnvironmentArtifactUuid("heatEnvironmentArtifactUuid");\r
+ assertTrue(\r
+ vfModuleCustomization.getHeatEnvironmentArtifactUuid().equalsIgnoreCase("heatEnvironmentArtifactUuid"));\r
+\r
+ vfModuleCustomization.setInitialCount(1);\r
+ assertTrue(vfModuleCustomization.getInitialCount() == 1);\r
+\r
+ vfModuleCustomization.setLabel("label");\r
+ assertTrue(vfModuleCustomization.getLabel().equalsIgnoreCase("label"));\r
+ vfModuleCustomization.setMaxInstances(2);\r
+ assertTrue(vfModuleCustomization.getMaxInstances() == 2);\r
+ vfModuleCustomization.setMinInstances(1);\r
+ assertTrue(vfModuleCustomization.getMinInstances() == 1);\r
+ vfModuleCustomization.setModelCustomizationUuid("modelCustomizationUuid");\r
+ assertTrue(vfModuleCustomization.getModelCustomizationUuid().equalsIgnoreCase("modelCustomizationUuid"));\r
+ vfModuleCustomization.setVfModule(new VfModule());\r
+ assertTrue(vfModuleCustomization.getVfModule() != null);\r
+\r
+// assertTrue(vfModuleCustomization.toString() == null);\r
+\r
+ }\r
+\r
+}\r