--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class ComputeFlavorTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(ComputeFlavor.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(ComputeFlavor.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(ComputeFlavor.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(ComputeFlavor.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class DeploymentFlavorModelTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(DeploymentFlavorModel.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(DeploymentFlavorModel.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(DeploymentFlavorModel.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(DeploymentFlavorModel.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class LicenseFlavorTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(LicenseFlavor.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(LicenseFlavor.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(LicenseFlavor.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(LicenseFlavor.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class MultiFlavorVfcImageTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(MultiFlavorVfcImage.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(MultiFlavorVfcImage.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(MultiFlavorVfcImage.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(MultiFlavorVfcImage.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class VendorInfoTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(VendorInfo.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(VendorInfo.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(VendorInfo.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(VendorInfo.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
--- /dev/null
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 Nokia. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.generator.datatypes.tosca;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEquals;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCode;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToString;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.junit.Assert.assertThat;
+
+public class VspModelInfoTest {
+ @Test
+ public void accessorsTest() {
+ assertThat(VspModelInfo.class, hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void equalsTest() {
+ assertThat(VspModelInfo.class, hasValidBeanEquals());
+ }
+
+ @Test
+ public void hashCodeTest() {
+ assertThat(VspModelInfo.class, hasValidBeanHashCode());
+ }
+
+ @Test
+ public void toStringTest() {
+ assertThat(VspModelInfo.class, hasValidBeanToString());
+ }
+}
\ No newline at end of file
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
ComputeFlavor other = (ComputeFlavor) obj;
- if(other != null) {
+
if (num_cpus != other.num_cpus)
return false;
if (this.disk_size == null) {
return false;
} else if (!mem_size.equals(other.mem_size))
return false;
- }
+
return true;
}
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
DeploymentFlavorModel other = (DeploymentFlavorModel) obj;
- if (other != null) {
+
if (this.sp_part_number == null) {
if (other.sp_part_number != null)
return false;
return false;
} else if (!license_flavor.equals(other.license_flavor))
return false;
- }
+
return true;
}
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
LicenseFlavor other = (LicenseFlavor) obj;
- if (other != null) {
+
if (this.feature_group_uuid == null) {
if (other.feature_group_uuid != null)
return false;
} else if (!feature_group_uuid.equals(other.feature_group_uuid))
return false;
- }
+
return true;
}
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
- if (other != null) {
+
if (this.file_name == null) {
if (other.file_name != null)
return false;
return false;
} else if (!software_version.equals(other.software_version))
return false;
- }
+
return true;
}
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
VendorInfo other = (VendorInfo) obj;
- if (other != null) {
+
if (this.manufacturer_reference_number == null) {
if (other.manufacturer_reference_number != null)
return false;
return false;
} else if (!vendor_model.equals(other.vendor_model))
return false;
- }
+
return true;
}
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
if (this == obj) {
return true;
}
- if (obj != null && getClass() != obj.getClass()) {
+ if (obj == null || getClass() != obj.getClass()) {
return false;
}
VspModelInfo other = (VspModelInfo) obj;
- if(other != null) {
+
if (this.releaseVendor == null) {
if (other.releaseVendor != null) {
return false;
} else if (!nics.equals(other.nics)) {
return false;
}
- }
+
return true;
}
}