aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE.TXT8
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/CsarInfoTest.java171
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogicTest.java82
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java732
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ConsumerBusinessLogicTest.java83
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ElementBusinessLogicTest.java332
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/GroupBusinessLogicTest.java767
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ProductBusinessLogicTest.java384
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PolicyPropertyDeceleratorTest.java173
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PropertyDeceleratorTestBase.java69
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ArtifactMetadataTest.java253
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductAssetMetadataTest.java123
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductCategoryGroupMetadataTest.java77
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetDetailedMetadataTest.java122
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetMetadataTest.java121
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceInstanceMetadataTest.java167
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetDetailedMetadataTest.java79
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetMetadataTest.java99
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactAccessListTest.java34
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfoTest.java122
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTemplateInfoTest.java186
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTypesInfoTest.java14
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/CreateAndAssotiateInfoTest.java57
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusInfoTest.java122
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusListResponseTest.java13
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusOfServiceListResponceTest.java14
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupDefinitionInfoTest.java29
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupTemplateInfoTest.java17
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceInfoTest.java57
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceVersionInfoTest.java54
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ServicesWrapperTest.java16
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ServletJsonResponseTest.java14
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInfoTest.java21
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInterfaceTest.java17
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AdditionalInformationServletTest.java167
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ArtifactServletTest.java337
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AttributeServletTest.java71
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigMgrServletTest.java82
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigServletTest.java23
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConsumerServletTest.java84
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java45
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/DistributionServiceServletTest.java62
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ElementServletTest.java243
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/GroupServletTest.java43
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/InputsServletTest.java166
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/LifecycleServletTest.java45
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ProductServletTest.java92
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/PropertyServletTest.java116
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RequirementsServletTest.java28
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourceArtifactDownloadServletTest.java53
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourcesServletTest.java240
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ServiceServletTest.java265
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/servlets/TypesFetchServletTest.java38
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetectorTest.java36
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java1235
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java59
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaUtilsTest.java32
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/EntrySchemaTest.java55
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/SubstitutionMappingTest.java79
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaCapabilityTest.java124
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaGroupTemplateTest.java103
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaMetadataTest.java385
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTemplateTest.java124
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTypeTest.java146
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaPropertyTest.java143
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaRequirementTest.java47
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateCapabilityTest.java58
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateRequirementTest.java90
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateTest.java130
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTopolgyTemplateTest.java92
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/VfModuleToscaMetadataTest.java121
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/RollbackManagerTest.java45
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/TransactionManagerTest.java52
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/TableTest.java22
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java72
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnumTest.java32
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgePropertyEnumTest.java32
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnumTest.java43
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/MigrationTaskEntryTest.java189
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceArtifactsDataCollectionTest.java47
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java119
-rw-r--r--catalog-fe/src/test/java/org/openecomp/sdc/fe/GzipFilterTest.java36
-rw-r--r--catalog-fe/src/test/java/org/openecomp/sdc/fe/listen/MyObjectMapperProviderTest.java28
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java54
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java44
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java135
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java112
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java66
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java79
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java102
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java55
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java57
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java57
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java173
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java403
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java25
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java22
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/ToscaTypeTest.java49
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java28
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java36
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java58
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java36
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java38
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java34
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java36
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java40
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java22
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java46
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java28
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java43
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java22
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java21
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java23
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java37
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java62
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java129
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java80
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java444
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java193
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java213
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java58
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java122
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/BeEcompErrorManagerTest.java733
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/CleanComponentsConfigurationTest.java49
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/ConfigurationTest.java1453
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorConfigurationTest.java49
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorInfoTest.java108
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/Neo4jErrorsConfigurationTest.java49
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/be/config/validation/DeploymentArtifactHeatConfigurationTest.java57
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactTypeEnumTest.java54
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/ResponseInfoTest.java59
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfoTest.java134
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterfaceTest.java35
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java44
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java44
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/ESTimeBasedEventTest.java117
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java44
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/WrapperTest.java24
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/ecomplog/LoggerMetricTest.java302
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java51
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java42
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/monitoring/MonitoringEventTest.java242
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/rest/api/RestConfigurationInfoTest.java110
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/CapabilityTypeNameEnumTest.java22
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java124
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/GsonFactoryTest.java22
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java603
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/CompositionDataDefinitionTest.java81
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListCapabiltyDataDefinitionTest.java46
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListRequirementDataDefinitionTest.java38
-rw-r--r--test-apis-ci/pom.xml2
176 files changed, 19938 insertions, 67 deletions
diff --git a/LICENSE.TXT b/LICENSE.TXT
index 79c4085129..17679f586d 100644
--- a/LICENSE.TXT
+++ b/LICENSE.TXT
@@ -1,8 +1,8 @@
-/*
+/*
* ============LICENSE_START==========================================
* ===================================================================
-* Copyright © 2017 AT&T Intellectual Property.
-* Copyright © 2017 Amdocs
+* Copyright © 2018 AT&T Intellectual Property.
+* Copyright © 2018 Amdocs
* All rights reserved.
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END============================================
-* ECOMP is a trademark and service mark of AT&T Intellectual Property.
-
*/
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/CsarInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/CsarInfoTest.java
new file mode 100644
index 0000000000..2ae1f8f65d
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/CsarInfoTest.java
@@ -0,0 +1,171 @@
+package org.openecomp.sdc;
+
+import java.util.Map;
+import java.util.Queue;
+import org.openecomp.sdc.be.components.csar.CsarInfo;
+import org.junit.Test;
+import org.openecomp.sdc.be.model.Resource;
+import org.openecomp.sdc.be.model.User;
+
+
+public class CsarInfoTest {
+
+ private CsarInfo createTestSubject() {
+ return new CsarInfo( new User(), "", null, "","","", false);
+ }
+
+
+ @Test
+ public void testGetVfResourceName() throws Exception {
+ CsarInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfResourceName();
+ }
+
+
+ @Test
+ public void testSetVfResourceName() throws Exception {
+ CsarInfo testSubject;
+ String vfResourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVfResourceName(vfResourceName);
+ }
+
+
+ @Test
+ public void testGetModifier() throws Exception {
+ CsarInfo testSubject;
+ User result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getModifier();
+ }
+
+
+ @Test
+ public void testSetModifier() throws Exception {
+ CsarInfo testSubject;
+ User modifier = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setModifier(modifier);
+ }
+
+
+ @Test
+ public void testGetCsarUUID() throws Exception {
+ CsarInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCsarUUID();
+ }
+
+
+ @Test
+ public void testSetCsarUUID() throws Exception {
+ CsarInfo testSubject;
+ String csarUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCsarUUID(csarUUID);
+ }
+
+
+ @Test
+ public void testGetCsar() throws Exception {
+ CsarInfo testSubject;
+ Map<String, byte[]> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCsar();
+ }
+
+
+ @Test
+ public void testSetCsar() throws Exception {
+ CsarInfo testSubject;
+ Map<String, byte[]> csar = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCsar(csar);
+ }
+
+
+ @Test
+ public void testGetMainTemplateContent() throws Exception {
+ CsarInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMainTemplateContent();
+ }
+
+
+ @Test
+ public void testGetMappedToscaMainTemplate() throws Exception {
+ CsarInfo testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMappedToscaMainTemplate();
+ }
+
+
+ @Test
+ public void testGetCreatedNodesToscaResourceNames() throws Exception {
+ CsarInfo testSubject;
+ Map<String, String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatedNodesToscaResourceNames();
+ }
+
+
+
+ @Test
+ public void testIsUpdate() throws Exception {
+ CsarInfo testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isUpdate();
+ }
+
+
+ @Test
+ public void testSetUpdate() throws Exception {
+ CsarInfo testSubject;
+ boolean isUpdate = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUpdate(isUpdate);
+ }
+
+
+ @Test
+ public void testGetCreatedNodes() throws Exception {
+ CsarInfo testSubject;
+ Map<String, Resource> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatedNodes();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogicTest.java
new file mode 100644
index 0000000000..630f41f905
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogicTest.java
@@ -0,0 +1,82 @@
+package org.openecomp.sdc.be.components.impl;
+
+import java.util.List;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+
+public class AttributeBusinessLogicTest {
+
+ private AttributeBusinessLogic createTestSubject() {
+ return new AttributeBusinessLogic();
+ }
+
+
+ @Test
+ public void testCreateAttribute() throws Exception {
+ AttributeBusinessLogic testSubject;
+ String resourceId = "";
+ PropertyDefinition newAttributeDef = null;
+ String userId = "";
+ Either<PropertyDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testIsAttributeExist() throws Exception {
+ AttributeBusinessLogic testSubject;List<PropertyDefinition> attributes = null;
+ String resourceUid = "";
+ String propertyName = "";
+ boolean result;
+
+ // test 1
+ testSubject=createTestSubject();attributes = null;
+ }
+
+
+ @Test
+ public void testGetAttribute() throws Exception {
+ AttributeBusinessLogic testSubject;
+ String resourceId = "";
+ String attributeId = "";
+ String userId = "";
+ Either<PropertyDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateAttribute() throws Exception {
+ AttributeBusinessLogic testSubject;
+ String resourceId = "";
+ String attributeId = "";
+ PropertyDefinition newAttDef = null;
+ String userId = "";
+ Either<PropertyDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteAttribute() throws Exception {
+ AttributeBusinessLogic testSubject;
+ String resourceId = "";
+ String attributeId = "";
+ String userId = "";
+ Either<PropertyDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java
index ba74df91ed..1a6483009d 100644
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java
@@ -6,6 +6,8 @@ import fj.data.Either;
import java.util.*;
+import mockit.Deencapsulation;
+import org.apache.commons.lang3.tuple.ImmutablePair;
import org.assertj.core.util.Lists;
import org.junit.Assert;
import org.junit.Before;
@@ -18,11 +20,13 @@ import org.mockito.junit.MockitoJUnitRunner;
import org.openecomp.sdc.be.components.impl.exceptions.ComponentException;
import org.openecomp.sdc.be.components.validation.UserValidations;
import org.openecomp.sdc.be.dao.api.ActionStatus;
+import org.openecomp.sdc.be.dao.jsongraph.types.JsonParseFlagEnum;
import org.openecomp.sdc.be.datatypes.elements.*;
import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
import org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields;
import org.openecomp.sdc.be.impl.ComponentsUtils;
import org.openecomp.sdc.be.impl.ServletUtils;
+import org.openecomp.sdc.be.info.CreateAndAssotiateInfo;
import org.openecomp.sdc.be.model.*;
import org.openecomp.sdc.be.model.LifecycleStateEnum;
import org.openecomp.sdc.be.model.jsontitan.operations.ForwardingPathOperation;
@@ -335,4 +339,732 @@ public class ComponentInstanceBusinessLogicTest {
relationshipImpl.setType(RELATIONSHIP_TYPE);
relationInfo.setRelationships(relationshipImpl);
}
+
+ private ComponentInstanceBusinessLogic createTestSubject() {
+ return componentInstanceBusinessLogic;
+ }
+
+
+
+
+
+ @Test
+ public void testChangeServiceProxyVersion(){
+ ComponentInstanceBusinessLogic componentInstanceBusinessLogic;
+
+ Either<ComponentInstance, ResponseFormat> result;
+
+ // default test
+ componentInstanceBusinessLogic = createTestSubject();
+ result = componentInstanceBusinessLogic.changeServiceProxyVersion();
+ }
+
+
+
+
+
+
+
+ @Test
+ public void testCreateServiceProxy() {
+ ComponentInstanceBusinessLogic testSubject;
+ Either<ComponentInstance, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.createServiceProxy();
+ }
+
+
+
+
+
+ @Test
+ public void testDeleteForwardingPathsRelatedTobeDeletedComponentInstance() {
+ ComponentInstanceBusinessLogic testSubject;
+ String containerComponentId = "";
+ String componentInstanceId = "";
+ ComponentTypeEnum containerComponentType = ComponentTypeEnum.RESOURCE;
+ Either<ComponentInstance, ResponseFormat> resultOp = null;
+ Either<ComponentInstance, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.deleteForwardingPathsRelatedTobeDeletedComponentInstance(containerComponentId,
+ containerComponentType, resultOp);
+ }
+
+
+ @Test
+ public void testDeleteServiceProxy() {
+ ComponentInstanceBusinessLogic testSubject;
+
+ Either<ComponentInstance, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.deleteServiceProxy();
+ }
+
+
+
+
+
+
+ @Test
+ public void testGetComponentInstanceInputsByInputId() {
+ ComponentInstanceBusinessLogic testSubject;
+ Component component = new Service();
+ String inputId = "";
+ List<ComponentInstanceInput> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstanceInputsByInputId(component, inputId);
+ }
+
+
+
+ @Test
+ public void testGetComponentInstancePropertiesByInputId() {
+ ComponentInstanceBusinessLogic testSubject;
+ Component component = new Service();
+ String inputId = "";
+ List<ComponentInstanceProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancePropertiesByInputId(component, inputId);
+ }
+
+
+ @Test
+ public void testGetRelationById() {
+ ComponentInstanceBusinessLogic testSubject;
+ String componentId = "";
+ String relationId = "";
+ String userId = user.getUserId();
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE_INSTANCE;
+ Either<RequirementCapabilityRelDef, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelationById(componentId, relationId, userId, componentTypeEnum);
+ }
+
+
+
+
+
+ @Test
+ public void testCreateComponentInstance_1() {
+ ComponentInstanceBusinessLogic testSubject;String containerComponentParam = "";
+ String containerComponentId = "";
+ String userId = user.getUserId();
+ ComponentInstance resourceInstance = null;
+ boolean inTransaction = false;
+ boolean needLock = false;
+ Either<ComponentInstance,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();result=testSubject.createComponentInstance(containerComponentParam, containerComponentId, userId, resourceInstance, inTransaction, needLock);
+ }
+
+
+
+
+
+ @Test
+ public void testCreateAndAssociateRIToRI() {
+ ComponentInstanceBusinessLogic testSubject;
+
+ String containerComponentParam = "";
+ String containerComponentId = "";
+ String userId = user.getUserId();
+ CreateAndAssotiateInfo createAndAssotiateInfo = new CreateAndAssotiateInfo(null, null);
+ Either<CreateAndAssotiateInfo,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.createAndAssociateRIToRI(containerComponentParam, containerComponentId, userId, createAndAssotiateInfo);
+ }
+
+ @Test
+ public void testGetOriginComponentFromComponentInstance_1() {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ String componentInstanceName = "";
+ String origComponetId = resource.getUniqueId();
+ Either<Component, StorageOperationStatus> oldResourceRes = Either.left(resource);
+ when(toscaOperationFacade.getToscaFullElement(resource.getUniqueId())).thenReturn(oldResourceRes);
+ Either<Component,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getOriginComponentFromComponentInstance", new Object[]{componentInstanceName, origComponetId});
+ }
+
+
+ @Test
+ public void testCreateComponentInstanceOnGraph() {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ createInstances();
+ Either<ComponentInstance,ResponseFormat> result;
+
+ Either<ImmutablePair<Component, String>, StorageOperationStatus> result2 = Either.right(StorageOperationStatus.ARTIFACT_NOT_FOUND);
+ when(toscaOperationFacade.addComponentInstanceToTopologyTemplate(resource, resource,toInstance, false, user)).thenReturn(result2);
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "createComponentInstanceOnGraph", new Object[]{resource, resource, toInstance, user});
+ }
+
+ @Ignore("test failing skipping for now")
+ @Test
+ public void testCreateComponentInstanceOnGraph2() {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ resource.setName("name");
+ createInstances();
+ Either<ComponentInstance,ResponseFormat> result;
+ ImmutablePair<Component, String> pair = new ImmutablePair<>(resource,"");
+
+
+
+
+ Either<ImmutablePair<Component, String>, StorageOperationStatus> result2 = Either.left(pair);
+ when(toscaOperationFacade.addComponentInstanceToTopologyTemplate(resource, resource,toInstance, false, user)).thenReturn(result2);
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "createComponentInstanceOnGraph", new Object[]{resource, resource, toInstance, user});
+ }
+
+ @Test
+ public void testUpdateComponentInstanceMetadata() {
+ ComponentInstanceBusinessLogic testSubject;
+ String containerComponentParam = "";
+ String containerComponentId = "";
+ String componentInstanceId = "";
+ String userId = user.getUserId();
+ createInstances();
+ Either<ComponentInstance,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.updateComponentInstanceMetadata(containerComponentParam, containerComponentId, componentInstanceId, userId, toInstance);
+ }
+
+
+ @Test
+ public void testUpdateComponentInstanceMetadata_1() {
+ ComponentInstanceBusinessLogic testSubject;
+ String containerComponentParam = "";
+ String containerComponentId = "";
+ String componentInstanceId = "";
+ String userId = user.getUserId();
+ createInstances();
+ boolean inTransaction = false;
+ boolean needLock = false;
+ boolean createNewTransaction = false;
+ Either<ComponentInstance,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.updateComponentInstanceMetadata(containerComponentParam, containerComponentId, componentInstanceId, userId, toInstance, inTransaction, needLock, createNewTransaction);
+ }
+
+
+
+
+
+ @Test
+ public void testValidateParent() {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ String nodeTemplateId = "";
+ boolean result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "validateParent", new Object[]{resource, nodeTemplateId});
+ }
+
+
+ @Test
+ public void testGetComponentType() {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getComponentType", new Object[]{ComponentTypeEnum.class});
+ }
+
+
+
+ @Test
+ public void testGetNewGroupName() {
+ ComponentInstanceBusinessLogic testSubject;String oldPrefix = "";
+ String newNormailzedPrefix = "";
+ String qualifiedGroupInstanceName = "";
+ String result;
+
+ // test 1
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getNewGroupName", new Object[]{oldPrefix, newNormailzedPrefix, qualifiedGroupInstanceName});
+ }
+
+
+ @Test
+ public void testUpdateComponentInstanceMetadata_3() {
+ ComponentInstanceBusinessLogic testSubject;
+ createInstances();
+ ComponentInstance newComponentInstance = null;
+ ComponentInstance result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "updateComponentInstanceMetadata", new Object[]{toInstance, toInstance});
+ }
+
+
+ @Test
+ public void testDeleteComponentInstance() {
+ ComponentInstanceBusinessLogic testSubject;String containerComponentParam = "";
+ String containerComponentId = "";
+ String componentInstanceId = "";
+ String userId = user.getUserId();
+ Either<ComponentInstance,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.deleteComponentInstance(containerComponentParam, containerComponentId, componentInstanceId, userId);
+ }
+
+
+ @Test
+ public void testDeleteForwardingPaths() {
+ ComponentInstanceBusinessLogic testSubject;
+ createService();
+ String serviceId = service.getUniqueId();
+ List<String> pathIdsToDelete = new ArrayList<>();
+ Either<Set<String>,ResponseFormat> result;
+
+ // Either<Service, StorageOperationStatus> storageStatus = toscaOperationFacade.getToscaElement(serviceId);
+ when(toscaOperationFacade.getToscaElement(serviceId)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "deleteForwardingPaths", new Object[]{serviceId, pathIdsToDelete});
+ }
+
+
+ @Test
+ public void testAssociateRIToRIOnGraph() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ RequirementCapabilityRelDef requirementDef = new RequirementCapabilityRelDef();
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ boolean inTransaction = false;
+ Either<RequirementCapabilityRelDef,ResponseFormat> result;
+
+
+
+ Either<RequirementCapabilityRelDef, StorageOperationStatus> getResourceResult = Either.left(requirementDef);
+ when(toscaOperationFacade.associateResourceInstances(resource.getUniqueId(), requirementDef)).thenReturn(getResourceResult);
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.associateRIToRIOnGraph(resource, requirementDef, componentTypeEnum, inTransaction);
+ }
+
+
+
+ @Test
+ public void testFindRelation() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ String relationId = "";
+ List<RequirementCapabilityRelDef> requirementCapabilityRelations = new ArrayList<>();
+ RequirementCapabilityRelDef result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "findRelation", new Object[]{relationId, requirementCapabilityRelations});
+ }
+
+
+ @Test
+ public void testIsNetworkRoleServiceProperty() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentInstanceProperty property = new ComponentInstanceProperty();
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ boolean result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "isNetworkRoleServiceProperty", new Object[]{property, componentTypeEnum});
+ }
+
+
+ @Test
+ public void testConcatServiceNameToVLINetworkRolePropertiesValues() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ToscaOperationFacade toscaOperationFacade = new ToscaOperationFacade();
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ String componentId = "";
+ String resourceInstanceId = "";
+ List<ComponentInstanceProperty> properties = new ArrayList<>();
+ StorageOperationStatus result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "concatServiceNameToVLINetworkRolePropertiesValues", new Object[]{toscaOperationFacade, componentTypeEnum, componentId, resourceInstanceId, properties});
+ }
+
+
+ @Test
+ public void testCreateOrUpdatePropertiesValues() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createResource();
+ String componentId = resource.getUniqueId();
+ String resourceInstanceId = "";
+ List<ComponentInstanceProperty> properties = new ArrayList<>();
+ String userId = user.getUserId();
+ Either<List<ComponentInstanceProperty>,ResponseFormat> result;
+
+
+ when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseAll)).thenReturn(Either.left(resource));
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.createOrUpdatePropertiesValues(componentTypeEnum, componentId, resourceInstanceId, properties, userId);
+
+ componentTypeEnum =null;
+ result=testSubject.createOrUpdatePropertiesValues(componentTypeEnum, componentId, resourceInstanceId, properties, userId);
+
+// when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseAll)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ result=testSubject.createOrUpdatePropertiesValues(componentTypeEnum, componentId, resourceInstanceId, properties, userId);
+
+ }
+
+
+ @Test
+ public void testUpdateCapabilityPropertyOnContainerComponent() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentInstanceProperty property = new ComponentInstanceProperty();
+ String newValue = "";
+ createResource();
+ createInstances();
+ String capabilityType = "";
+ String capabilityName = "";
+ ResponseFormat result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "updateCapabilityPropertyOnContainerComponent", new Object[]{property, newValue, resource, toInstance, capabilityType, capabilityName});
+ }
+
+
+
+ @Test
+ public void testCreateOrUpdateInstanceInputValues() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createResource();
+ String componentId = resource.getUniqueId();
+ String resourceInstanceId = "";
+ List<ComponentInstanceInput> inputs = new ArrayList<>();
+ String userId = user.getUserId();
+ Either<List<ComponentInstanceInput>,ResponseFormat> result;
+
+ when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseAll)).thenReturn(Either.left(resource));
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.createOrUpdateInstanceInputValues(componentTypeEnum, componentId, resourceInstanceId, inputs, userId);
+ componentTypeEnum =null;
+ result=testSubject.createOrUpdateInstanceInputValues(componentTypeEnum, componentId, resourceInstanceId, inputs, userId);
+
+
+// when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseAll)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ result=testSubject.createOrUpdateInstanceInputValues(componentTypeEnum, componentId, resourceInstanceId, inputs, userId);
+
+ }
+
+
+ @Test
+ public void testCreateOrUpdateGroupInstancePropertyValue() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createResource();
+ String componentId = resource.getUniqueId();
+ String resourceInstanceId = "";
+ String groupInstanceId = "";
+ ComponentInstanceProperty property = new ComponentInstanceProperty();
+ String userId = user.getUserId();
+ Either<ComponentInstanceProperty,ResponseFormat> result;
+
+
+ when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseMetadata)).thenReturn(Either.left(resource));
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.createOrUpdateGroupInstancePropertyValue(componentTypeEnum, componentId, resourceInstanceId, groupInstanceId, property, userId);
+ componentTypeEnum = null;
+ result=testSubject.createOrUpdateGroupInstancePropertyValue(componentTypeEnum, componentId, resourceInstanceId, groupInstanceId, property, userId);
+
+// when(toscaOperationFacade.getToscaElement(componentId, JsonParseFlagEnum.ParseMetadata)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ result=testSubject.createOrUpdateGroupInstancePropertyValue(componentTypeEnum, componentId, resourceInstanceId, groupInstanceId, property, userId);
+ }
+
+
+ @Test
+ public void testCreateOrUpdateInputValue() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ String componentId = resource.getUniqueId();
+ String resourceInstanceId = resource.getUniqueId();
+ ComponentInstanceInput inputProperty = new ComponentInstanceInput();
+ String userId = user.getUserId();
+ Either<ComponentInstanceInput,ResponseFormat> result;
+
+
+ Either<Component, StorageOperationStatus> getResourceResult = Either.left(resource);
+ when(toscaOperationFacade.getToscaElement(resource.getUniqueId(), JsonParseFlagEnum.ParseMetadata)).thenReturn(getResourceResult);
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.createOrUpdateInputValue(componentTypeEnum, componentId, resourceInstanceId, inputProperty, userId);
+
+ componentTypeEnum = null;
+ result=testSubject.createOrUpdateInputValue(componentTypeEnum, componentId, resourceInstanceId, inputProperty, userId);
+
+// when(toscaOperationFacade.getToscaElement(resource.getUniqueId(), JsonParseFlagEnum.ParseMetadata)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ result=testSubject.createOrUpdateInputValue(componentTypeEnum, componentId, resourceInstanceId, inputProperty, userId);
+ }
+
+
+ @Test
+ public void testDeletePropertyValue() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createService();
+ String serviceId = service.getUniqueId();
+ String resourceInstanceId = "";
+ String propertyValueId = "";
+ String userId = user.getUserId();
+ Either<ComponentInstanceProperty,ResponseFormat> result;
+
+ when(toscaOperationFacade.getToscaElement(serviceId, JsonParseFlagEnum.ParseMetadata)).thenReturn(Either.left(service));
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.deletePropertyValue(componentTypeEnum, serviceId, resourceInstanceId, propertyValueId, userId);
+ componentTypeEnum= null;
+ result=testSubject.deletePropertyValue(componentTypeEnum, serviceId, resourceInstanceId, propertyValueId, userId);
+
+// when(toscaOperationFacade.getToscaElement(serviceId, JsonParseFlagEnum.ParseMetadata)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ result=testSubject.deletePropertyValue(componentTypeEnum, serviceId, resourceInstanceId, propertyValueId, userId);
+ }
+
+
+ @Test
+ public void testGetAndValidateOriginComponentOfComponentInstance() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum containerComponentType = ComponentTypeEnum.RESOURCE;
+ createResource();
+ createInstances();
+ Either<Component,ResponseFormat> result;
+
+ when(toscaOperationFacade.getToscaFullElement(toInstance.getComponentUid())).thenReturn(Either.left(resource));
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getAndValidateOriginComponentOfComponentInstance", new Object[]{containerComponentType, toInstance});
+ }
+
+
+
+
+
+ @Test
+ public void testGetComponentParametersViewForForwardingPath() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentParametersView result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getComponentParametersViewForForwardingPath");
+ }
+
+
+ @Test
+ public void testChangeComponentInstanceVersion() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ String containerComponentParam = "";
+ String containerComponentId = "";
+ String componentInstanceId = "";
+ String userId = user.getUserId();
+ createInstances();
+ ComponentInstance newComponentInstance =toInstance;
+ Either<ComponentInstance,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=testSubject.changeComponentInstanceVersion(containerComponentParam, containerComponentId, componentInstanceId, userId, newComponentInstance);
+ newComponentInstance = null;
+ testSubject=createTestSubject();
+ result=testSubject.changeComponentInstanceVersion(containerComponentParam, containerComponentId, componentInstanceId, userId, newComponentInstance);
+
+ }
+
+ @Ignore("test failing skipping for now")
+ @Test
+ public void testValidateInstanceNameUniquenessUponUpdate() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ createInstances();
+ String newInstanceName = toInstance.getName();
+ Boolean result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "validateInstanceNameUniquenessUponUpdate", new Object[]{resource, toInstance, newInstanceName});
+ }
+
+
+ @Test
+ public void testGetResourceInstanceById() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ createResource();
+ String instanceId = "";
+ Either<ComponentInstance,StorageOperationStatus> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "getResourceInstanceById", new Object[]{resource, instanceId});
+ }
+
+ @Ignore("test failing skipping for now")
+ @Test
+ public void testBuildComponentInstance() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ createInstances();
+ ComponentInstance origInstanceForUpdate = null;
+ ComponentInstance result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "buildComponentInstance", new Object[]{toInstance, toInstance});
+ }
+
+
+
+
+
+ @Test
+ public void testFindCapabilityOfInstance() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;String componentId = "";
+ String instanceId = "";
+ String capabilityType = "";
+ String capabilityName = "";
+ String ownerId = "";
+ Map<String,List<CapabilityDefinition>> instanceCapabilities = new HashMap<>();
+ Either<List<ComponentInstanceProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "findCapabilityOfInstance", new Object[]{componentId, instanceId, capabilityType, capabilityName, ownerId, instanceCapabilities});
+ }
+
+
+ @Test
+ public void testFetchComponentInstanceCapabilityProperties() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;String componentId = "";
+ String instanceId = "";
+ String capabilityType = "";
+ String capabilityName = "";
+ String ownerId = "";
+ Either<List<ComponentInstanceProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "fetchComponentInstanceCapabilityProperties", new Object[]{componentId, instanceId, capabilityType, capabilityName, ownerId});
+ }
+
+
+ @Test
+ public void testUpdateCapabilityPropertyOnContainerComponent_1() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentInstanceProperty property = new ComponentInstanceProperty();
+ String newValue = "";
+ createResource();
+ createInstances();
+ String capabilityType = "";
+ String capabilityName = "";
+ String ownerId = "";
+ ResponseFormat result;
+
+ // default test
+ testSubject=createTestSubject();
+ result=Deencapsulation.invoke(testSubject, "updateCapabilityPropertyOnContainerComponent", new Object[]{property, newValue, resource, toInstance, capabilityType, capabilityName, ownerId});
+ }
+
+
+ @Test
+ public void testUpdateInstanceCapabilityProperties() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createResource();
+ String containerComponentId = resource.getUniqueId();
+ String componentInstanceUniqueId = "";
+ String capabilityType = "";
+ String capabilityName = "";
+ String ownerId = "";
+ List<ComponentInstanceProperty> properties = new ArrayList<>();
+ String userId = user.getUserId();
+ Either<List<ComponentInstanceProperty>,ResponseFormat> result;
+
+
+ when(toscaOperationFacade.getToscaFullElement(containerComponentId)).thenReturn(Either.left(resource));
+
+
+
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.updateInstanceCapabilityProperties(componentTypeEnum, containerComponentId, componentInstanceUniqueId, capabilityType, capabilityName, ownerId, properties, userId);
+ when(toscaOperationFacade.getToscaFullElement(containerComponentId)).thenReturn(Either.right(StorageOperationStatus.ARTIFACT_NOT_FOUND));
+ result=testSubject.updateInstanceCapabilityProperties(componentTypeEnum, containerComponentId, componentInstanceUniqueId, capabilityType, capabilityName, ownerId, properties, userId);
+ componentTypeEnum = null;
+ result=testSubject.updateInstanceCapabilityProperties(componentTypeEnum, containerComponentId, componentInstanceUniqueId, capabilityType, capabilityName, ownerId, properties, userId);
+
+
+ }
+
+
+ @Test
+ public void testUpdateInstanceCapabilityProperties_1() throws Exception {
+ ComponentInstanceBusinessLogic testSubject;
+ ComponentTypeEnum componentTypeEnum = ComponentTypeEnum.RESOURCE;
+ createResource();
+ String containerComponentId = resource.getUniqueId();
+ String componentInstanceUniqueId = "";
+ String capabilityType = "";
+ String capabilityName = "";
+ List<ComponentInstanceProperty> properties = new ArrayList<>();
+ String userId = user.getUserId();
+ Either<List<ComponentInstanceProperty>,ResponseFormat> result;
+
+
+ when(toscaOperationFacade.getToscaFullElement(containerComponentId)).thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+ // test 1
+ testSubject=createTestSubject();
+ result=testSubject.updateInstanceCapabilityProperties(componentTypeEnum, containerComponentId, componentInstanceUniqueId, capabilityType, capabilityName, properties, userId);
+ when(toscaOperationFacade.getToscaFullElement(containerComponentId)).thenReturn(Either.left(resource));
+ result=testSubject.updateInstanceCapabilityProperties(componentTypeEnum, containerComponentId, componentInstanceUniqueId, capabilityType, capabilityName, properties, userId);
+ }
}
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ConsumerBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ConsumerBusinessLogicTest.java
new file mode 100644
index 0000000000..db95ee8827
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ConsumerBusinessLogicTest.java
@@ -0,0 +1,83 @@
+package org.openecomp.sdc.be.components.impl;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ConsumerDefinition;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+
+public class ConsumerBusinessLogicTest {
+
+ private ConsumerBusinessLogic createTestSubject() {
+ return new ConsumerBusinessLogic();
+ }
+
+
+ @Test
+ public void testCreateConsumer() throws Exception {
+ ConsumerBusinessLogic testSubject;
+ User user = null;
+ ConsumerDefinition consumer = null;
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+
+
+ @Test
+ public void testGetConsumer() throws Exception {
+ ConsumerBusinessLogic testSubject;
+ String consumerId = "";
+ User user = null;
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ user = null;
+ }
+
+
+ @Test
+ public void testGetConsumer_1() throws Exception {
+ ConsumerBusinessLogic testSubject;
+ String consumerId = "";
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteConsumer() throws Exception {
+ ConsumerBusinessLogic testSubject;
+ String consumerId = "";
+ User user = null;
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateConsumer() throws Exception {
+ ConsumerBusinessLogic testSubject;
+ ConsumerDefinition consumer = null;
+ User modifier = null;
+ boolean isCreateRequest = false;
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ElementBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ElementBusinessLogicTest.java
new file mode 100644
index 0000000000..bcde49295e
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ElementBusinessLogicTest.java
@@ -0,0 +1,332 @@
+package org.openecomp.sdc.be.components.impl;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.dao.api.ActionStatus;
+import org.openecomp.sdc.be.datatypes.enums.FilterKeyEnum;
+import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
+import org.openecomp.sdc.be.model.ArtifactType;
+import org.openecomp.sdc.be.model.Component;
+import org.openecomp.sdc.be.model.PropertyScope;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.be.model.category.CategoryDefinition;
+import org.openecomp.sdc.be.model.category.GroupingDefinition;
+import org.openecomp.sdc.be.model.category.SubCategoryDefinition;
+import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
+import org.openecomp.sdc.be.ui.model.UiCategories;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+
+public class ElementBusinessLogicTest {
+
+ private ElementBusinessLogic createTestSubject() {
+ return new ElementBusinessLogic();
+ }
+
+
+ @Test
+ public void testGetFollowed() throws Exception {
+ ElementBusinessLogic testSubject;
+ User user = null;
+ Either<Map<String, List<? extends Component>>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+
+ @Test
+ public void testGetAllResourceCategories() throws Exception {
+ ElementBusinessLogic testSubject;
+ Either<List<CategoryDefinition>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetAllServiceCategories() throws Exception {
+ ElementBusinessLogic testSubject;
+ Either<List<CategoryDefinition>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testCreateCategory() throws Exception {
+ ElementBusinessLogic testSubject;
+ CategoryDefinition category = null;
+ String componentTypeParamName = "";
+ String userId = "";
+ Either<CategoryDefinition, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ category = null;
+ }
+
+
+ @Test
+ public void testCreateSubCategory() throws Exception {
+ ElementBusinessLogic testSubject;
+ SubCategoryDefinition subCategory = null;
+ String componentTypeParamName = "";
+ String parentCategoryId = "";
+ String userId = "";
+ Either<SubCategoryDefinition, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ subCategory = null;
+ }
+
+
+ @Test
+ public void testCreateGrouping() throws Exception {
+ ElementBusinessLogic testSubject;
+ GroupingDefinition grouping = null;
+ String componentTypeParamName = "";
+ String grandParentCategoryId = "";
+ String parentSubCategoryId = "";
+ String userId = "";
+ Either<GroupingDefinition, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ grouping = null;
+ }
+
+
+ @Test
+ public void testGetAllCategories() throws Exception {
+ ElementBusinessLogic testSubject;
+ String componentType = "";
+ String userId = "";
+ Either<List<CategoryDefinition>, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ userId = null;
+
+ // test 2
+ testSubject = createTestSubject();
+ userId = "";
+ }
+
+
+ @Test
+ public void testGetAllCategories_1() throws Exception {
+ ElementBusinessLogic testSubject;
+ String userId = "";
+ Either<UiCategories, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteCategory() throws Exception {
+ ElementBusinessLogic testSubject;
+ String categoryId = "";
+ String componentTypeParamName = "";
+ String userId = "";
+ Either<CategoryDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteSubCategory() throws Exception {
+ ElementBusinessLogic testSubject;
+ String grandParentCategoryId = "";
+ String parentSubCategoryId = "";
+ String componentTypeParamName = "";
+ String userId = "";
+ Either<SubCategoryDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteGrouping() throws Exception {
+ ElementBusinessLogic testSubject;
+ String grandParentCategoryId = "";
+ String parentSubCategoryId = "";
+ String groupingId = "";
+ String componentTypeParamName = "";
+ String userId = "";
+ Either<GroupingDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+
+ @Test
+ public void testGetAllPropertyScopes() throws Exception {
+ ElementBusinessLogic testSubject;
+ String userId = "";
+ Either<List<PropertyScope>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetAllArtifactTypes() throws Exception {
+ ElementBusinessLogic testSubject;
+ String userId = "";
+ Either<List<ArtifactType>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetAllDeploymentArtifactTypes() throws Exception {
+ ElementBusinessLogic testSubject;
+ Either<Map<String, Object>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetDefaultHeatTimeout() throws Exception {
+ ElementBusinessLogic testSubject;
+ Either<Integer, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetCatalogComponents() throws Exception {
+ ElementBusinessLogic testSubject;
+ String userId = "";
+ List<OriginTypeEnum> excludeTypes = null;
+ Either<Map<String, List<? extends Component>>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetFilteredCatalogComponents() throws Exception {
+ ElementBusinessLogic testSubject;
+ String assetType = "";
+ Map<FilterKeyEnum, String> filters = null;
+ String query = "";
+ Either<List<? extends Component>, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ query = null;
+
+ // test 2
+ testSubject = createTestSubject();
+ query = "";
+
+ // test 3
+ testSubject = createTestSubject();
+ filters = null;
+ }
+
+
+
+
+ @Test
+ public void testGetCatalogComponentsByUuidAndAssetType() throws Exception {
+ ElementBusinessLogic testSubject;
+ String assetType = "";
+ String uuid = "";
+ Either<List<? extends Component>, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ assetType = null;
+
+ // test 2
+ testSubject = createTestSubject();
+ assetType = "";
+
+ // test 3
+ testSubject = createTestSubject();
+ assetType = null;
+
+ // test 4
+ testSubject = createTestSubject();
+ assetType = "";
+ }
+
+
+ @Test
+ public void testGetAllComponentTypesParamNames() throws Exception {
+ ElementBusinessLogic testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAllComponentTypesParamNames();
+ }
+
+
+ @Test
+ public void testGetAllSupportedRoles() throws Exception {
+ ElementBusinessLogic testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAllSupportedRoles();
+ }
+
+
+ @Test
+ public void testGetResourceTypesMap() throws Exception {
+ ElementBusinessLogic testSubject;
+ Either<Map<String, String>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+
+
+ @Test
+ public void testGetFilteredResouces() throws Exception {
+ ElementBusinessLogic testSubject;
+ Map<FilterKeyEnum, String> filters = null;
+ boolean inTransaction = false;
+ Either<List<Component>, StorageOperationStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/GroupBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/GroupBusinessLogicTest.java
new file mode 100644
index 0000000000..d9ca7b06c2
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/GroupBusinessLogicTest.java
@@ -0,0 +1,767 @@
+package org.openecomp.sdc.be.components.impl;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+import org.openecomp.sdc.be.dao.titan.TitanOperationStatus;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.info.ArtifactTemplateInfo;
+import org.openecomp.sdc.be.info.GroupDefinitionInfo;
+import org.openecomp.sdc.be.model.Component;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+import org.openecomp.sdc.be.model.GroupDefinition;
+import org.openecomp.sdc.be.model.GroupInstance;
+import org.openecomp.sdc.be.model.GroupInstanceProperty;
+import org.openecomp.sdc.be.model.GroupProperty;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+import org.openecomp.sdc.be.model.PropertyDefinition.PropertyNames;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import com.google.common.base.Function;
+
+import fj.data.Either;
+
+
+public class GroupBusinessLogicTest {
+
+ private GroupBusinessLogic createTestSubject() {
+ return new GroupBusinessLogic();
+ }
+
+
+ @Test
+ public void testGetComponentTypeForResponse() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testVerifyArtifactsBelongsToComponent() throws Exception {
+ GroupBusinessLogic testSubject;Component component = null;
+ List<String> artifacts = null;
+ String context = "";
+ Either<Boolean,ResponseFormat> result;
+
+ // test 1
+ testSubject=createTestSubject();artifacts = null;
+
+
+ }
+
+
+ @Test
+ public void testVerifyComponentInstancesAreValidMembers() throws Exception {
+ GroupBusinessLogic testSubject;Component component = null;
+ ComponentTypeEnum componentType = null;
+ String groupName = "";
+ String groupType = "";
+ Map<String,String> groupMembers = null;
+ List<String> memberToscaTypes = null;
+ Either<Boolean,ResponseFormat> result;
+
+ // test 1
+ testSubject=createTestSubject();groupMembers = null;
+
+
+
+ // test 2
+ testSubject=createTestSubject();memberToscaTypes = null;
+
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateGroupMetadata() throws Exception {
+ GroupBusinessLogic testSubject;
+ String componentId = "";
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ GroupDefinition updatedGroup = null;
+ boolean inTransaction = false;
+ boolean shouldLock = false;
+ Either<GroupDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateGroupMetadata() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ GroupDefinition currentGroup = null;
+ GroupDefinition updatedGroup = null;
+ Either<GroupDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateGroup() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ GroupDefinition updatedGroup = null;
+ String currentGroupName = "";
+ Either<GroupDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateGroupProperties() throws Exception {
+ GroupBusinessLogic testSubject;
+ String componentId = "";
+ String groupUniqueId = "";
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ List<GroupProperty> groupPropertiesToUpdate = null;
+ boolean inTransaction = false;
+ Either<List<GroupProperty>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testResetEmptyValueWithDefaults() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupProperty> groupPropertiesToUpdate = null;
+ GroupDefinition originalGroup = null;
+
+
+ // default test
+ }
+
+
+ @Test
+ public void testValidateGroupPropertyAndResetEmptyValue() throws Exception {
+ GroupBusinessLogic testSubject;GroupDefinition originalGroup = null;
+ List<GroupProperty> groupPropertiesToUpdate = null;
+ Either<List<GroupProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidatePropertyBusinessLogic() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupProperty> groupPropertiesToUpdate = null;
+ GroupDefinition originalGroup = null;
+ Either<List<GroupProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testPrepareMapWithOriginalProperties() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupDefinition originalGroup = null;
+ Map<PropertyNames, String> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateOnlyValueChanged() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupProperty> groupPropertiesToUpdate = null;
+ GroupDefinition originalGroup = null;
+ Either<List<GroupProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testIsOnlyGroupPropertyValueChanged() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupProperty groupProperty = null;
+ GroupProperty groupProperty2 = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateGroupMetadata_1() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupDefinition currentGroup = null;
+ GroupDefinition groupUpdate = null;
+ Either<GroupDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateGroupName() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupDefinition currentGroup = null;
+ GroupDefinition groupUpdate = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateGroupName() throws Exception {
+ GroupBusinessLogic testSubject;
+ String currentGroupName = "";
+ String groupUpdateName = "";
+ boolean isforceNameModification = false;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetGroupWithArtifactsById() throws Exception {
+ GroupBusinessLogic testSubject;
+ ComponentTypeEnum componentType = null;
+ String componentId = "";
+ String groupId = "";
+ String userId = "";
+ boolean inTransaction = false;
+ Either<GroupDefinitionInfo, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testFindGroupOnComponent() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ String groupId = "";
+ Either<GroupDefinition, StorageOperationStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateGroupsBeforeUpdate() throws Exception {
+ GroupBusinessLogic testSubject;String componentId = "";
+ String userId = "";
+ ComponentTypeEnum componentType = null;
+ List<GroupDefinition> groups = null;
+ boolean inTransaction = false;
+ Either<org.openecomp.sdc.be.model.Component,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateGroupsInComponentByFunc() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupDefinition> groups = null;
+ Component component = null;
+ Function<GroupDefinition,String> getByParam = null;
+ ResponseFormat result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testGetAsString() throws Exception {
+ GroupBusinessLogic testSubject;
+ List<String> list = null;
+ String result;
+
+ // test 1
+ testSubject = createTestSubject();
+ list = null;
+
+
+ }
+
+
+ @Test
+ public void testUpdateGroupPropertiesValue() throws Exception {
+ GroupBusinessLogic testSubject;String componentId = "";
+ GroupDefinition currentGroup = null;
+ List<GroupProperty> groupPropertyToUpdate = null;
+ boolean inTransaction = false;
+ Either<List<GroupProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateGenerateVfModuleGroupNames() throws Exception {
+ GroupBusinessLogic testSubject;
+ List<ArtifactTemplateInfo> allGroups = null;
+ String resourceSystemName = "";
+ int startGroupCounter = 0;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateGenerateVfModuleGroupName() throws Exception {
+ GroupBusinessLogic testSubject;
+ String resourceSystemName = "";
+ String description = "";
+ int groupCounter = 0;
+ Either<String, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ resourceSystemName = null;
+ description = null;
+
+
+
+ // test 2
+ testSubject = createTestSubject();
+ resourceSystemName = "";
+ description = null;
+
+
+
+ // test 3
+ testSubject = createTestSubject();
+ description = null;
+ resourceSystemName = null;
+
+
+
+ // test 4
+ testSubject = createTestSubject();
+ description = "";
+ resourceSystemName = null;
+
+
+ }
+
+
+ @Test
+ public void testValidateUpdateVfGroupNames() throws Exception {
+ GroupBusinessLogic testSubject;
+ Map<String, GroupDefinition> groups = null;
+ String resourceSystemName = "";
+ Either<Map<String, GroupDefinition>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetNextVfModuleNameCounter() throws Exception {
+ GroupBusinessLogic testSubject;
+ Map<String, GroupDefinition> groups = null;
+ int result;
+
+ // test 1
+ testSubject = createTestSubject();
+ groups = null;
+
+
+ }
+
+
+ @Test
+ public void testGetNextVfModuleNameCounter_1() throws Exception {
+ GroupBusinessLogic testSubject;
+ Collection<GroupDefinition> groups = null;
+ int result;
+
+ // test 1
+ testSubject = createTestSubject();
+ groups = null;
+
+
+ }
+
+
+ @Test
+ public void testValidateUpdateVfGroupNamesOnGraph() throws Exception {
+ GroupBusinessLogic testSubject;
+ List<GroupDefinition> groups = null;
+ Component component = null;
+ boolean inTransaction = false;
+ Either<List<GroupDefinition>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetGroupInstWithArtifactsById() throws Exception {
+ GroupBusinessLogic testSubject;
+ ComponentTypeEnum componentType = null;
+ String componentId = "";
+ String componentInstanceId = "";
+ String groupInstId = "";
+ String userId = "";
+ boolean inTransaction = false;
+ Either<GroupDefinitionInfo, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testFindComponentInstanceAndGroupInstanceOnComponent() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ String componentInstanceId = "";
+ String groupInstId = "";
+ Either<ImmutablePair<ComponentInstance, GroupInstance>, StorageOperationStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetLatestIntProperty() throws Exception {
+ GroupBusinessLogic testSubject;Map<PropertyNames,String> newValues = null;
+ Map<PropertyNames,String> parentValues = null;
+ PropertyNames propertyKey = null;
+ int result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testIsPropertyChanged() throws Exception {
+ GroupBusinessLogic testSubject;Map<PropertyNames,String> newValues = null;
+ Map<PropertyNames,String> parentValues = null;
+ PropertyNames minInstances = null;
+ boolean result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateMinMaxAndInitialCountPropertyLogicVF() throws Exception {
+ GroupBusinessLogic testSubject;Map<PropertyNames,String> newValues = null;
+ Map<PropertyNames,String> parentValues = null;
+ Either<Boolean,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateMinMaxAndInitialCountPropertyLogic() throws Exception {
+ GroupBusinessLogic testSubject;Map<PropertyNames,String> newValues = null;
+ Map<PropertyNames,String> currValues = null;
+ Map<PropertyNames,String> parentValues = null;
+ Either<Boolean,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateValueInRange() throws Exception {
+ GroupBusinessLogic testSubject;ImmutablePair<PropertyNames,String> newValue = null;
+ ImmutablePair<PropertyNames,String> min = null;
+ ImmutablePair<PropertyNames,String> max = null;
+ Either<Boolean,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testParseIntValue() throws Exception {
+ GroupBusinessLogic testSubject;
+ String value = "";
+ PropertyNames propertyName = null;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateGroupInstancePropertyValues() throws Exception {
+ GroupBusinessLogic testSubject;
+ String componentId = "";
+ String instanceId = "";
+ GroupInstance oldGroupInstance = null;
+ List<GroupInstanceProperty> newProperties = null;
+ boolean inTransaction = false;
+ Either<GroupInstance, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateReduceGroupInstancePropertiesBeforeUpdate() throws Exception {
+ GroupBusinessLogic testSubject;GroupInstance oldGroupInstance = null;
+ List<GroupInstanceProperty> newProperties = null;
+ Either<List<GroupInstanceProperty>,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testFillValuesAndParentValuesFromExistingProperties() throws Exception {
+ GroupBusinessLogic testSubject;Map<String,GroupInstanceProperty> existingProperties = null;
+ Map<PropertyNames,String> propertyValues = null;
+ Map<PropertyNames,String> parentPropertyValues = null;
+
+
+ // default test
+ }
+
+
+ @Test
+ public void testHandleAndAddProperty() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupInstanceProperty> reducedProperties = null;
+ Map<PropertyNames,String> newPropertyValues = null;
+ GroupInstanceProperty currNewProperty = null;
+ GroupInstanceProperty currExistingProperty = null;
+ Either<Boolean,ResponseFormat> result;
+
+ // default test
+ testSubject=createTestSubject();
+ }
+
+
+ @Test
+ public void testIsUpdatable() throws Exception {
+ GroupBusinessLogic testSubject;
+ PropertyNames updatablePropertyName = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testAddPropertyUpdatedValues() throws Exception {
+ GroupBusinessLogic testSubject;List<GroupInstanceProperty> reducedProperties = null;
+ PropertyNames propertyName = null;
+ Map<PropertyNames,String> newPropertyValues = null;
+ GroupInstanceProperty newProperty = null;
+ GroupInstanceProperty existingProperty = null;
+
+
+ // default test
+ }
+
+
+ @Test
+ public void testIsEmptyMinInitialCountValue() throws Exception {
+ GroupBusinessLogic testSubject;
+ PropertyNames propertyName = null;
+ String newValue = "";
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testConvertIfUnboundMax() throws Exception {
+ GroupBusinessLogic testSubject;
+ String value = "";
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdatePropertyValue() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupInstanceProperty newProperty = null;
+ GroupInstanceProperty existingProperty = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateImmutableProperty() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupProperty oldProperty = null;
+ GroupProperty newProperty = null;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testCreateGroups() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ List<GroupDefinition> groupDefinitions = null;
+ Either<List<GroupDefinition>, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ groupDefinitions = null;
+
+
+ }
+
+
+ @Test
+ public void testAddGroups() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ List<GroupDefinition> groupDefinitions = null;
+ Either<List<GroupDefinition>, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ groupDefinitions = null;
+
+
+ }
+
+
+ @Test
+ public void testDeleteGroups() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ List<GroupDefinition> groupDefinitions = null;
+ Either<List<GroupDefinition>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateGroups() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ ComponentTypeEnum componentType = null;
+ List<GroupDefinition> groupDefinitions = null;
+ Either<List<GroupDefinition>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testHandleGroup() throws Exception {
+ GroupBusinessLogic testSubject;
+ Component component = null;
+ User user = null;
+ ComponentTypeEnum componentType = null;
+ GroupDefinition groupDefinition = null;
+ Map<String, DataTypeDefinition> allDAtaTypes = null;
+ Either<GroupDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testHandleProperty() throws Exception {
+ GroupBusinessLogic testSubject;
+ GroupProperty groupProperty = null;
+ PropertyDefinition prop = null;
+ Integer index = 0;
+ Map<String, DataTypeDefinition> allDataTypes = null;
+ Either<GroupProperty, TitanOperationStatus> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ prop = null;
+
+
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ProductBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ProductBusinessLogicTest.java
new file mode 100644
index 0000000000..cbb5f7b719
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ProductBusinessLogicTest.java
@@ -0,0 +1,384 @@
+package org.openecomp.sdc.be.components.impl;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.math3.stat.descriptive.summary.Product;
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.model.Component;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.be.model.operations.api.ICacheMangerOperation;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingActionEnum;
+import org.openecomp.sdc.be.ui.model.UiComponentDataTransfer;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+
+public class ProductBusinessLogicTest {
+
+ private ProductBusinessLogic createTestSubject() {
+ return new ProductBusinessLogic();
+ }
+
+ @Test
+ public void testValidateProductNameExists() throws Exception {
+ ProductBusinessLogic testSubject;
+ String productName = "";
+ String userId = "";
+ Either<Map<String, Boolean>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+ @Test
+ public void testSetDeploymentArtifactsPlaceHolder() throws Exception {
+ ProductBusinessLogic testSubject;
+ Component component = null;
+ User user = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDeploymentArtifactsPlaceHolder(component, user);
+ }
+
+ @Test
+ public void testDeleteMarkedComponents() throws Exception {
+ ProductBusinessLogic testSubject;
+ Either<List<String>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+ @Test
+ public void testGetComponentInstanceBL() throws Exception {
+ ProductBusinessLogic testSubject;
+ ComponentInstanceBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+ @Test
+ public void testGetComponentInstancesFilteredByPropertiesAndInputs() throws Exception {
+ ProductBusinessLogic testSubject;
+ String componentId = "";
+ ComponentTypeEnum componentTypeEnum = null;
+ String userId = "";
+ String searchText = "";
+ Either<List<ComponentInstance>, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+ @Test
+ public void testGetCacheManagerOperation() throws Exception {
+ ProductBusinessLogic testSubject;
+ ICacheMangerOperation result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+ @Test
+ public void testSetCacheManagerOperation() throws Exception {
+ ProductBusinessLogic testSubject;
+ ICacheMangerOperation cacheManagerOperation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCacheManagerOperation(cacheManagerOperation);
+ }
+
+ @Test
+ public void testGetUiComponentDataTransferByComponentId() throws Exception {
+ ProductBusinessLogic testSubject;
+ String componentId = "";
+ List<String> dataParamsToReturn = null;
+ Either<UiComponentDataTransfer, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testCreateProduct() throws Exception {
+ ProductBusinessLogic testSubject;
+ Product product = null;
+ User user = null;
+ Either<Product, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ product = null;
+
+ }
+
+
+ @Test
+ public void testCheckUnupdatableProductFields() throws Exception {
+ ProductBusinessLogic testSubject;
+ Product product = null;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateProductBeforeCreate() throws Exception {
+ ProductBusinessLogic testSubject;
+ Product product = null;
+ User user = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Product, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateProductFieldsBeforeCreate() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateProductContactsList() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateGrouping() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetProduct() throws Exception {
+ ProductBusinessLogic testSubject;
+ String productId = "";
+ User user = null;
+ Either<Product, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteProduct() throws Exception {
+ ProductBusinessLogic testSubject;
+ String productId = "";
+ User user = null;
+ Either<Product, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateProductFullNameAndCleanup() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateProductNameAndCleanup() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateTagsListAndRemoveDuplicates() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product product = null;
+ String oldProductName = "";
+ AuditingActionEnum actionEnum = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateProductMetadata() throws Exception {
+ ProductBusinessLogic testSubject;
+ String productId = "";
+ Product updatedProduct = null;
+ User user = null;
+ Either<Product, ResponseFormat> result;
+
+ // test 1
+ testSubject = createTestSubject();
+ updatedProduct = null;
+ }
+
+
+ @Test
+ public void testValidateAndUpdateProductMetadata() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Product, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateProductName() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateFullName() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateCategory() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateContactList() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateAndUpdateTags() throws Exception {
+ ProductBusinessLogic testSubject;
+ User user = null;
+ Product currentProduct = null;
+ Product updatedProduct = null;
+ Either<Boolean, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateTagPattern() throws Exception {
+ ProductBusinessLogic testSubject;
+ String tag = "";
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetProductByNameAndVersion() throws Exception {
+ ProductBusinessLogic testSubject;
+ String productName = "";
+ String productVersion = "";
+ String userId = "";
+ Either<Product, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PolicyPropertyDeceleratorTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PolicyPropertyDeceleratorTest.java
new file mode 100644
index 0000000000..586cc55462
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PolicyPropertyDeceleratorTest.java
@@ -0,0 +1,173 @@
+package org.openecomp.sdc.be.components.property;
+
+import static org.assertj.core.api.Java6Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verifyZeroInteractions;
+import static org.mockito.Mockito.when;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.ArgumentCaptor;
+import org.mockito.Captor;
+import org.mockito.InjectMocks;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+import org.openecomp.sdc.be.components.utils.PolicyDefinitionBuilder;
+import org.openecomp.sdc.be.components.utils.PropertyDataDefinitionBuilder;
+import org.openecomp.sdc.be.components.utils.ResourceBuilder;
+import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
+import org.openecomp.sdc.be.model.ComponentInstancePropInput;
+import org.openecomp.sdc.be.model.InputDefinition;
+import org.openecomp.sdc.be.model.PolicyDefinition;
+import org.openecomp.sdc.be.model.Resource;
+import org.openecomp.sdc.be.model.jsontitan.operations.PolicyOperation;
+import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
+import org.openecomp.sdc.be.model.operations.impl.PropertyOperation;
+
+import fj.data.Either;
+
+
+@RunWith(MockitoJUnitRunner.class)
+//note that testing for most of the common logic is under the ComponentInstancePropertyDeceleratorTest
+public class PolicyPropertyDeceleratorTest extends PropertyDeceleratorTestBase{
+
+ private static final String POLICY_ID = "policyId";
+ private static final String RESOURCE_ID = "resourceId";
+ private static final String INPUT_ID = "inputId";
+ @InjectMocks
+ private PolicyPropertyDeclarator policyPropertyDeclarator;
+ @Mock
+ private PolicyOperation policyOperation;
+ @Mock
+ private PropertyOperation propertyOperation;
+ @Captor
+ private ArgumentCaptor<List<PropertyDataDefinition>> updatedPropsCapture;
+ private Resource resource;
+ private InputDefinition input;
+
+ @Override
+ @Before
+ public void setUp() throws Exception {
+ super.setUp();
+ resource = createResourceWithPolicy();
+ input = new InputDefinition();
+ input.setUniqueId(INPUT_ID);
+ input.setName(INPUT_ID);
+ input.setValue("value");
+ }
+
+ @Test
+ public void testDeclarePropertiesAsInputs_policyNotExist() {
+ Either<List<InputDefinition>, StorageOperationStatus> declareResult = policyPropertyDeclarator.declarePropertiesAsInputs(resource, "nonExistingPolicy", Collections.emptyList());
+ assertThat(declareResult.right().value()).isEqualTo(StorageOperationStatus.NOT_FOUND);
+ verifyZeroInteractions(policyOperation);
+ }
+
+ @Test
+ public void testDeclarePropertiesAsInputs_failedToUpdateProperties() {
+ when(policyOperation.updatePolicyProperties(eq(resource), eq(POLICY_ID), updatedPropsCapture.capture())).thenReturn(StorageOperationStatus.GENERAL_ERROR);
+ Either<List<InputDefinition>, StorageOperationStatus> declareResult = policyPropertyDeclarator.declarePropertiesAsInputs(resource, POLICY_ID, Collections.emptyList());
+ assertThat(declareResult.right().value()).isEqualTo(StorageOperationStatus.GENERAL_ERROR);
+ }
+
+ @Test
+ public void testDeclarePropertiesAsInputs() {
+ List<PropertyDataDefinition> properties = Arrays.asList(prop1, prop2);
+ List<ComponentInstancePropInput> propsToDeclare = createInstancePropInputList(properties);
+ when(policyOperation.updatePolicyProperties(eq(resource), eq(POLICY_ID), updatedPropsCapture.capture())).thenReturn(StorageOperationStatus.OK);
+ Either<List<InputDefinition>, StorageOperationStatus> createdInputs = policyPropertyDeclarator.declarePropertiesAsInputs(resource, POLICY_ID, propsToDeclare);
+ List<InputDefinition> inputs = createdInputs.left().value();
+ assertThat(inputs).hasSize(2);
+ verifyInputPropertiesList(inputs, updatedPropsCapture.getValue());
+ //creation of inputs values is part of the DefaultPropertyDecelerator and is tested in the ComponentInstancePropertyDeceleratorTest class
+ }
+
+ @Test
+ public void testUnDeclareProperties_whenComponentHasNoPolicies_returnOk() {
+ Resource resource = new Resource();
+ StorageOperationStatus storageOperationStatus = policyPropertyDeclarator.unDeclarePropertiesAsInputs(resource, input);
+ assertThat(storageOperationStatus).isEqualTo(StorageOperationStatus.OK);
+ verifyZeroInteractions(policyOperation);
+ }
+
+ @Test
+ public void testUnDeclareProperties_whenNoPropertiesFromPolicyMatchInputId_returnOk() {
+ StorageOperationStatus storageOperationStatus = policyPropertyDeclarator.unDeclarePropertiesAsInputs(createResourceWithPolicy(), input);
+ assertThat(storageOperationStatus).isEqualTo(StorageOperationStatus.OK);
+ verifyZeroInteractions(policyOperation);
+ }
+
+ @Test
+ public void whenFailingToUpdateDeclaredProperties_returnErrorStatus() {
+ Resource resource = createResourceWithPolicies(POLICY_ID);
+ PolicyDefinition policyDefinition = resource.getPolicies().get(POLICY_ID);
+ PropertyDataDefinition getInputPropForInput = buildGetInputProperty(INPUT_ID);
+ policyDefinition.setProperties(Collections.singletonList(getInputPropForInput));
+ when(propertyOperation.findDefaultValueFromSecondPosition(Collections.emptyList(), getInputPropForInput.getUniqueId(), getInputPropForInput.getDefaultValue())).thenReturn(Either.left(getInputPropForInput.getDefaultValue()));
+ when(policyOperation.updatePolicyProperties(eq(resource), eq(POLICY_ID), updatedPropsCapture.capture())).thenReturn(StorageOperationStatus.GENERAL_ERROR);
+ StorageOperationStatus storageOperationStatus = policyPropertyDeclarator.unDeclarePropertiesAsInputs(resource, input);
+ assertThat(storageOperationStatus).isEqualTo(StorageOperationStatus.GENERAL_ERROR);
+ }
+
+ @Test
+ public void testUnDeclareProperties_propertiesUpdatedCorrectly() {
+ Resource resource = createResourceWithPolicies(POLICY_ID, "policyId2");
+ PolicyDefinition policyDefinition = resource.getPolicies().get(POLICY_ID);
+ PropertyDataDefinition getInputPropForInput = buildGetInputProperty(INPUT_ID);
+ PropertyDataDefinition someOtherProperty = new PropertyDataDefinitionBuilder().build();
+ policyDefinition.setProperties(Arrays.asList(getInputPropForInput, someOtherProperty));
+
+ when(propertyOperation.findDefaultValueFromSecondPosition(Collections.emptyList(), getInputPropForInput.getUniqueId(), getInputPropForInput.getDefaultValue())).thenReturn(Either.left(getInputPropForInput.getDefaultValue()));
+ when(policyOperation.updatePolicyProperties(eq(resource), eq(POLICY_ID), updatedPropsCapture.capture())).thenReturn(StorageOperationStatus.OK);
+ StorageOperationStatus storageOperationStatus = policyPropertyDeclarator.unDeclarePropertiesAsInputs(resource, input);
+
+ assertThat(storageOperationStatus).isEqualTo(StorageOperationStatus.OK);
+ List<PropertyDataDefinition> updatedProperties = updatedPropsCapture.getValue();
+ assertThat(updatedProperties).hasSize(1);
+ PropertyDataDefinition updatedProperty = updatedProperties.get(0);
+ assertThat(updatedProperty.isGetInputProperty()).isFalse();
+ assertThat(updatedProperty.getValue()).isEmpty();
+ assertThat(updatedProperty.getDefaultValue()).isEqualTo(getInputPropForInput.getDefaultValue());
+ assertThat(updatedProperty.getUniqueId()).isEqualTo(getInputPropForInput.getUniqueId());
+ }
+
+ private Resource createResourceWithPolicy() {
+ return createResourceWithPolicies(POLICY_ID);
+ }
+
+ private Resource createResourceWithPolicies(String ... policies) {
+ List<PolicyDefinition> policiesDef = Stream.of(policies)
+ .map(this::buildPolicy)
+ .collect(Collectors.toList());
+
+ return new ResourceBuilder()
+ .setUniqueId(RESOURCE_ID)
+ .setPolicies(policiesDef)
+ .build();
+ }
+
+ private PolicyDefinition buildPolicy(String policyId) {
+ return PolicyDefinitionBuilder.create()
+ .setUniqueId(policyId)
+ .setName(policyId)
+ .build();
+ }
+
+ private PropertyDataDefinition buildGetInputProperty(String inputId) {
+ return new PropertyDataDefinitionBuilder()
+ .addGetInputValue(inputId)
+ .setUniqueId(POLICY_ID + "_" + inputId)
+ .setDefaultValue("defaultValue")
+ .setValue(generateGetInputValue(inputId))
+ .build();
+ }
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PropertyDeceleratorTestBase.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PropertyDeceleratorTestBase.java
new file mode 100644
index 0000000000..d6018f2fc7
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/property/PropertyDeceleratorTestBase.java
@@ -0,0 +1,69 @@
+package org.openecomp.sdc.be.components.property;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.openecomp.sdc.common.api.Constants.GET_INPUT;
+
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+import org.junit.Before;
+import org.openecomp.sdc.be.components.utils.PropertyDataDefinitionBuilder;
+import org.openecomp.sdc.be.dao.utils.MapUtil;
+import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
+import org.openecomp.sdc.be.model.ComponentInstancePropInput;
+import org.openecomp.sdc.be.model.ComponentInstanceProperty;
+import org.openecomp.sdc.be.model.InputDefinition;
+
+public class PropertyDeceleratorTestBase {
+
+ static final String INNER_PROP1 = "ecomp_generated_naming";
+ static final String INNER_PROP2 = "naming_policy";
+ PropertyDataDefinition prop1, prop2, complexProperty;
+
+ @Before
+ public void setUp() throws Exception {
+ prop1 = new PropertyDataDefinitionBuilder()
+ .setUniqueId("prop1")
+ .setType("string")
+ .setName("prop1")
+ .setValue("value1")
+ .build();
+
+ prop2 = new PropertyDataDefinitionBuilder()
+ .setUniqueId("prop2")
+ .setType("string")
+ .setSchemaType("string")
+ .setName("prop2")
+ .setValue("[\"a\", \"b\"]")
+ .build();
+
+ complexProperty = new PropertyDataDefinitionBuilder()
+ .setUniqueId("prop3")
+ .setType("org.openecomp.type1")
+ .setName("prop3")
+ .setValue("{\"ecomp_generated_naming\":true\",\"naming_policy\":\"abc\"}")
+ .build();
+
+ }
+
+ List<ComponentInstancePropInput> createInstancePropInputList(List<PropertyDataDefinition> properties) {
+ return properties.stream().map(prop -> new ComponentInstancePropInput(new ComponentInstanceProperty(prop)))
+ .collect(Collectors.toList());
+ }
+
+ void verifyInputPropertiesList(List<InputDefinition> createdInputs, List<PropertyDataDefinition> capturedUpdatedProperties) {
+ Map<String, InputDefinition> propertyIdToCreatedInput = MapUtil.toMap(createdInputs, InputDefinition::getPropertyId);
+ capturedUpdatedProperties.forEach(updatedProperty -> verifyInputPropertiesList(updatedProperty, propertyIdToCreatedInput.get(updatedProperty.getUniqueId())));
+ }
+
+ String generateGetInputValue(String value) {
+ return String.format("{\"%s\":\"%s\"}", GET_INPUT, value);
+ }
+
+ private void verifyInputPropertiesList(PropertyDataDefinition updatedProperty, InputDefinition input) {
+ assertThat(input.getProperties()).hasSize(1);
+ assertThat(new ComponentInstanceProperty(updatedProperty)).isEqualTo(input.getProperties().get(0));
+ }
+
+}
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ArtifactMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ArtifactMetadataTest.java
new file mode 100644
index 0000000000..a2eb5336ed
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ArtifactMetadataTest.java
@@ -0,0 +1,253 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import org.junit.Test;
+
+
+public class ArtifactMetadataTest {
+
+ private ArtifactMetadata createTestSubject() {
+ return new ArtifactMetadata();
+ }
+
+
+ @Test
+ public void testGetArtifactName() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactName();
+ }
+
+
+ @Test
+ public void testSetArtifactName() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactName(artifactName);
+ }
+
+
+ @Test
+ public void testGetArtifactType() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactType();
+ }
+
+
+ @Test
+ public void testSetArtifactType() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactType(artifactType);
+ }
+
+
+ @Test
+ public void testGetArtifactURL() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactURL();
+ }
+
+
+ @Test
+ public void testSetArtifactURL() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactURL = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactURL(artifactURL);
+ }
+
+
+ @Test
+ public void testGetArtifactDescription() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactDescription();
+ }
+
+
+ @Test
+ public void testSetArtifactDescription() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactDescription = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactDescription(artifactDescription);
+ }
+
+
+ @Test
+ public void testGetArtifactTimeout() throws Exception {
+ ArtifactMetadata testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactTimeout();
+ }
+
+
+ @Test
+ public void testSetArtifactTimeout() throws Exception {
+ ArtifactMetadata testSubject;
+ Integer artifactTimeout = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactTimeout(artifactTimeout);
+ }
+
+
+ @Test
+ public void testGetArtifactChecksum() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactChecksum();
+ }
+
+
+ @Test
+ public void testSetArtifactChecksum() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactChecksum = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactChecksum(artifactChecksum);
+ }
+
+
+ @Test
+ public void testGetArtifactUUID() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactUUID();
+ }
+
+
+ @Test
+ public void testSetArtifactUUID() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactUUID(artifactUUID);
+ }
+
+
+ @Test
+ public void testGetArtifactVersion() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactVersion();
+ }
+
+
+ @Test
+ public void testSetArtifactVersion() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactVersion(artifactVersion);
+ }
+
+
+ @Test
+ public void testGetGeneratedFromUUID() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGeneratedFromUUID();
+ }
+
+
+ @Test
+ public void testSetGeneratedFromUUID() throws Exception {
+ ArtifactMetadata testSubject;
+ String generatedFromUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGeneratedFromUUID(generatedFromUUID);
+ }
+
+
+ @Test
+ public void testGetArtifactLabel() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactLabel();
+ }
+
+
+ @Test
+ public void testSetArtifactLabel() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactLabel = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactLabel(artifactLabel);
+ }
+
+
+ @Test
+ public void testGetArtifactGroupType() throws Exception {
+ ArtifactMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactGroupType();
+ }
+
+
+ @Test
+ public void testSetArtifactGroupType() throws Exception {
+ ArtifactMetadata testSubject;
+ String artifactGroupType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactGroupType(artifactGroupType);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductAssetMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductAssetMetadataTest.java
new file mode 100644
index 0000000000..f471e4971a
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductAssetMetadataTest.java
@@ -0,0 +1,123 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ProductAssetMetadataTest {
+
+ private ProductAssetMetadata createTestSubject() {
+ return new ProductAssetMetadata();
+ }
+
+
+ @Test
+ public void testGetLifecycleState() throws Exception {
+ ProductAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLifecycleState();
+ }
+
+
+ @Test
+ public void testSetLifecycleState() throws Exception {
+ ProductAssetMetadata testSubject;
+ String lifecycleState = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLifecycleState(lifecycleState);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterUserId() throws Exception {
+ ProductAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterUserId();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterUserId() throws Exception {
+ ProductAssetMetadata testSubject;
+ String lastUpdaterUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterUserId(lastUpdaterUserId);
+ }
+
+
+ @Test
+ public void testIsActive() throws Exception {
+ ProductAssetMetadata testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isActive();
+ }
+
+
+ @Test
+ public void testSetActive() throws Exception {
+ ProductAssetMetadata testSubject;
+ boolean isActive = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setActive(isActive);
+ }
+
+
+ @Test
+ public void testGetContacts() throws Exception {
+ ProductAssetMetadata testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getContacts();
+ }
+
+
+ @Test
+ public void testSetContacts() throws Exception {
+ ProductAssetMetadata testSubject;
+ List<String> contacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setContacts(contacts);
+ }
+
+
+ @Test
+ public void testGetProductGroupings() throws Exception {
+ ProductAssetMetadata testSubject;
+ List<ProductCategoryGroupMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProductGroupings();
+ }
+
+
+ @Test
+ public void testSetProductGroupings() throws Exception {
+ ProductAssetMetadata testSubject;
+ List<ProductCategoryGroupMetadata> productGroupings = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProductGroupings(productGroupings);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductCategoryGroupMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductCategoryGroupMetadataTest.java
new file mode 100644
index 0000000000..669f58c675
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ProductCategoryGroupMetadataTest.java
@@ -0,0 +1,77 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import org.junit.Test;
+
+
+public class ProductCategoryGroupMetadataTest {
+
+ private ProductCategoryGroupMetadata createTestSubject() {
+ return new ProductCategoryGroupMetadata("", "", "");
+ }
+
+
+ @Test
+ public void testGetCategory() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategory();
+ }
+
+
+ @Test
+ public void testSetCategory() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String category = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategory(category);
+ }
+
+
+ @Test
+ public void testGetSubCategory() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSubCategory();
+ }
+
+
+ @Test
+ public void testSetSubCategory() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String subCategory = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSubCategory(subCategory);
+ }
+
+
+ @Test
+ public void testGetGroup() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroup();
+ }
+
+
+ @Test
+ public void testSetGroup() throws Exception {
+ ProductCategoryGroupMetadata testSubject;
+ String group = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroup(group);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetDetailedMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetDetailedMetadataTest.java
new file mode 100644
index 0000000000..b66341b8dd
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetDetailedMetadataTest.java
@@ -0,0 +1,122 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import java.util.List;
+
+import org.junit.Test;
+
+public class ResourceAssetDetailedMetadataTest {
+
+ private ResourceAssetDetailedMetadata createTestSubject() {
+ return new ResourceAssetDetailedMetadata();
+ }
+
+
+ @Test
+ public void testGetLastUpdaterFullName() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterFullName();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterFullName() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String lastUpdaterFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterFullName(lastUpdaterFullName);
+ }
+
+
+ @Test
+ public void testGetToscaResourceName() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaResourceName();
+ }
+
+
+ @Test
+ public void testSetToscaResourceName() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String toscaResourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaResourceName(toscaResourceName);
+ }
+
+
+ @Test
+ public void testGetResources() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ List<ResourceInstanceMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResources();
+ }
+
+
+ @Test
+ public void testSetResources() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ List<ResourceInstanceMetadata> resources = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResources(resources);
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ List<ArtifactMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ List<ArtifactMetadata> artifactMetaList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifactMetaList);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ResourceAssetDetailedMetadata testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetMetadataTest.java
new file mode 100644
index 0000000000..e1d276c839
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceAssetMetadataTest.java
@@ -0,0 +1,121 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import org.junit.Test;
+
+
+public class ResourceAssetMetadataTest {
+
+ private ResourceAssetMetadata createTestSubject() {
+ return new ResourceAssetMetadata();
+ }
+
+
+ @Test
+ public void testGetCategory() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategory();
+ }
+
+
+ @Test
+ public void testSetCategory() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String category = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategory(category);
+ }
+
+
+ @Test
+ public void testGetSubCategory() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSubCategory();
+ }
+
+
+ @Test
+ public void testSetSubCategory() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String subCategory = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSubCategory(subCategory);
+ }
+
+
+ @Test
+ public void testGetResourceType() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceType();
+ }
+
+
+ @Test
+ public void testSetResourceType() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String resourceType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceType(resourceType);
+ }
+
+
+ @Test
+ public void testGetLifecycleState() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLifecycleState();
+ }
+
+
+ @Test
+ public void testSetLifecycleState() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String lifecycleState = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLifecycleState(lifecycleState);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterUserId() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterUserId();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterUserId() throws Exception {
+ ResourceAssetMetadata testSubject;
+ String lastUpdaterUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterUserId(lastUpdaterUserId);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceInstanceMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceInstanceMetadataTest.java
new file mode 100644
index 0000000000..cd8439e34a
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceInstanceMetadataTest.java
@@ -0,0 +1,167 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ResourceInstanceMetadataTest {
+
+ private ResourceInstanceMetadata createTestSubject() {
+ return new ResourceInstanceMetadata();
+ }
+
+
+ @Test
+ public void testGetResourceInstanceName() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInstanceName();
+ }
+
+
+ @Test
+ public void testSetResourceInstanceName() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resourceInstanceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInstanceName(resourceInstanceName);
+ }
+
+
+ @Test
+ public void testGetResourceName() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceName();
+ }
+
+
+ @Test
+ public void testSetResourceName() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceName(resourceName);
+ }
+
+
+ @Test
+ public void testGetResourceInvariantUUID() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInvariantUUID();
+ }
+
+
+ @Test
+ public void testSetResourceInvariantUUID() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resourceInvariantUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInvariantUUID(resourceInvariantUUID);
+ }
+
+
+ @Test
+ public void testGetResourceVersion() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVersion();
+ }
+
+
+ @Test
+ public void testSetResourceVersion() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resourceVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVersion(resourceVersion);
+ }
+
+
+ @Test
+ public void testGetResoucreType() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResoucreType();
+ }
+
+
+ @Test
+ public void testSetResoucreType() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resoucreType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResoucreType(resoucreType);
+ }
+
+
+ @Test
+ public void testGetResourceUUID() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceUUID();
+ }
+
+
+ @Test
+ public void testSetResourceUUID() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ String resourceUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceUUID(resourceUUID);
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ List<ArtifactMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ ResourceInstanceMetadata testSubject;
+ List<ArtifactMetadata> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetDetailedMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetDetailedMetadataTest.java
new file mode 100644
index 0000000000..7279436d10
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetDetailedMetadataTest.java
@@ -0,0 +1,79 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ServiceAssetDetailedMetadataTest {
+
+ private ServiceAssetDetailedMetadata createTestSubject() {
+ return new ServiceAssetDetailedMetadata();
+ }
+
+
+ @Test
+ public void testGetLastUpdaterFullName() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterFullName();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterFullName() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ String lastUpdaterFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterFullName(lastUpdaterFullName);
+ }
+
+
+ @Test
+ public void testGetResources() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ List<ResourceInstanceMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResources();
+ }
+
+
+ @Test
+ public void testSetResources() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ List<ResourceInstanceMetadata> resources = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResources(resources);
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ List<ArtifactMetadata> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ ServiceAssetDetailedMetadata testSubject;
+ List<ArtifactMetadata> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetMetadataTest.java
new file mode 100644
index 0000000000..f6022263bd
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/externalapi/servlet/representation/ServiceAssetMetadataTest.java
@@ -0,0 +1,99 @@
+package org.openecomp.sdc.be.externalapi.servlet.representation;
+
+import org.junit.Test;
+
+
+public class ServiceAssetMetadataTest {
+
+ private ServiceAssetMetadata createTestSubject() {
+ return new ServiceAssetMetadata();
+ }
+
+
+ @Test
+ public void testGetCategory() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategory();
+ }
+
+
+ @Test
+ public void testSetCategory() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String category = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategory(category);
+ }
+
+
+ @Test
+ public void testGetLifecycleState() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLifecycleState();
+ }
+
+
+ @Test
+ public void testSetLifecycleState() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String lifecycleState = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLifecycleState(lifecycleState);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterUserId() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterUserId();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterUserId() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String lastUpdaterUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterUserId(lastUpdaterUserId);
+ }
+
+
+ @Test
+ public void testGetDistributionStatus() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDistributionStatus();
+ }
+
+
+ @Test
+ public void testSetDistributionStatus() throws Exception {
+ ServiceAssetMetadata testSubject;
+ String distributionStatus = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDistributionStatus(distributionStatus);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactAccessListTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactAccessListTest.java
new file mode 100644
index 0000000000..89be01cbfc
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactAccessListTest.java
@@ -0,0 +1,34 @@
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ArtifactAccessListTest {
+
+ private ArtifactAccessList createTestSubject() {
+ return new ArtifactAccessList(null);
+ }
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ ArtifactAccessList testSubject;
+ List<ArtifactAccessInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ ArtifactAccessList testSubject;
+ List<ArtifactAccessInfo> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfoTest.java
new file mode 100644
index 0000000000..b73874ea3a
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactDefinitionInfoTest.java
@@ -0,0 +1,122 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+
+
+public class ArtifactDefinitionInfoTest {
+
+ private ArtifactDefinitionInfo createTestSubject() {
+ return new ArtifactDefinitionInfo(new ArtifactDefinition());
+ }
+
+
+ @Test
+ public void testGetUniqueId() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUniqueId();
+ }
+
+
+ @Test
+ public void testSetUniqueId() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String uniqueId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUniqueId(uniqueId);
+ }
+
+
+ @Test
+ public void testGetArtifactName() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactName();
+ }
+
+
+ @Test
+ public void testSetArtifactName() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String artifactName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactName(artifactName);
+ }
+
+
+ @Test
+ public void testGetArtifactDisplayName() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactDisplayName();
+ }
+
+
+ @Test
+ public void testSetArtifactDisplayName() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String artifactDisplayName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactDisplayName(artifactDisplayName);
+ }
+
+
+ @Test
+ public void testGetArtifactVersion() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactVersion();
+ }
+
+
+ @Test
+ public void testSetArtifactVersion() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String artifactVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactVersion(artifactVersion);
+ }
+
+
+ @Test
+ public void testGetArtifactUUID() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactUUID();
+ }
+
+
+ @Test
+ public void testSetArtifactUUID() throws Exception {
+ ArtifactDefinitionInfo testSubject;
+ String artifactUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactUUID(artifactUUID);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTemplateInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTemplateInfoTest.java
new file mode 100644
index 0000000000..8b820eaa74
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTemplateInfoTest.java
@@ -0,0 +1,186 @@
+package org.openecomp.sdc.be.info;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ArtifactTemplateInfoTest {
+
+ private ArtifactTemplateInfo createTestSubject() {
+ return new ArtifactTemplateInfo();
+ }
+
+ @Test
+ public void testCtor() throws Exception {
+ new ArtifactTemplateInfo("mock", "mock", "mock", new LinkedList<>());
+ }
+
+ @Test
+ public void testGetType() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetFileName() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFileName();
+ }
+
+
+ @Test
+ public void testSetFileName() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String fileName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFileName(fileName);
+ }
+
+
+ @Test
+ public void testGetEnv() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEnv();
+ }
+
+
+ @Test
+ public void testSetEnv() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String env = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEnv(env);
+ }
+
+
+ @Test
+ public void testGetRelatedArtifactsInfo() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ List<ArtifactTemplateInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelatedArtifactsInfo();
+ }
+
+
+ @Test
+ public void testSetRelatedArtifactsInfo() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ List<ArtifactTemplateInfo> relatedArtifactsInfo = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelatedArtifactsInfo(relatedArtifactsInfo);
+ }
+
+
+ @Test
+ public void testGetGroupName() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroupName();
+ }
+
+
+ @Test
+ public void testSetGroupName() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String groupName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroupName(groupName);
+ }
+
+
+ @Test
+ public void testIsBase() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isBase();
+ }
+
+
+ @Test
+ public void testSetBase() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ boolean isBase = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBase(isBase);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ ArtifactTemplateInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTypesInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTypesInfoTest.java
new file mode 100644
index 0000000000..b129247acc
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ArtifactTypesInfoTest.java
@@ -0,0 +1,14 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class ArtifactTypesInfoTest {
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(ArtifactTypesInfo.class, hasValidGettersAndSetters());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/CreateAndAssotiateInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/CreateAndAssotiateInfoTest.java
new file mode 100644
index 0000000000..e39e5819d3
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/CreateAndAssotiateInfoTest.java
@@ -0,0 +1,57 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
+
+
+public class CreateAndAssotiateInfoTest {
+
+ private CreateAndAssotiateInfo createTestSubject() {
+ return new CreateAndAssotiateInfo(new ComponentInstance(), new RequirementCapabilityRelDef());
+ }
+
+
+ @Test
+ public void testGetNode() throws Exception {
+ CreateAndAssotiateInfo testSubject;
+ ComponentInstance result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode();
+ }
+
+
+ @Test
+ public void testSetNode() throws Exception {
+ CreateAndAssotiateInfo testSubject;
+ ComponentInstance node = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode(node);
+ }
+
+
+ @Test
+ public void testGetAssociate() throws Exception {
+ CreateAndAssotiateInfo testSubject;
+ RequirementCapabilityRelDef result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAssociate();
+ }
+
+
+ @Test
+ public void testSetAssociate() throws Exception {
+ CreateAndAssotiateInfo testSubject;
+ RequirementCapabilityRelDef associate = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAssociate(associate);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusInfoTest.java
new file mode 100644
index 0000000000..329743f4a7
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusInfoTest.java
@@ -0,0 +1,122 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+import org.openecomp.sdc.common.datastructure.ESTimeBasedEvent;
+
+
+public class DistributionStatusInfoTest {
+
+ private DistributionStatusInfo createTestSubject() {
+ return new DistributionStatusInfo(new ESTimeBasedEvent());
+ }
+
+
+ @Test
+ public void testGetOmfComponentID() throws Exception {
+ DistributionStatusInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOmfComponentID();
+ }
+
+
+ @Test
+ public void testSetOmfComponentID() throws Exception {
+ DistributionStatusInfo testSubject;
+ String omfComponentID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOmfComponentID(omfComponentID);
+ }
+
+
+ @Test
+ public void testGetTimestamp() throws Exception {
+ DistributionStatusInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTimestamp();
+ }
+
+
+ @Test
+ public void testSetTimestamp() throws Exception {
+ DistributionStatusInfo testSubject;
+ String timestamp = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTimestamp(timestamp);
+ }
+
+
+ @Test
+ public void testGetUrl() throws Exception {
+ DistributionStatusInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUrl();
+ }
+
+
+ @Test
+ public void testSetUrl() throws Exception {
+ DistributionStatusInfo testSubject;
+ String url = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUrl(url);
+ }
+
+
+ @Test
+ public void testGetStatus() throws Exception {
+ DistributionStatusInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStatus();
+ }
+
+
+ @Test
+ public void testSetStatus() throws Exception {
+ DistributionStatusInfo testSubject;
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStatus(status);
+ }
+
+
+ @Test
+ public void testGetErrorReason() throws Exception {
+ DistributionStatusInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getErrorReason();
+ }
+
+
+ @Test
+ public void testSetErrorReason() throws Exception {
+ DistributionStatusInfo testSubject;
+ String errorReason = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setErrorReason(errorReason);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusListResponseTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusListResponseTest.java
new file mode 100644
index 0000000000..74b8fdbdfa
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusListResponseTest.java
@@ -0,0 +1,13 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+public class DistributionStatusListResponseTest {
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(DistributionStatusListResponse.class, hasValidGettersAndSetters());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusOfServiceListResponceTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusOfServiceListResponceTest.java
new file mode 100644
index 0000000000..e4d3c9bce9
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/DistributionStatusOfServiceListResponceTest.java
@@ -0,0 +1,14 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class DistributionStatusOfServiceListResponceTest {
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(DistributionStatusOfServiceListResponce.class, hasValidGettersAndSetters());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupDefinitionInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupDefinitionInfoTest.java
new file mode 100644
index 0000000000..1fb44a0cb7
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupDefinitionInfoTest.java
@@ -0,0 +1,29 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.openecomp.sdc.be.model.GroupDefinition;
+import org.openecomp.sdc.be.model.GroupInstance;
+
+import com.google.code.beanmatchers.BeanMatchers;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class GroupDefinitionInfoTest {
+ @Test
+ public void testCtor() {
+ new GroupDefinitionInfo(new GroupDefinition());
+ new GroupDefinitionInfo(new GroupInstance());
+ }
+
+ @Ignore("the test fails on null pointer how ever the method does exists.")
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(GroupDefinitionInfo.class, BeanMatchers.hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void testToString() {
+ (new GroupDefinitionInfo()).toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupTemplateInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupTemplateInfoTest.java
new file mode 100644
index 0000000000..03573e13c6
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/GroupTemplateInfoTest.java
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class GroupTemplateInfoTest {
+
+
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(GroupTemplateInfo.class, hasValidGettersAndSetters());
+ }
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceInfoTest.java
new file mode 100644
index 0000000000..e8c9374447
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceInfoTest.java
@@ -0,0 +1,57 @@
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ServiceInfoTest {
+
+ private ServiceInfo createTestSubject() {
+ return new ServiceInfo("", null);
+ }
+
+
+ @Test
+ public void testGetName() throws Exception {
+ ServiceInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+
+ @Test
+ public void testSetName() throws Exception {
+ ServiceInfo testSubject;
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+
+ @Test
+ public void testGetVersions() throws Exception {
+ ServiceInfo testSubject;
+ List<ServiceVersionInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVersions();
+ }
+
+
+ @Test
+ public void testSetVersions() throws Exception {
+ ServiceInfo testSubject;
+ List<ServiceVersionInfo> versions = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersions(versions);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceVersionInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceVersionInfoTest.java
new file mode 100644
index 0000000000..d609f8090f
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServiceVersionInfoTest.java
@@ -0,0 +1,54 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+public class ServiceVersionInfoTest {
+
+ private ServiceVersionInfo createTestSubject() {
+ return new ServiceVersionInfo("", "", "");
+ }
+
+
+ @Test
+ public void testGetVersion() throws Exception {
+ ServiceVersionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVersion();
+ }
+
+
+ @Test
+ public void testSetVersion() throws Exception {
+ ServiceVersionInfo testSubject;
+ String serviceVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersion(serviceVersion);
+ }
+
+
+ @Test
+ public void testGetUrl() throws Exception {
+ ServiceVersionInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUrl();
+ }
+
+
+ @Test
+ public void testSetUrl() throws Exception {
+ ServiceVersionInfo testSubject;
+ String url = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUrl(url);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServicesWrapperTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServicesWrapperTest.java
new file mode 100644
index 0000000000..98860586b0
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServicesWrapperTest.java
@@ -0,0 +1,16 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class ServicesWrapperTest {
+
+
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(ServicesWrapper.class, hasValidGettersAndSetters());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServletJsonResponseTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServletJsonResponseTest.java
new file mode 100644
index 0000000000..f542019980
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ServletJsonResponseTest.java
@@ -0,0 +1,14 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class ServletJsonResponseTest {
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(ServletJsonResponse.class, hasValidGettersAndSetters());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInfoTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInfoTest.java
new file mode 100644
index 0000000000..5642b2f1ef
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInfoTest.java
@@ -0,0 +1,21 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import com.google.code.beanmatchers.BeanMatchers;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class ToscaNodeTypeInfoTest {
+
+
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(ToscaNodeTypeInfo.class, BeanMatchers.hasValidGettersAndSetters());
+ }
+
+ @Test
+ public void allPropertiesShouldBeRepresentedInToStringOutput() {
+ assertThat(ToscaNodeTypeInfo.class, BeanMatchers.hasValidBeanToString());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInterfaceTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInterfaceTest.java
new file mode 100644
index 0000000000..c74ce36a92
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/ToscaNodeTypeInterfaceTest.java
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.be.info;
+
+import org.junit.Test;
+
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+
+public class ToscaNodeTypeInterfaceTest {
+
+
+ @Test
+ public void shouldHaveValidGettersAndSetters() {
+ assertThat(ToscaNodeTypeInterface.class, hasValidGettersAndSetters());
+ }
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AdditionalInformationServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AdditionalInformationServletTest.java
new file mode 100644
index 0000000000..dbb1f59f62
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AdditionalInformationServletTest.java
@@ -0,0 +1,167 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+
+public class AdditionalInformationServletTest {
+
+ private AdditionalInformationServlet createTestSubject() {
+ return new AdditionalInformationServlet();
+ }
+
+
+ @Test
+ public void testCreateResourceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userUserId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testCreateServiceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String serviceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userUserId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateResourceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String resourceId = "";
+ String labelId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateServiceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String serviceId = "";
+ String labelId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateResourceAdditionalInformationLabel_1() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String resourceId = "";
+ String labelId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteServiceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String serviceId = "";
+ String labelId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetResourceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String resourceId = "";
+ String labelId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetServiceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String serviceId = "";
+ String labelId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetAllResourceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String resourceId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetAllServiceAdditionalInformationLabel() throws Exception {
+ AdditionalInformationServlet testSubject;
+ String serviceId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ArtifactServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ArtifactServletTest.java
new file mode 100644
index 0000000000..e546fcca55
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ArtifactServletTest.java
@@ -0,0 +1,337 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+
+public class ArtifactServletTest {
+
+ private ArtifactServlet createTestSubject() {
+ return new ArtifactServlet();
+ }
+
+
+ @Test
+ public void testLoadArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testLoadInformationArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateInformationArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateApiArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String origMd5 = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteApiArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String origMd5 = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteInformationalArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDownloadServiceArtifactBase64() throws Exception {
+ ArtifactServlet testSubject;
+ String serviceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDownloadResourceArtifactBase64() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDownloadResourceInstanceArtifactBase64() throws Exception {
+ ArtifactServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testLoadArtifactToInterface() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String interfaceType = "";
+ String operation = "";
+ String userId = "";
+ String origMd5 = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteArtifactToInterface() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String interfaceType = "";
+ String operation = "";
+ String artifactId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateArtifactToInterface() throws Exception {
+ ArtifactServlet testSubject;
+ String resourceId = "";
+ String interfaceType = "";
+ String operation = "";
+ String artifactId = "";
+ String userId = "";
+ String origMd5 = "";
+ HttpServletRequest request = null;
+ String data = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateRIArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateComponentInstanceArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String userId = "";
+ String origMd5 = "";
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testLoadComponentInstanceArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String userId = "";
+ String origMd5 = "";
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteComponentInstanceArtifact() throws Exception {
+ ArtifactServlet testSubject;
+ String userId = "";
+ String origMd5 = "";
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String artifactId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetComponentArtifacts() throws Exception {
+ ArtifactServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String artifactGroupType = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetComponentInstanceArtifacts() throws Exception {
+ ArtifactServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String componentInstanceId = "";
+ String artifactGroupType = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AttributeServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AttributeServletTest.java
new file mode 100644
index 0000000000..692158b881
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/AttributeServletTest.java
@@ -0,0 +1,71 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import com.google.common.base.Equivalence.Wrapper;
+
+public class AttributeServletTest {
+
+ private AttributeServlet createTestSubject() {
+ return new AttributeServlet();
+ }
+
+
+ @Test
+ public void testCreateAttribute() throws Exception {
+ AttributeServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateAttribute() throws Exception {
+ AttributeServlet testSubject;
+ String resourceId = "";
+ String attributeId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteAttribute() throws Exception {
+ AttributeServlet testSubject;
+ String resourceId = "";
+ String attributeId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testBuildAttributeFromString() throws Exception {
+ AttributeServlet testSubject;String data = "";
+ Wrapper<PropertyDefinition> attributesWrapper = null;
+ Wrapper<ResponseFormat> errorWrapper = null;
+
+
+ // default test
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigMgrServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigMgrServletTest.java
new file mode 100644
index 0000000000..4c7caa63e6
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigMgrServletTest.java
@@ -0,0 +1,82 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.junit.Test;
+
+import com.datastax.driver.core.Configuration;
+
+public class ConfigMgrServletTest {
+
+ private ConfigMgrServlet createTestSubject() {
+ return new ConfigMgrServlet();
+ }
+
+
+ @Test
+ public void testGetConfig() throws Exception {
+ ConfigMgrServlet testSubject;
+ HttpServletRequest request = null;
+ String type = "";
+ String result;
+
+ // test 1
+ testSubject = createTestSubject();
+ type = null;
+
+
+ // test 2
+ testSubject = createTestSubject();
+ type = "";
+
+ // test 3
+ testSubject = createTestSubject();
+ type = "configuration";
+ }
+
+
+ @Test
+ public void testSetConfig1() throws Exception {
+ ConfigMgrServlet testSubject;
+ HttpServletRequest request = null;
+ Configuration configuration = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testSetConfig2() throws Exception {
+ ConfigMgrServlet testSubject;
+ HttpServletRequest request = null;
+ Configuration configuration = null;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testSetConfig3() throws Exception {
+ ConfigMgrServlet testSubject;
+ HttpServletRequest request = null;
+ Configuration configuration = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testSetConfig4() throws Exception {
+ ConfigMgrServlet testSubject;
+ HttpServletRequest request = null;
+ Configuration configuration = null;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigServletTest.java
new file mode 100644
index 0000000000..2593474f2b
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConfigServletTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.junit.Test;
+
+public class ConfigServletTest {
+
+ private ConfigServlet createTestSubject() {
+ return new ConfigServlet();
+ }
+
+
+ @Test
+ public void testGetConfig() throws Exception {
+ ConfigServlet testSubject;
+ HttpServletRequest request = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConsumerServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConsumerServletTest.java
new file mode 100644
index 0000000000..14b34a206e
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ConsumerServletTest.java
@@ -0,0 +1,84 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.components.impl.ConsumerBusinessLogic;
+import org.openecomp.sdc.be.model.ConsumerDefinition;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingActionEnum;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+public class ConsumerServletTest {
+
+ private ConsumerServlet createTestSubject() {
+ return new ConsumerServlet();
+ }
+
+
+ @Test
+ public void testCreateConsumer() throws Exception {
+ ConsumerServlet testSubject;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetConsumer() throws Exception {
+ ConsumerServlet testSubject;
+ String consumerId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteConsumer() throws Exception {
+ ConsumerServlet testSubject;
+ String consumerId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetConsumerBL() throws Exception {
+ ConsumerServlet testSubject;
+ ServletContext context = null;
+ ConsumerBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testConvertJsonToObject() throws Exception {
+ ConsumerServlet testSubject;
+ String data = "";
+ User user = null;
+ AuditingActionEnum actionEnum = null;
+ Either<ConsumerDefinition, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java
new file mode 100644
index 0000000000..930fe88339
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java
@@ -0,0 +1,45 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+
+public class CsarBuildServletTest {
+
+ private CsarBuildServlet createTestSubject() {
+ return new CsarBuildServlet();
+ }
+
+
+ @Test
+ public void testGetDefaultTemplate() throws Exception {
+ CsarBuildServlet testSubject;
+ HttpServletRequest request = null;
+ String serviceName = "";
+ String serviceVersion = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultTemplate(request, serviceName, serviceVersion);
+ }
+
+
+ @Test
+ public void testGetToscaCsarTemplate() throws Exception {
+ CsarBuildServlet testSubject;
+ HttpServletRequest request = null;
+ String serviceName = "";
+ String serviceVersion = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaCsarTemplate(request, serviceName, serviceVersion);
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/DistributionServiceServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/DistributionServiceServletTest.java
new file mode 100644
index 0000000000..d022faabcd
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/DistributionServiceServletTest.java
@@ -0,0 +1,62 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.components.impl.DistributionMonitoringBusinessLogic;
+
+public class DistributionServiceServletTest {
+
+ private DistributionServiceServlet createTestSubject() {
+ return new DistributionServiceServlet();
+ }
+
+
+ @Test
+ public void testGetServiceById() throws Exception {
+ DistributionServiceServlet testSubject;
+ String serviceUUID = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetListOfDistributionStatuses() throws Exception {
+ DistributionServiceServlet testSubject;
+ String did = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testInit() throws Exception {
+ DistributionServiceServlet testSubject;
+ HttpServletRequest request = null;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetDistributionBL() throws Exception {
+ DistributionServiceServlet testSubject;
+ ServletContext context = null;
+ DistributionMonitoringBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ElementServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ElementServletTest.java
new file mode 100644
index 0000000000..31068ccd17
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ElementServletTest.java
@@ -0,0 +1,243 @@
+package org.openecomp.sdc.be.servlets;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
+
+public class ElementServletTest {
+
+ private ElementServlet createTestSubject() {
+ return new ElementServlet();
+ }
+
+
+ @Test
+ public void testGetComponentCategories() throws Exception {
+ ElementServlet testSubject;
+ String componentType = "";
+ String userId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetAllCategories() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testCreateComponentCategory() throws Exception {
+ ElementServlet testSubject;
+ String componentType = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteComponentCategory() throws Exception {
+ ElementServlet testSubject;
+ String categoryUniqueId = "";
+ String componentType = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testCreateComponentSubCategory() throws Exception {
+ ElementServlet testSubject;
+ String componentType = "";
+ String categoryId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteComponentSubCategory() throws Exception {
+ ElementServlet testSubject;
+ String categoryUniqueId = "";
+ String subCategoryUniqueId = "";
+ String componentType = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testCreateComponentGrouping() throws Exception {
+ ElementServlet testSubject;
+ String componentType = "";
+ String grandParentCategoryId = "";
+ String parentSubCategoryId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteComponentGrouping() throws Exception {
+ ElementServlet testSubject;
+ String grandParentCategoryUniqueId = "";
+ String parentSubCategoryUniqueId = "";
+ String groupingUniqueId = "";
+ String componentType = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetTags() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetPropertyScopes() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetArtifactTypes() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetConfiguration() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetFollowedResourcesServices() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetCatalogComponents() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ List<OriginTypeEnum> excludeTypes = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteMarkedResources() throws Exception {
+ ElementServlet testSubject;
+ String componentType = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetListOfCsars() throws Exception {
+ ElementServlet testSubject;
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/GroupServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/GroupServletTest.java
new file mode 100644
index 0000000000..95f5174580
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/GroupServletTest.java
@@ -0,0 +1,43 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+public class GroupServletTest {
+
+ private GroupServlet createTestSubject() {
+ return new GroupServlet();
+ }
+
+
+ @Test
+ public void testGetGroupArtifactById() throws Exception {
+ GroupServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String groupId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ }
+
+
+ @Test
+ public void testUpdateGroupMetadata() throws Exception {
+ GroupServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String groupUniqueId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/InputsServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/InputsServletTest.java
new file mode 100644
index 0000000000..9ff55c22f0
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/InputsServletTest.java
@@ -0,0 +1,166 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.components.impl.InputsBusinessLogic;
+import org.openecomp.sdc.be.model.ComponentInstInputsMap;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+
+public class InputsServletTest {
+
+ private InputsServlet createTestSubject() {
+ return new InputsServlet();
+ }
+
+
+ @Test
+ public void testGetComponentInputs() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ HttpServletRequest request = null;
+ String fromName = "";
+ int amount = 0;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateComponentInputs() throws Exception {
+ InputsServlet testSubject;
+ String containerComponentType = "";
+ String componentId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetComponentInstanceInputs() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ String instanceId = "";
+ String originComonentUid = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetInputPropertiesForComponentInstance() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ String instanceId = "";
+ String inputId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetInputsForComponentInput() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ String inputId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetInputsAndPropertiesForComponentInput() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ String inputId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testParseToComponentInstanceMap() throws Exception {
+ InputsServlet testSubject;
+ String serviceJson = "";
+ User user = null;
+ Either<ComponentInstInputsMap, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testCreateMultipleInputs() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String componentInstInputsMapObj = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteInput() throws Exception {
+ InputsServlet testSubject;
+ String componentType = "";
+ String componentId = "";
+ String inputId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String componentInstInputsMapObj = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetInputBL() throws Exception {
+ InputsServlet testSubject;
+ ServletContext context = null;
+ InputsBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/LifecycleServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/LifecycleServletTest.java
new file mode 100644
index 0000000000..8ea39b7443
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/LifecycleServletTest.java
@@ -0,0 +1,45 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.LifeCycleTransitionEnum;
+import org.openecomp.sdc.be.model.User;
+
+import fj.data.Either;
+
+public class LifecycleServletTest {
+
+ private LifecycleServlet createTestSubject() {
+ return new LifecycleServlet();
+ }
+
+
+ @Test
+ public void testChangeResourceState() throws Exception {
+ LifecycleServlet testSubject;
+ String jsonChangeInfo = "";
+ String componentCollection = "";
+ String lifecycleTransition = "";
+ String componentId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateTransitionEnum() throws Exception {
+ LifecycleServlet testSubject;
+ String lifecycleTransition = "";
+ User user = null;
+ Either<LifeCycleTransitionEnum, Response> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ProductServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ProductServletTest.java
new file mode 100644
index 0000000000..66208daaf7
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ProductServletTest.java
@@ -0,0 +1,92 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+public class ProductServletTest {
+
+ private ProductServlet createTestSubject() {
+ return new ProductServlet();
+ }
+
+
+ @Test
+ public void testCreateProduct() throws Exception {
+ ProductServlet testSubject;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetProductById() throws Exception {
+ ProductServlet testSubject;
+ String productId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetServiceByNameAndVersion() throws Exception {
+ ProductServlet testSubject;
+ String productName = "";
+ String productVersion = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteProduct() throws Exception {
+ ProductServlet testSubject;
+ String productId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateProductMetadata() throws Exception {
+ ProductServlet testSubject;
+ String productId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateServiceName() throws Exception {
+ ProductServlet testSubject;
+ String productName = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/PropertyServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/PropertyServletTest.java
new file mode 100644
index 0000000000..fe147b19a9
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/PropertyServletTest.java
@@ -0,0 +1,116 @@
+package org.openecomp.sdc.be.servlets;
+
+import java.util.Map;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.codehaus.jettison.json.JSONObject;
+import org.junit.Test;
+import org.openecomp.sdc.be.components.impl.PropertyBusinessLogic;
+import org.openecomp.sdc.be.dao.api.ActionStatus;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+
+import fj.data.Either;
+
+public class PropertyServletTest {
+
+ private PropertyServlet createTestSubject() {
+ return new PropertyServlet();
+ }
+
+
+ @Test
+ public void testCreateProperty() throws Exception {
+ PropertyServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetProperty() throws Exception {
+ PropertyServlet testSubject;
+ String resourceId = "";
+ String propertyId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testDeleteProperty() throws Exception {
+ PropertyServlet testSubject;
+ String resourceId = "";
+ String propertyId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testUpdateProperty() throws Exception {
+ PropertyServlet testSubject;
+ String resourceId = "";
+ String propertyId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetPropertyModel() throws Exception {
+ PropertyServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ Either<Map<String, PropertyDefinition>, ActionStatus> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+
+
+
+ @Test
+ public void testGetPropertyDefinitionJSONObject() throws Exception {
+ PropertyServlet testSubject;
+ PropertyDefinition propertyDefinition = null;
+ JSONObject result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetPropertyBL() throws Exception {
+ PropertyServlet testSubject;
+ ServletContext context = null;
+ PropertyBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RequirementsServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RequirementsServletTest.java
new file mode 100644
index 0000000000..a7c23732ee
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RequirementsServletTest.java
@@ -0,0 +1,28 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+public class RequirementsServletTest {
+
+ private RequirementsServlet createTestSubject() {
+ return new RequirementsServlet();
+ }
+
+
+ @Test
+ public void testUpdateRequirement() throws Exception {
+ RequirementsServlet testSubject;
+ String resourceId = "";
+ String requirementId = "";
+ String requirementData = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourceArtifactDownloadServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourceArtifactDownloadServletTest.java
new file mode 100644
index 0000000000..319e59a5eb
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourceArtifactDownloadServletTest.java
@@ -0,0 +1,53 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+
+import ch.qos.logback.classic.Logger;
+
+public class ResourceArtifactDownloadServletTest {
+
+ private ResourceArtifactDownloadServlet createTestSubject() {
+ return new ResourceArtifactDownloadServlet();
+ }
+
+
+ @Test
+ public void testGetResourceArtifactByName() throws Exception {
+ ResourceArtifactDownloadServlet testSubject;
+ String resourceName = "";
+ String resourceVersion = "";
+ String artifactName = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetResourceArtifactMetadata() throws Exception {
+ ResourceArtifactDownloadServlet testSubject;
+ String resourceName = "";
+ String resourceVersion = "";
+ String artifactName = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetLogger() throws Exception {
+ ResourceArtifactDownloadServlet testSubject;
+ Logger result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourcesServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourcesServletTest.java
new file mode 100644
index 0000000000..841254e4dc
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ResourcesServletTest.java
@@ -0,0 +1,240 @@
+package org.openecomp.sdc.be.servlets;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+import org.openecomp.sdc.be.model.Resource;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import com.google.common.base.Equivalence.Wrapper;
+
+import fj.data.Either;
+
+public class ResourcesServletTest {
+
+ private ResourcesServlet createTestSubject() {
+ return new ResourcesServlet();
+ }
+
+
+ @Test
+ public void testCreateResource() throws Exception {
+ ResourcesServlet testSubject;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testIsUIImport() throws Exception {
+ ResourcesServlet testSubject;
+ String data = "";
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testPerformUIImport() throws Exception {
+ ResourcesServlet testSubject;Wrapper<Response> responseWrapper = null;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String resourceUniqueId = "";
+
+
+ // default test
+ }
+
+
+ @Test
+ public void testParseToResource() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceJson = "";
+ User user = null;
+ Either<Resource, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testParseToLightResource() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceJson = "";
+ User user = null;
+ Either<Resource, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteResource() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteResourceByNameAndVersion() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceName = "";
+ String version = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetResourceById() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetResourceByNameAndVersion() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceName = "";
+ String resourceVersion = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testValidateResourceName() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceName = "";
+ String resourceType = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetCertifiedAbstractResources() throws Exception {
+ ResourcesServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetCertifiedNotAbstractResources() throws Exception {
+ ResourcesServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateResourceMetadata() throws Exception {
+ ResourcesServlet testSubject;
+ String resourceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateResource() throws Exception {
+ ResourcesServlet testSubject;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ String resourceId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testConvertMapToList() throws Exception {
+ Map<String, PropertyDefinition> properties = null;
+ List<PropertyDefinition> result;
+
+ // test 1
+ properties = null;
+
+ }
+
+
+ @Test
+ public void testGetResourceFromCsar() throws Exception {
+ ResourcesServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ String csarUUID = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ServiceServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ServiceServletTest.java
new file mode 100644
index 0000000000..2b4ddfb7b4
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ServiceServletTest.java
@@ -0,0 +1,265 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.components.lifecycle.LifecycleChangeInfoWithAction;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import com.google.common.base.Equivalence.Wrapper;
+import com.google.common.util.concurrent.Service;
+
+import fj.data.Either;
+
+public class ServiceServletTest {
+
+ private ServiceServlet createTestSubject() {
+ return new ServiceServlet();
+ }
+
+
+ @Test
+ public void testCreateService() throws Exception {
+ ServiceServlet testSubject;
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testParseToService() throws Exception {
+ ServiceServlet testSubject;
+ String serviceJson = "";
+ User user = null;
+ Either<Service, ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testValidateServiceName() throws Exception {
+ ServiceServlet testSubject;
+ String serviceName = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetComponentAuditRecords() throws Exception {
+ ServiceServlet testSubject;
+ String componentType = "";
+ String componentUniqueId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testFillUUIDAndVersion() throws Exception {
+ ServiceServlet testSubject;Wrapper<Response> responseWrapper = null;
+ Wrapper<String> uuidWrapper = null;
+ Wrapper<String> versionWrapper = null;
+ User user = null;
+ ComponentTypeEnum componentTypeEnum = null;
+ String componentUniqueId = "";
+ ServletContext context = null;
+
+
+ // default test
+ }
+
+
+ @Test
+ public void testDeleteService() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDeleteServiceByNameAndVersion() throws Exception {
+ ServiceServlet testSubject;
+ String serviceName = "";
+ String version = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateServiceMetadata() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateGroupInstancePropertyValues() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ String componentInstanceId = "";
+ String groupInstanceId = "";
+ String data = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetServiceById() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testGetServiceByNameAndVersion() throws Exception {
+ ServiceServlet testSubject;
+ String serviceName = "";
+ String serviceVersion = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testUpdateServiceDistributionState() throws Exception {
+ ServiceServlet testSubject;
+ LifecycleChangeInfoWithAction jsonChangeInfo = null;
+ String serviceId = "";
+ String state = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testActivateDistribution() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ String env = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testMarkDistributionAsDeployed() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ String did = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testTempUrlToBeDeleted() throws Exception {
+ ServiceServlet testSubject;
+ String serviceId = "";
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testDownloadServiceArtifact() throws Exception {
+ ServiceServlet testSubject;
+ String artifactName = "";
+ HttpServletRequest request = null;
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+
+ }
+
+
+ @Test
+ public void testExecuteCommand() throws Exception {
+ ServiceServlet testSubject;
+ String artifactName = "";
+ Either<byte[], ResponseFormat> result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/TypesFetchServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/TypesFetchServletTest.java
new file mode 100644
index 0000000000..e512d98ca9
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/TypesFetchServletTest.java
@@ -0,0 +1,38 @@
+package org.openecomp.sdc.be.servlets;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.ws.rs.core.Response;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.components.impl.PropertyBusinessLogic;
+
+public class TypesFetchServletTest {
+
+ private TypesFetchServlet createTestSubject() {
+ return new TypesFetchServlet();
+ }
+
+
+ @Test
+ public void testGetAllDataTypesServlet() throws Exception {
+ TypesFetchServlet testSubject;
+ HttpServletRequest request = null;
+ String userId = "";
+ Response result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetPropertyBL() throws Exception {
+ TypesFetchServlet testSubject;
+ ServletContext context = null;
+ PropertyBusinessLogic result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetectorTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetectorTest.java
new file mode 100644
index 0000000000..0562a1a80c
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetectorTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.sdc.be.switchover.detector;
+
+import org.junit.Test;
+
+
+public class SwitchoverDetectorTest {
+
+ private SwitchoverDetector createTestSubject() {
+ return new SwitchoverDetector();
+ }
+
+
+ @Test
+ public void testGetSiteMode() throws Exception {
+ SwitchoverDetector testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSiteMode();
+ }
+
+
+ @Test
+ public void testSetSiteMode() throws Exception {
+ SwitchoverDetector testSubject;
+ String mode = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSiteMode(mode);
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java
index cdb1cbf817..6dd97bf62a 100644
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java
@@ -20,72 +20,1185 @@
package org.openecomp.sdc.be.tosca;
-import fj.data.Either;
-import org.junit.Before;
-import org.junit.Test;
-import org.openecomp.sdc.be.config.ConfigurationManager;
-import org.openecomp.sdc.be.tosca.CsarUtils.NonMetaArtifactInfo;
-import org.openecomp.sdc.common.api.ConfigurationSource;
-import org.openecomp.sdc.common.impl.ExternalConfiguration;
-import org.openecomp.sdc.common.impl.FSConfigurationSource;
+import static org.junit.Assert.assertTrue;
+import java.io.IOException;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import java.util.Set;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipOutputStream;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.apache.commons.io.output.ByteArrayOutputStream;
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.apache.commons.lang3.tuple.ImmutableTriple;
+import org.apache.commons.lang3.tuple.Triple;
+import org.junit.Before;
+import org.junit.Test;
+import org.mockito.InjectMocks;
+import org.mockito.Mock;
+import org.mockito.Mockito;
+import org.mockito.MockitoAnnotations;
+import org.openecomp.sdc.be.components.BeConfDependentTest;
+import org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic;
+import org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.ArtifactOperationInfo;
+import org.openecomp.sdc.be.dao.api.ActionStatus;
+import org.openecomp.sdc.be.dao.cassandra.ArtifactCassandraDao;
+import org.openecomp.sdc.be.dao.cassandra.CassandraOperationStatus;
+import org.openecomp.sdc.be.dao.cassandra.SdcSchemaFilesCassandraDao;
+import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition;
+import org.openecomp.sdc.be.datatypes.elements.OperationDataDefinition;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
+import org.openecomp.sdc.be.impl.ComponentsUtils;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+import org.openecomp.sdc.be.model.Component;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.InterfaceDefinition;
+import org.openecomp.sdc.be.model.LifecycleStateEnum;
+import org.openecomp.sdc.be.model.Resource;
+import org.openecomp.sdc.be.model.Service;
+import org.openecomp.sdc.be.model.User;
+import org.openecomp.sdc.be.model.jsontitan.operations.ToscaOperationFacade;
+import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
+import org.openecomp.sdc.be.resources.data.ESArtifactData;
+import org.openecomp.sdc.be.resources.data.SdcSchemaFilesData;
+import org.openecomp.sdc.be.tosca.CsarUtils.NonMetaArtifactInfo;
+import org.openecomp.sdc.be.tosca.model.ToscaTemplate;
+import org.openecomp.sdc.common.api.ArtifactGroupTypeEnum;
+import org.openecomp.sdc.common.api.ArtifactTypeEnum;
+import org.openecomp.sdc.exception.ResponseFormat;
+
+import fj.data.Either;
+import mockit.Deencapsulation;
+
+public class CsarUtilsTest extends BeConfDependentTest {
+
+ @InjectMocks
+ CsarUtils testSubject;
+
+ @Mock
+ private ArtifactCassandraDao artifactCassandraDao;
+
+ @Mock
+ private ComponentsUtils componentsUtils;
+
+ @Mock
+ private ToscaExportHandler toscaExportUtils;
+
+ @Mock
+ private SdcSchemaFilesCassandraDao sdcSchemaFilesCassandraDao;
+
+ @Mock
+ private ToscaOperationFacade toscaOperationFacade;
+
+ @Mock
+ private ArtifactsBusinessLogic artifactsBusinessLogic;
+
+ @Before
+ public void setUpMock() throws Exception {
+ MockitoAnnotations.initMocks(this);
+
+ }
+
+ private NonMetaArtifactInfo createNonMetaArtifactInfoTestSubject() {
+ return new CsarUtils.NonMetaArtifactInfo("mock", "mock", ArtifactTypeEnum.AAI_SERVICE_MODEL,
+ ArtifactGroupTypeEnum.DEPLOYMENT, new byte[0], "mock", true);
+ }
+
+ @Test
+ public void testCreateCsar() {
+ Component component = new Resource();
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class)))
+ .thenReturn(Either.right(CassandraOperationStatus.GENERAL_ERROR));
+
+ Mockito.when(componentsUtils.convertFromStorageResponse(Mockito.any(StorageOperationStatus.class)))
+ .thenReturn(ActionStatus.GENERAL_ERROR);
+
+ testSubject.createCsar(component, true, true);
+ }
+
+ @Test
+ public void testCreateCsarWithGenerateCsarZipResponseIsLeft() {
+ Component component = new Resource();
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ toscaTemplate.setDependencies(dependencies);
+
+ List<SdcSchemaFilesData> filesData = new ArrayList<>();
+ SdcSchemaFilesData filedata = new SdcSchemaFilesData();
+ filedata.setPayloadAsArray(data);
+ filesData.add(filedata);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(componentsUtils.convertFromStorageResponse(Mockito.any(StorageOperationStatus.class)))
+ .thenReturn(ActionStatus.GENERAL_ERROR);
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(filesData));
+
+ testSubject.createCsar(component, false, true);
+ }
+
+ @Test
+ public void testGenerateCsarZipThrowsIOException() {
+
+ Deencapsulation.invoke(testSubject, "generateCsarZip", new byte[]{},new byte[]{}, new Resource(), true, false);
+ }
+
+ @Test
+ public void testPopulateZipWhenGetDependenciesIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.right(ToscaError.GENERAL_ERROR));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, false, false);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenExportComponentIsRight() {
+ Component component = new Resource();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class)))
+ .thenReturn(Either.right(ToscaError.GENERAL_ERROR));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, false, false);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenComponentIsServiceAndCollectComponentCsarDefinitionIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ List<SdcSchemaFilesData> filesData = new ArrayList<>();
+ SdcSchemaFilesData filedata = new SdcSchemaFilesData();
+ filedata.setPayloadAsArray(data);
+ filesData.add(filedata);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "cassandraId", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(filesData));
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class)))
+ .thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+
+ Mockito.when(artifactsBusinessLogic.validateUserExists(Mockito.any(String.class), Mockito.any(String.class),
+ Mockito.any(Boolean.class))).thenReturn(new User());
+
+ Mockito.when(artifactsBusinessLogic.validateAndHandleArtifact(Mockito.any(String.class),
+ Mockito.any(ComponentTypeEnum.class), Mockito.any(ArtifactOperationInfo.class), Mockito.isNull(),
+ Mockito.any(ArtifactDefinition.class), Mockito.any(String.class), Mockito.any(String.class),
+ Mockito.isNull(), Mockito.isNull(), Mockito.any(User.class), Mockito.any(Component.class),
+ Mockito.any(Boolean.class), Mockito.any(Boolean.class), Mockito.any(Boolean.class)))
+ .thenReturn(Either.left(Mockito.any(Either.class)));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenGetEntryDataIsRight() {
+ Component component = new Service();
+ boolean getFromCS = true;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class)))
+ .thenReturn(Either.right(ToscaError.GENERAL_ERROR));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenGetEntryDataOfInnerComponentIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca),
+ Either.left(tosca), Either.right(ToscaError.GENERAL_ERROR));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenLatestSchemaFilesFromCassandraIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.right(CassandraOperationStatus.GENERAL_ERROR));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenAddSchemaFilesFromCassandraIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ List<SdcSchemaFilesData> schemaList = new ArrayList<>();
+ SdcSchemaFilesData schemaData = new SdcSchemaFilesData();
+ schemaData.setPayloadAsArray(null);
+ schemaList.add(schemaData);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(schemaList));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testPopulateZipWhenHandleAllAAIArtifactsInDataModelIsRight() {
+ Component component = new Service();
+ boolean getFromCS = false;
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ component.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKIN);
+ component.setVersion("1.0");
+ component.setLastUpdaterUserId("userId");
+ component.setUniqueId("uid");
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ Triple<String, String, Component> triple = Triple.of("fileName", "", component);
+ dependencies.add(triple);
+ toscaTemplate.setDependencies(dependencies);
+
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ List<SdcSchemaFilesData> schemaList = new ArrayList<>();
+ SdcSchemaFilesData schemaData = new SdcSchemaFilesData();
+ schemaData.setPayloadAsArray(data);
+ schemaList.add(schemaData);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData));
+
+ Mockito.when(toscaExportUtils.exportComponent(Mockito.any(Component.class))).thenReturn(Either.left(tosca));
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(schemaList));
+
+ Mockito.when(artifactsBusinessLogic.validateUserExists(Mockito.any(String.class), Mockito.any(String.class),
+ Mockito.any(Boolean.class))).thenReturn(new User());
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "populateZip", component, getFromCS, zip, true, true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testAddSchemaFilesFromCassandra() {
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream();
+ ZipOutputStream zip = new ZipOutputStream(out);
+ ByteArrayOutputStream outMockStream = new ByteArrayOutputStream();
+ ZipOutputStream outMock = new ZipOutputStream(outMockStream);) {
+
+ outMock.putNextEntry(new ZipEntry("mock1"));
+ outMock.write(new byte[1]);
+ outMock.putNextEntry(new ZipEntry("mock2"));
+ outMock.write(new byte[3]);
+ outMock.close();
+ byte[] byteArray = outMockStream.toByteArray();
+ Deencapsulation.invoke(testSubject, "addSchemaFilesFromCassandra", zip, byteArray);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ @Test
+ public void testAddInnerComponentsToCache() {
+ Map<String, ImmutableTriple<String, String, Component>> componentCache = new HashMap<>();
+ Component childComponent = new Resource();
+ Component componentRI = new Service();
+ List<ComponentInstance> componentInstances = new ArrayList<>();
+ ComponentInstance instance = new ComponentInstance();
+ instance.setComponentUid("resourceUid");
+ componentInstances.add(instance);
+ childComponent.setComponentInstances(componentInstances);
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ componentRI.setToscaArtifacts(toscaArtifacts);
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class)))
+ .thenReturn(Either.left(componentRI));
+
+ Deencapsulation.invoke(testSubject, "addInnerComponentsToCache", componentCache, childComponent);
+ }
+
+ @Test
+ public void testAddInnerComponentsToCacheWhenGetToscaElementIsRight() {
+ Map<String, ImmutableTriple<String, String, Component>> componentCache = new HashMap<>();
+ Component childComponent = new Resource();
+
+ List<ComponentInstance> componentInstances = new ArrayList<>();
+ ComponentInstance instance = new ComponentInstance();
+ componentInstances.add(instance);
+ childComponent.setComponentInstances(componentInstances);
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ artifact.setArtifactGroupType(ArtifactGroupTypeEnum.DEPLOYMENT);
+ artifact.setDescription("description");
+ artifact.setArtifactLabel("artifactLabel");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ Component componentRI = new Service();
+
+ componentRI.setToscaArtifacts(toscaArtifacts);
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class)))
+ .thenReturn(Either.right(StorageOperationStatus.BAD_REQUEST));
+
+ Deencapsulation.invoke(testSubject, "addInnerComponentsToCache", componentCache, childComponent);
+ }
+
+ @Test
+ public void testAddComponentToCache() {
+ Map<String, ImmutableTriple<String, String, Component>> componentCache = new HashMap<>();
+ String id = "id";
+ String fileName = "fileName";
+ Component component = new Resource();
+ component.setInvariantUUID("key");
+ component.setVersion("1.0");
+
+ Component cachedComponent = new Resource();
+ cachedComponent.setVersion("0.3");
+
+ componentCache.put("key", new ImmutableTriple<String, String, Component>(id, fileName, cachedComponent));
+
+ Deencapsulation.invoke(testSubject, "addComponentToCache", componentCache, id, fileName, component);
+ }
+
+ @Test
+ public void testWriteComponentInterface() {
+ String fileName = "name.hello";
+ ToscaRepresentation tosca = new ToscaRepresentation();
+ tosca.setMainYaml("value");
+
+ Mockito.when(toscaExportUtils.exportComponentInterface(Mockito.any(Component.class)))
+ .thenReturn(Either.left(tosca));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeComponentInterface", new Resource(), zip, fileName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ @Test
+ public void testGetEntryData() {
+ String cassandraId = "id";
+ Component childComponent = new Resource();
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class)))
+ .thenReturn(Either.right(CassandraOperationStatus.GENERAL_ERROR));
+
+ Deencapsulation.invoke(testSubject, "getEntryData", cassandraId, childComponent);
+ }
+
+ @Test
+ public void testGetLatestSchemaFilesFromCassandraWhenListOfSchemasIsEmpty() {
+ List<SdcSchemaFilesData> filesData = new ArrayList<>();
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(filesData));
+ Deencapsulation.invoke(testSubject, "getLatestSchemaFilesFromCassandra");
+ }
+
+ @Test
+ public void testExtractVfcsArtifactsFromCsar() {
+ String key = "Artifacts/org.openecomp.resource.some/path/to/resource";
+ byte[] data = "value".getBytes();
+
+ Map<String, byte[]> csar = new HashMap<>();
+ csar.put(key, data);
+
+ CsarUtils.extractVfcsArtifactsFromCsar(csar);
+ }
+
+ @Test
+ public void testAddExtractedVfcArtifactWhenArtifactsContainsExtractedArtifactKey() {
+ ImmutablePair<String, ArtifactDefinition> extractedVfcArtifact = new ImmutablePair<String, ArtifactDefinition>(
+ "key", new ArtifactDefinition());
+ Map<String, List<ArtifactDefinition>> artifacts = new HashMap<>();
+ artifacts.put("key", new ArrayList<>());
+
+ Deencapsulation.invoke(testSubject, "addExtractedVfcArtifact", extractedVfcArtifact, artifacts);
+ }
+
+ @Test
+ public void testAddExtractedVfcArtifactWhenArtifactsDoesntContainsExtractedArtifactKey() {
+ ImmutablePair<String, ArtifactDefinition> extractedVfcArtifact = new ImmutablePair<String, ArtifactDefinition>(
+ "key", new ArtifactDefinition());
+ Map<String, List<ArtifactDefinition>> artifacts = new HashMap<>();
+ artifacts.put("key1", new ArrayList<>());
+
+ Deencapsulation.invoke(testSubject, "addExtractedVfcArtifact", extractedVfcArtifact, artifacts);
+ }
+
+ @Test
+ public void testExtractVfcArtifact() {
+ String path = "path/to/informational/artificat";
+ Map<String, byte[]> map = new HashMap<>();
+ map.put(path, "value".getBytes());
+ Entry<String, byte[]> entry = map.entrySet().iterator().next();
+
+ Deencapsulation.invoke(testSubject, "extractVfcArtifact", entry, new HashMap<>());
+ }
+
+ @Test
+ public void testDetectArtifactGroupTypeWithExceptionBeingCaught() {
+ Deencapsulation.invoke(testSubject, "detectArtifactGroupType", "type", Map.class);
+ }
+
+ @Test
+ public void testDetectArtifactGroupTypeWWhenCollectedWarningMessagesContainesKey() {
+ Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
+
+ collectedWarningMessages.put("Warning - unrecognized artifact group type {} was received.", new HashSet<>());
+ Deencapsulation.invoke(testSubject, "detectArtifactGroupType", "type", collectedWarningMessages);
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoCtor() {
+ createNonMetaArtifactInfoTestSubject();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetPath() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getPath();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifactName() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactName();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifactType() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactType();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetDisplayName() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getDisplayName();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifactGroupType() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactGroupType();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifactLabel() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactLabel();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetIsFromCsar() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.isFromCsar();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetPayloadData() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getPayloadData();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifaactChecksum() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactChecksum();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfoGetArtifactUniqueId() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.getArtifactUniqueId();
+ }
+
+ @Test
+ public void testNonMetaArtifactInfosetArtifactUniqueId() {
+ NonMetaArtifactInfo testSubject = createNonMetaArtifactInfoTestSubject();
+
+ testSubject.setArtifactUniqueId("artifactUniqueId");
+ }
+
+ @Test
+ public void testValidateNonMetaArtifactWithExceptionCaught() {
+ CsarUtils.validateNonMetaArtifact("", new byte[0], new HashMap<>());
+ }
+
+ @Test
+ public void testWriteAllFilesToCsarWhenWriteOperationsArtifactsToCsarIsRight() {
+ Component component = new Resource();
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+ Map<String, InterfaceDefinition> interfaces = new HashMap<>();
+ InterfaceDefinition interfaceDef = new InterfaceDefinition();
+ Map<String, OperationDataDefinition> operations = new HashMap<>();
+ OperationDataDefinition operation = new OperationDataDefinition();
+ ArtifactDataDefinition implementation = new ArtifactDataDefinition();
+ implementation.setArtifactUUID("artifactUUID");
+ implementation.setArtifactName("artifactName");
+ operation.setImplementation(implementation);
+ operations.put("key", operation);
+ interfaceDef.setOperations(operations);
+ interfaces.put("key", interfaceDef);
+ ((Resource) component).setInterfaces(interfaces);
+
+ ESArtifactData artifactData = new ESArtifactData();
+ byte[] data = "value".getBytes();
+ artifactData.setDataAsArray(data);
+
+ ToscaTemplate toscaTemplate = new ToscaTemplate("version");
+ List<Triple<String, String, Component>> dependencies = new ArrayList<>();
+ toscaTemplate.setDependencies(dependencies);
+
+ List<SdcSchemaFilesData> filesData = new ArrayList<>();
+ SdcSchemaFilesData filedata = new SdcSchemaFilesData();
+ filedata.setPayloadAsArray(data);
+ filesData.add(filedata);
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(artifactData),
+ Either.right(CassandraOperationStatus.GENERAL_ERROR));
+
+ Mockito.when(componentsUtils.convertFromStorageResponse(Mockito.any(StorageOperationStatus.class)))
+ .thenReturn(ActionStatus.GENERAL_ERROR);
+
+ Mockito.when(toscaExportUtils.getDependencies(Mockito.any(Component.class)))
+ .thenReturn(Either.left(toscaTemplate));
+
+ Mockito.when(
+ sdcSchemaFilesCassandraDao.getSpecificSchemaFiles(Mockito.any(String.class), Mockito.any(String.class)))
+ .thenReturn(Either.left(filesData));
+
+ testSubject.createCsar(component, false, true);
+ }
+
+ @Test
+ public void testWriteOperationsArtifactsToCsarWhenComponentIsService() {
+ Component component = new Service();
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeOperationsArtifactsToCsar", component, zip);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testWriteOperationsArtifactsToCsarWhenOperationGetImplementaionIsNull() {
+ Component component = new Resource();
+ Map<String, InterfaceDefinition> interfaces = new HashMap<>();
+ InterfaceDefinition interfaceDef = new InterfaceDefinition();
+ Map<String, OperationDataDefinition> operations = new HashMap<>();
+ operations.put("key", new OperationDataDefinition());
+ interfaceDef.setOperations(operations);
+ interfaces.put("key", interfaceDef);
+
+ ((Resource) component).setInterfaces(interfaces);
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeOperationsArtifactsToCsar", component, zip);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testWriteOperationsArtifactsToCsarWhenOperationGetArtifactNameIsNull() {
+ Component component = new Resource();
+
+ Map<String, InterfaceDefinition> interfaces = new HashMap<>();
+ InterfaceDefinition interfaceDef = new InterfaceDefinition();
+ Map<String, OperationDataDefinition> operations = new HashMap<>();
+ OperationDataDefinition operation = new OperationDataDefinition();
+ ArtifactDataDefinition implementation = new ArtifactDataDefinition();
+ operation.setImplementation(implementation);
+ operations.put("key", operation);
+ interfaceDef.setOperations(operations);
+ interfaces.put("key", interfaceDef);
+ ((Resource) component).setInterfaces(interfaces);
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeOperationsArtifactsToCsar", component, zip);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testWriteOperationsArtifactsToCsarWhenGettingArtifactFromCassandra() {
+ Component component = new Resource();
+
+ Map<String, InterfaceDefinition> interfaces = new HashMap<>();
+ InterfaceDefinition interfaceDef = new InterfaceDefinition();
+ Map<String, OperationDataDefinition> operations = new HashMap<>();
+ OperationDataDefinition operation = new OperationDataDefinition();
+ ArtifactDataDefinition implementation = new ArtifactDataDefinition();
+ implementation.setArtifactName("artifactName");
+ implementation.setArtifactUUID("artifactUUID");
+ operation.setImplementation(implementation);
+ operations.put("key", operation);
+ interfaceDef.setOperations(operations);
+ interfaceDef.setToscaResourceName("toscaResourceName");
+ interfaces.put("key", interfaceDef);
+ ((Resource) component).setInterfaces(interfaces);
+ component.setNormalizedName("normalizedName");
+
+ ESArtifactData data = new ESArtifactData();
+ data.setDataAsArray("data".getBytes());
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))).thenReturn(Either.left(data));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeOperationsArtifactsToCsar", component, zip);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testWriteOperationsArtifactsToCsarWhenNullPointerExceptionIsCaught() {
+ Component component = new Resource();
+
+ Map<String, InterfaceDefinition> interfaces = new HashMap<>();
+ InterfaceDefinition interfaceDef = new InterfaceDefinition();
+ Map<String, OperationDataDefinition> operations = new HashMap<>();
+ OperationDataDefinition operation = new OperationDataDefinition();
+ ArtifactDataDefinition implementation = new ArtifactDataDefinition();
+ implementation.setArtifactName("artifactName");
+ implementation.setArtifactUUID("artifactUUID");
+ operation.setImplementation(implementation);
+ operations.put("key", operation);
+ interfaceDef.setOperations(operations);
+ interfaceDef.setToscaResourceName("toscaResourceName");
+ interfaces.put("key", interfaceDef);
+ ((Resource) component).setInterfaces(interfaces);
+ component.setNormalizedName("normalizedName");
+
+ Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class)))
+ .thenReturn(Either.left(new ESArtifactData()));
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeOperationsArtifactsToCsar", component, zip);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testWriteArtifactDefinition() {
+ Component component = new Service();
+ List<ArtifactDefinition> artifactDefinitionList = new ArrayList<>();
+ String artifactPathAndFolder = "";
+
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactType(ArtifactTypeEnum.HEAT_ENV.getType());
+ artifactDefinitionList.add(artifact);
+
+ try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ZipOutputStream zip = new ZipOutputStream(out);) {
+ Deencapsulation.invoke(testSubject, "writeArtifactDefinition", component, zip, artifactDefinitionList,
+ artifactPathAndFolder, false);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Test
+ public void testCollectComponentCsarDefinitionWhenComponentIsServiceAndGetToscaElementIsLeft() {
+ Component component = new Service();
+ component.setUniqueId("uniqueId");
+ List<ComponentInstance> resourceInstances = new ArrayList<>();
+ ComponentInstance instance = new ComponentInstance();
+ instance.setComponentUid("resourceUid");
+ instance.setOriginType(OriginTypeEnum.SERVICE);
+ resourceInstances.add(instance);
+ component.setComponentInstances(resourceInstances);
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class))).thenReturn(Either.left(component),
+ Either.right(StorageOperationStatus.BAD_REQUEST));
+
+ Deencapsulation.invoke(testSubject, "collectComponentCsarDefinition", component);
+
+ }
+
+ @Test
+ public void testCollectComponentTypeArtifactsWhenFetchedComponentHasComponentInstances() {
+ Component component = new Service();
+ Component fetchedComponent = new Resource();
+ component.setUniqueId("uniqueId");
+ List<ComponentInstance> resourceInstances = new ArrayList<>();
+ ComponentInstance instance = new ComponentInstance();
+ instance.setComponentUid("resourceUid");
+ instance.setOriginType(OriginTypeEnum.SERVICE);
+ resourceInstances.add(instance);
+ component.setComponentInstances(resourceInstances);
+ fetchedComponent.setComponentInstances(resourceInstances);
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("YANG");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+
+ fetchedComponent.setToscaArtifacts(toscaArtifacts);
+ fetchedComponent.setDeploymentArtifacts(toscaArtifacts);
+ fetchedComponent.setArtifacts(toscaArtifacts);
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class))).thenReturn(Either.left(component),
+ Either.left(fetchedComponent), Either.right(StorageOperationStatus.BAD_REQUEST));
+
+ Deencapsulation.invoke(testSubject, "collectComponentCsarDefinition", component);
+ }
+
+ @Test
+ public void testCollectComponentTypeArtifactsWhenFetchedComponentDontHaveComponentInstances() {
+ Component component = new Service();
+ Component fetchedComponent = new Resource();
+ component.setUniqueId("uniqueId");
+ List<ComponentInstance> resourceInstances = new ArrayList<>();
+ ComponentInstance instance = new ComponentInstance();
+ instance.setComponentUid("resourceUid");
+ instance.setOriginType(OriginTypeEnum.SERVICE);
+
+ Map<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ ArtifactDefinition artifact = new ArtifactDefinition();
+ artifact.setArtifactName("artifactName");
+ artifact.setEsId("esId");
+ artifact.setArtifactUUID("artifactUUID");
+ artifact.setArtifactType("PLAN");
+ toscaArtifacts.put("assettoscatemplate", artifact);
+
+ instance.setDeploymentArtifacts(toscaArtifacts);
+
+ resourceInstances.add(instance);
+ component.setComponentInstances(resourceInstances);
+
+ component.setToscaArtifacts(toscaArtifacts);
+ component.setDeploymentArtifacts(toscaArtifacts);
+ component.setArtifacts(toscaArtifacts);
+
+ fetchedComponent.setToscaArtifacts(toscaArtifacts);
+ fetchedComponent.setDeploymentArtifacts(toscaArtifacts);
+ fetchedComponent.setArtifacts(toscaArtifacts);
+
+ Mockito.when(toscaOperationFacade.getToscaElement(Mockito.any(String.class))).thenReturn(Either.left(component),
+ Either.left(fetchedComponent));
+
+ Deencapsulation.invoke(testSubject, "collectComponentCsarDefinition", component);
+ }
+
+ @Test
+ public void testValidateNonMetaArtifactHappyScenario() {
+ String artifactPath = "Artifacts/Deployment/YANG_XML/myYang.xml";
+ byte[] payloadData = "some payload data".getBytes();
+ Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
+ Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath,
+ payloadData, collectedWarningMessages);
+ assertTrue(eitherNonMetaArtifact.isLeft());
+ assertTrue(collectedWarningMessages.isEmpty());
+
+ artifactPath = "Artifacts/Informational/OTHER/someArtifact.xml";
+ eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
+ assertTrue(eitherNonMetaArtifact.isLeft());
+ assertTrue(collectedWarningMessages.isEmpty());
+ }
+
+ @Test
+ public void testValidateNonMetaArtifactScenarioWithWarnnings() {
+ String artifactPath = "Artifacts/Deployment/Buga/myYang.xml";
+ byte[] payloadData = "some payload data".getBytes();
+ Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
+ Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath,
+ payloadData, collectedWarningMessages);
+ assertTrue(eitherNonMetaArtifact.isLeft());
+
+ artifactPath = "Artifacts/Informational/Buga2/someArtifact.xml";
+ eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
+ assertTrue(eitherNonMetaArtifact.isLeft());
+
+ assertTrue(collectedWarningMessages.size() == 1);
+ assertTrue(collectedWarningMessages.values().iterator().next().size() == 2);
+ }
-public class CsarUtilsTest {
- @Before
- public void setup() {
- ExternalConfiguration.setAppName("catalog-be");
-
- // init Configuration
- String appConfigDir = "src/test/resources/config/catalog-be";
- ConfigurationSource configurationSource = new FSConfigurationSource(ExternalConfiguration.getChangeListener(), appConfigDir);
- ConfigurationManager configurationManager = new ConfigurationManager(configurationSource);
- }
-
- @Test
- public void testValidateNonMetaArtifactHappyScenario(){
- String artifactPath = "Artifacts/Deployment/YANG_XML/myYang.xml";
- byte[] payloadData = "some payload data".getBytes();
- Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
- Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
- assertTrue(eitherNonMetaArtifact.isLeft() );
- assertTrue(collectedWarningMessages.isEmpty() );
-
- artifactPath = "Artifacts/Informational/OTHER/someArtifact.xml";
- eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
- assertTrue(eitherNonMetaArtifact.isLeft() );
- assertTrue(collectedWarningMessages.isEmpty() );
- }
-
- @Test
- public void testValidateNonMetaArtifactScenarioWithWarnnings(){
- String artifactPath = "Artifacts/Deployment/Buga/myYang.xml";
- byte[] payloadData = "some payload data".getBytes();
- Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
- Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
- assertTrue(eitherNonMetaArtifact.isLeft() );
-
- artifactPath = "Artifacts/Informational/Buga2/someArtifact.xml";
- eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
- assertTrue(eitherNonMetaArtifact.isLeft() );
-
- assertEquals(1, collectedWarningMessages.size());
- assertEquals(2, collectedWarningMessages.values().iterator().next().size());
- }
-
- @Test
- public void testValidateNonMetaArtifactUnhappyScenario(){
- String artifactPath = "Artifacts/Buga/YANG_XML/myYang.xml";
- byte[] payloadData = "some payload data".getBytes();
- Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
- Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath, payloadData, collectedWarningMessages);
- assertTrue(eitherNonMetaArtifact.isRight() );
- assertTrue( !collectedWarningMessages.isEmpty() );
- }
+ @Test
+ public void testValidateNonMetaArtifactUnhappyScenario() {
+ String artifactPath = "Artifacts/Buga/YANG_XML/myYang.xml";
+ byte[] payloadData = "some payload data".getBytes();
+ Map<String, Set<List<String>>> collectedWarningMessages = new HashMap<>();
+ Either<NonMetaArtifactInfo, Boolean> eitherNonMetaArtifact = CsarUtils.validateNonMetaArtifact(artifactPath,
+ payloadData, collectedWarningMessages);
+ assertTrue(eitherNonMetaArtifact.isRight());
+ assertTrue(!collectedWarningMessages.isEmpty());
+ }
}
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java
new file mode 100644
index 0000000000..fad85b2fd8
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java
@@ -0,0 +1,59 @@
+package org.openecomp.sdc.be.tosca;
+
+import java.util.List;
+
+import org.apache.commons.lang3.tuple.Triple;
+import org.junit.Test;
+import org.openecomp.sdc.be.model.Component;
+
+
+public class ToscaRepresentationTest {
+
+ private ToscaRepresentation createTestSubject() {
+ return new ToscaRepresentation();
+ }
+
+
+ @Test
+ public void testGetMainYaml() throws Exception {
+ ToscaRepresentation testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMainYaml();
+ }
+
+
+ @Test
+ public void testSetMainYaml() throws Exception {
+ ToscaRepresentation testSubject;
+ String mainYaml = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMainYaml(mainYaml);
+ }
+
+
+ @Test
+ public void testGetDependencies() throws Exception {
+ ToscaRepresentation testSubject;
+ List<Triple<String, String, Component>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDependencies();
+ }
+
+
+ @Test
+ public void testSetDependencies() throws Exception {
+ ToscaRepresentation testSubject;
+ List<Triple<String, String, Component>> dependencies = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDependencies(dependencies);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaUtilsTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaUtilsTest.java
new file mode 100644
index 0000000000..3106403236
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaUtilsTest.java
@@ -0,0 +1,32 @@
+package org.openecomp.sdc.be.tosca;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.model.Component;
+import org.openecomp.sdc.be.model.Resource;
+
+public class ToscaUtilsTest {
+
+ @Test
+ public void testIsComplexVfc() throws Exception {
+ Component component = new Resource();
+ component.setComponentType(ComponentTypeEnum.RESOURCE);
+ boolean result;
+
+ // default test
+ ToscaUtils.isNotComplexVfc(component);
+ }
+
+
+ @Test
+ public void testObjectToMap() throws Exception {
+ Object objectToConvert = null;
+ Object obj = new Object();
+ Map<String, Object> result;
+
+ // default test
+ ToscaUtils.objectToMap(objectToConvert, obj.getClass());
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/EntrySchemaTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/EntrySchemaTest.java
new file mode 100644
index 0000000000..f57d17d164
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/EntrySchemaTest.java
@@ -0,0 +1,55 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import org.junit.Test;
+
+
+public class EntrySchemaTest {
+
+ private EntrySchema createTestSubject() {
+ return new EntrySchema();
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ EntrySchema testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ EntrySchema testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ EntrySchema testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ EntrySchema testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/SubstitutionMappingTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/SubstitutionMappingTest.java
new file mode 100644
index 0000000000..661b8ca446
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/SubstitutionMappingTest.java
@@ -0,0 +1,79 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class SubstitutionMappingTest {
+
+ private SubstitutionMapping createTestSubject() {
+ return new SubstitutionMapping();
+ }
+
+
+ @Test
+ public void testGetNode_type() throws Exception {
+ SubstitutionMapping testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode_type();
+ }
+
+
+ @Test
+ public void testSetNode_type() throws Exception {
+ SubstitutionMapping testSubject;
+ String node_type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode_type(node_type);
+ }
+
+
+ @Test
+ public void testGetCapabilities() throws Exception {
+ SubstitutionMapping testSubject;
+ Map<String, String[]> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilities();
+ }
+
+
+ @Test
+ public void testSetCapabilities() throws Exception {
+ SubstitutionMapping testSubject;
+ Map<String, String[]> capabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilities(capabilities);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ SubstitutionMapping testSubject;
+ Map<String, String[]> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ SubstitutionMapping testSubject;
+ Map<String, String[]> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaCapabilityTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaCapabilityTest.java
new file mode 100644
index 0000000000..ba4526a68d
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaCapabilityTest.java
@@ -0,0 +1,124 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaCapabilityTest {
+
+ private ToscaCapability createTestSubject() {
+ return new ToscaCapability();
+ }
+
+
+ @Test
+ public void testGetValid_source_types() throws Exception {
+ ToscaCapability testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValid_source_types();
+ }
+
+
+ @Test
+ public void testSetValid_source_types() throws Exception {
+ ToscaCapability testSubject;
+ List<String> valid_source_types = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValid_source_types(valid_source_types);
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ToscaCapability testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ToscaCapability testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ToscaCapability testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ToscaCapability testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testGetOccurrences() throws Exception {
+ ToscaCapability testSubject;
+ List<Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOccurrences();
+ }
+
+
+ @Test
+ public void testSetOccurrences() throws Exception {
+ ToscaCapability testSubject;
+ List<Object> occurrences = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOccurrences(occurrences);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ ToscaCapability testSubject;
+ Map<String, ToscaProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ ToscaCapability testSubject;
+ Map<String, ToscaProperty> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaGroupTemplateTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaGroupTemplateTest.java
new file mode 100644
index 0000000000..e91ded2b8c
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaGroupTemplateTest.java
@@ -0,0 +1,103 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaGroupTemplateTest {
+
+ private ToscaGroupTemplate createTestSubject() {
+ return new ToscaGroupTemplate("", new ToscaMetadata(), new HashMap<>());
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ToscaGroupTemplate testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ToscaGroupTemplate testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetMembers() throws Exception {
+ ToscaGroupTemplate testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMembers();
+ }
+
+
+ @Test
+ public void testSetMembers() throws Exception {
+ ToscaGroupTemplate testSubject;
+ List<String> members = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMembers(members);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ ToscaGroupTemplate testSubject;
+ IToscaMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ ToscaGroupTemplate testSubject;
+ IToscaMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ ToscaGroupTemplate testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ ToscaGroupTemplate testSubject;
+ Map<String, Object> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaMetadataTest.java
new file mode 100644
index 0000000000..b7b7ba6514
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaMetadataTest.java
@@ -0,0 +1,385 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import org.junit.Test;
+
+
+public class ToscaMetadataTest {
+
+ private ToscaMetadata createTestSubject() {
+ return new ToscaMetadata();
+ }
+
+
+ @Test
+ public void testGetName() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+
+ @Test
+ public void testSetName() throws Exception {
+ ToscaMetadata testSubject;
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+
+ @Test
+ public void testGetInvariantUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInvariantUUID();
+ }
+
+
+ @Test
+ public void testSetInvariantUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String invariantUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInvariantUUID(invariantUUID);
+ }
+
+
+ @Test
+ public void testGetUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUUID();
+ }
+
+
+ @Test
+ public void testSetUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String uUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUUID(uUID);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ToscaMetadata testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ToscaMetadata testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetCategory() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategory();
+ }
+
+
+ @Test
+ public void testSetCategory() throws Exception {
+ ToscaMetadata testSubject;
+ String category = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategory(category);
+ }
+
+
+ @Test
+ public void testGetSubcategory() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSubcategory();
+ }
+
+
+ @Test
+ public void testSetSubcategory() throws Exception {
+ ToscaMetadata testSubject;
+ String subcategory = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSubcategory(subcategory);
+ }
+
+
+ @Test
+ public void testGetResourceVendor() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVendor();
+ }
+
+
+ @Test
+ public void testSetResourceVendor() throws Exception {
+ ToscaMetadata testSubject;
+ String resourceVendor = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVendor(resourceVendor);
+ }
+
+
+ @Test
+ public void testGetResourceVendorRelease() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVendorRelease();
+ }
+
+
+ @Test
+ public void testSetResourceVendorRelease() throws Exception {
+ ToscaMetadata testSubject;
+ String resourceVendorRelease = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVendorRelease(resourceVendorRelease);
+ }
+
+
+ @Test
+ public void testGetResourceVendorModelNumber() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVendorModelNumber();
+ }
+
+
+ @Test
+ public void testSetResourceVendorModelNumber() throws Exception {
+ ToscaMetadata testSubject;
+ String resourceVendorModelNumber = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVendorModelNumber(resourceVendorModelNumber);
+ }
+
+
+ @Test
+ public void testGetServiceType() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceType();
+ }
+
+
+ @Test
+ public void testSetServiceType() throws Exception {
+ ToscaMetadata testSubject;
+ String serviceType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceType(serviceType);
+ }
+
+
+ @Test
+ public void testGetServiceRole() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceRole();
+ }
+
+
+ @Test
+ public void testSetServiceRole() throws Exception {
+ ToscaMetadata testSubject;
+ String serviceRole = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceRole(serviceRole);
+ }
+
+
+ @Test
+ public void testIsEcompGeneratedNaming() throws Exception {
+ ToscaMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isEcompGeneratedNaming();
+ }
+
+
+ @Test
+ public void testSetEcompGeneratedNaming() throws Exception {
+ ToscaMetadata testSubject;
+ Boolean ecompGeneratedNaming = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEcompGeneratedNaming(ecompGeneratedNaming);
+ }
+
+
+ @Test
+ public void testIsNamingPolicy() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isNamingPolicy();
+ }
+
+
+ @Test
+ public void testSetNamingPolicy() throws Exception {
+ ToscaMetadata testSubject;
+ String namingPolicy = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNamingPolicy(namingPolicy);
+ }
+
+
+ @Test
+ public void testGetServiceEcompNaming() throws Exception {
+ ToscaMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceEcompNaming();
+ }
+
+
+ @Test
+ public void testSetServiceEcompNaming() throws Exception {
+ ToscaMetadata testSubject;
+ Boolean serviceEcompNaming = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceEcompNaming(serviceEcompNaming);
+ }
+
+
+ @Test
+ public void testGetVersion() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVersion();
+ }
+
+
+ @Test
+ public void testSetVersion() throws Exception {
+ ToscaMetadata testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersion(version);
+ }
+
+
+ @Test
+ public void testGetCustomizationUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCustomizationUUID();
+ }
+
+
+ @Test
+ public void testSetCustomizationUUID() throws Exception {
+ ToscaMetadata testSubject;
+ String customizationUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCustomizationUUID(customizationUUID);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTemplateTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTemplateTest.java
new file mode 100644
index 0000000000..4dab33ce14
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTemplateTest.java
@@ -0,0 +1,124 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaNodeTemplateTest {
+
+ private ToscaNodeTemplate createTestSubject() {
+ return new ToscaNodeTemplate();
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ToscaNodeTemplate testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ToscaNodeTemplate testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ ToscaNodeTemplate testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ ToscaNodeTemplate testSubject;
+ Map<String, Object> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ ToscaNodeTemplate testSubject;
+ List<Map<String, ToscaTemplateRequirement>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ ToscaNodeTemplate testSubject;
+ List<Map<String, ToscaTemplateRequirement>> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+
+
+ @Test
+ public void testGetCapabilities() throws Exception {
+ ToscaNodeTemplate testSubject;
+ Map<String, ToscaTemplateCapability> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilities();
+ }
+
+
+ @Test
+ public void testSetCapabilities() throws Exception {
+ ToscaNodeTemplate testSubject;
+ Map<String, ToscaTemplateCapability> capabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilities(capabilities);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ ToscaNodeTemplate testSubject;
+ ToscaMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ ToscaNodeTemplate testSubject;
+ ToscaMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTypeTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTypeTest.java
new file mode 100644
index 0000000000..3bd04f1b92
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaNodeTypeTest.java
@@ -0,0 +1,146 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaNodeTypeTest {
+
+ private ToscaNodeType createTestSubject() {
+ return new ToscaNodeType();
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ ToscaNodeType testSubject;
+ Map<String, ToscaProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ ToscaNodeType testSubject;
+ Map<String, ToscaProperty> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+
+
+ @Test
+ public void testGetCapabilities() throws Exception {
+ ToscaNodeType testSubject;
+ Map<String, ToscaCapability> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilities();
+ }
+
+
+ @Test
+ public void testSetCapabilities() throws Exception {
+ ToscaNodeType testSubject;
+ Map<String, ToscaCapability> capabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilities(capabilities);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ ToscaNodeType testSubject;
+ List<Map<String, ToscaRequirement>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ ToscaNodeType testSubject;
+ List<Map<String, ToscaRequirement>> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+
+
+ @Test
+ public void testGetDerived_from() throws Exception {
+ ToscaNodeType testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerived_from();
+ }
+
+
+ @Test
+ public void testSetDerived_from() throws Exception {
+ ToscaNodeType testSubject;
+ String derived_from = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerived_from(derived_from);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ToscaNodeType testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ToscaNodeType testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ ToscaNodeType testSubject;
+ ToscaMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ ToscaNodeType testSubject;
+ ToscaMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaPropertyTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaPropertyTest.java
new file mode 100644
index 0000000000..52806cc6e6
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaPropertyTest.java
@@ -0,0 +1,143 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import org.junit.Test;
+
+
+public class ToscaPropertyTest {
+
+ private ToscaProperty createTestSubject() {
+ return new ToscaProperty();
+ }
+
+
+ @Test
+ public void testGetEntry_schema() throws Exception {
+ ToscaProperty testSubject;
+ EntrySchema result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEntry_schema();
+ }
+
+
+ @Test
+ public void testSetEntry_schema() throws Exception {
+ ToscaProperty testSubject;
+ EntrySchema entry_schema = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEntry_schema(entry_schema);
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ToscaProperty testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ToscaProperty testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetDefaultp() throws Exception {
+ ToscaProperty testSubject;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultp();
+ }
+
+
+ @Test
+ public void testSetDefaultp() throws Exception {
+ ToscaProperty testSubject;
+ Object defaultp = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDefaultp(defaultp);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ToscaProperty testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ToscaProperty testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testGetRequired() throws Exception {
+ ToscaProperty testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequired();
+ }
+
+
+ @Test
+ public void testSetRequired() throws Exception {
+ ToscaProperty testSubject;
+ Boolean required = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequired(required);
+ }
+
+
+ @Test
+ public void testGetStatus() throws Exception {
+ ToscaProperty testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStatus();
+ }
+
+
+ @Test
+ public void testSetStatus() throws Exception {
+ ToscaProperty testSubject;
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStatus(status);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaRequirementTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaRequirementTest.java
new file mode 100644
index 0000000000..9f93675252
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaRequirementTest.java
@@ -0,0 +1,47 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaRequirementTest {
+
+ private ToscaRequirement createTestSubject() {
+ return new ToscaRequirement();
+ }
+
+
+ @Test
+ public void testGetOccurrences() throws Exception {
+ ToscaRequirement testSubject;
+ List<Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOccurrences();
+ }
+
+
+ @Test
+ public void testSetOccurrences() throws Exception {
+ ToscaRequirement testSubject;
+ List<Object> occurrences = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOccurrences(occurrences);
+ }
+
+
+ @Test
+ public void testToMap() throws Exception {
+ ToscaRequirement testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toMap();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateCapabilityTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateCapabilityTest.java
new file mode 100644
index 0000000000..cbf45ea5d8
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateCapabilityTest.java
@@ -0,0 +1,58 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaTemplateCapabilityTest {
+
+ private ToscaTemplateCapability createTestSubject() {
+ return new ToscaTemplateCapability();
+ }
+
+
+ @Test
+ public void testGetValid_source_types() throws Exception {
+ ToscaTemplateCapability testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValidSourceTypes();
+ }
+
+
+ @Test
+ public void testSetValid_source_types() throws Exception {
+ ToscaTemplateCapability testSubject;
+ List<String> valid_source_types = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValidSourceTypes(valid_source_types);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ ToscaTemplateCapability testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ ToscaTemplateCapability testSubject;
+ Map<String, Object> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateRequirementTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateRequirementTest.java
new file mode 100644
index 0000000000..a29be8a56f
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateRequirementTest.java
@@ -0,0 +1,90 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaTemplateRequirementTest {
+
+ private ToscaTemplateRequirement createTestSubject() {
+ return new ToscaTemplateRequirement();
+ }
+
+
+ @Test
+ public void testGetCapability() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapability();
+ }
+
+
+ @Test
+ public void testSetCapability() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String capability = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapability(capability);
+ }
+
+
+ @Test
+ public void testGetNode() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode();
+ }
+
+
+ @Test
+ public void testSetNode() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String node = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode(node);
+ }
+
+
+ @Test
+ public void testGetRelationship() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelationship();
+ }
+
+
+ @Test
+ public void testSetRelationship() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ String relationship = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelationship(relationship);
+ }
+
+
+ @Test
+ public void testToMap() throws Exception {
+ ToscaTemplateRequirement testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toMap();
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateTest.java
new file mode 100644
index 0000000000..613c7ed457
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTemplateTest.java
@@ -0,0 +1,130 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaTemplateTest {
+
+ private ToscaTemplate createTestSubject() {
+ return new ToscaTemplate("");
+ }
+
+
+ @Test
+ public void testGetNode_types() throws Exception {
+ ToscaTemplate testSubject;
+ Map<String, ToscaNodeType> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode_types();
+ }
+
+
+ @Test
+ public void testSetNode_types() throws Exception {
+ ToscaTemplate testSubject;
+ Map<String, ToscaNodeType> node_types = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode_types(node_types);
+ }
+
+
+ @Test
+ public void testGetImports() throws Exception {
+ ToscaTemplate testSubject;
+ List<Map<String, Map<String, String>>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getImports();
+ }
+
+
+ @Test
+ public void testSetImports() throws Exception {
+ ToscaTemplate testSubject;
+ List<Map<String, Map<String, String>>> imports = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setImports(imports);
+ }
+
+
+ @Test
+ public void testGetTosca_definitions_version() throws Exception {
+ ToscaTemplate testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTosca_definitions_version();
+ }
+
+
+ @Test
+ public void testSetTosca_definitions_version() throws Exception {
+ ToscaTemplate testSubject;
+ String tosca_definitions_version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTosca_definitions_version(tosca_definitions_version);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ ToscaTemplate testSubject;
+ ToscaMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ ToscaTemplate testSubject;
+ ToscaMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetTopology_template() throws Exception {
+ ToscaTemplate testSubject;
+ ToscaTopolgyTemplate result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTopology_template();
+ }
+
+
+ @Test
+ public void testSetTopology_template() throws Exception {
+ ToscaTemplate testSubject;
+ ToscaTopolgyTemplate topology_template = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTopology_template(topology_template);
+ }
+
+
+
+
+
+
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTopolgyTemplateTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTopolgyTemplateTest.java
new file mode 100644
index 0000000000..5b5ac82572
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/ToscaTopolgyTemplateTest.java
@@ -0,0 +1,92 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ToscaTopolgyTemplateTest {
+
+ private ToscaTopolgyTemplate createTestSubject() {
+ return new ToscaTopolgyTemplate();
+ }
+
+
+ @Test
+ public void testGetNode_templates() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ Map<String, ToscaNodeTemplate> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode_templates();
+ }
+
+
+ @Test
+ public void testSetNode_templates() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ Map<String, ToscaNodeTemplate> node_templates = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode_templates(node_templates);
+ }
+
+
+ @Test
+ public void testGetGroups() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ Map<String, ToscaGroupTemplate> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroups();
+ }
+
+
+
+
+ @Test
+ public void testGetSubstitution_mappings() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ SubstitutionMapping result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSubstitution_mappings();
+ }
+
+
+ @Test
+ public void testSetSubstitution_mappings() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ SubstitutionMapping substitution_mapping = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSubstitution_mappings(substitution_mapping);
+ }
+
+
+ @Test
+ public void testGetInputs() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ Map<String, ToscaProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInputs();
+ }
+
+
+ @Test
+ public void testSetInputs() throws Exception {
+ ToscaTopolgyTemplate testSubject;
+ Map<String, ToscaProperty> inputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInputs(inputs);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/VfModuleToscaMetadataTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/VfModuleToscaMetadataTest.java
new file mode 100644
index 0000000000..62fb750108
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/model/VfModuleToscaMetadataTest.java
@@ -0,0 +1,121 @@
+package org.openecomp.sdc.be.tosca.model;
+
+import org.junit.Test;
+
+
+public class VfModuleToscaMetadataTest {
+
+ private VfModuleToscaMetadata createTestSubject() {
+ return new VfModuleToscaMetadata();
+ }
+
+
+ @Test
+ public void testSetName() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+
+ @Test
+ public void testSetInvariantUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String invariantUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInvariantUUID(invariantUUID);
+ }
+
+
+ @Test
+ public void testSetUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String uUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUUID(uUID);
+ }
+
+
+ @Test
+ public void testSetVersion() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersion(version);
+ }
+
+
+ @Test
+ public void testGetVfModuleModelName() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleModelName();
+ }
+
+
+ @Test
+ public void testGetVfModuleModelInvariantUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleModelInvariantUUID();
+ }
+
+
+ @Test
+ public void testGetVfModuleModelUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleModelUUID();
+ }
+
+
+ @Test
+ public void testGetVfModuleModelVersion() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleModelVersion();
+ }
+
+
+ @Test
+ public void testGetVfModuleModelCustomizationUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleModelCustomizationUUID();
+ }
+
+
+ @Test
+ public void testSetCustomizationUUID() throws Exception {
+ VfModuleToscaMetadata testSubject;
+ String customizationUUID = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCustomizationUUID(customizationUUID);
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/RollbackManagerTest.java b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/RollbackManagerTest.java
new file mode 100644
index 0000000000..9124aa3c45
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/RollbackManagerTest.java
@@ -0,0 +1,45 @@
+package org.openecomp.sdc.common.transaction.mngr;
+
+import org.junit.Test;
+import org.openecomp.sdc.common.transaction.api.RollbackHandler;
+import org.openecomp.sdc.common.transaction.api.TransactionUtils.DBActionCodeEnum;
+import org.openecomp.sdc.common.transaction.api.TransactionUtils.DBTypeEnum;
+import org.openecomp.sdc.common.util.MethodActivationStatusEnum;
+
+import fj.data.Either;
+
+public class RollbackManagerTest {
+
+ private RollbackManager createTestSubject() {
+ return new RollbackManager(null, "", "", null);
+ }
+
+
+ @Test
+ public void testTransactionRollback() throws Exception {
+ RollbackManager testSubject;
+ DBActionCodeEnum result;
+
+ // default test
+ }
+
+
+ @Test
+ public void testAddRollbackHandler() throws Exception {
+ RollbackManager testSubject;
+ RollbackHandler rollbackHandler = null;
+ Either<RollbackHandler, MethodActivationStatusEnum> result;
+
+ // default test
+ }
+
+
+ @Test
+ public void testGetRollbackHandler() throws Exception {
+ RollbackManager testSubject;
+ DBTypeEnum dbType = null;
+ Either<RollbackHandler, MethodActivationStatusEnum> result;
+
+ // default test
+ }
+} \ No newline at end of file
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/TransactionManagerTest.java b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/TransactionManagerTest.java
new file mode 100644
index 0000000000..a2259acf02
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/mngr/TransactionManagerTest.java
@@ -0,0 +1,52 @@
+package org.openecomp.sdc.common.transaction.mngr;
+
+import org.junit.Test;
+import org.openecomp.sdc.common.transaction.api.ITransactionSdnc;
+import org.openecomp.sdc.common.transaction.api.TransactionUtils.ActionTypeEnum;
+
+public class TransactionManagerTest {
+
+ private TransactionManager createTestSubject() {
+ return new TransactionManager();
+ }
+
+
+ @Test
+ public void testGetTransaction() throws Exception {
+ TransactionManager testSubject;
+ String userId = "";
+ ActionTypeEnum actionType = null;
+ ITransactionSdnc result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGenerateTransactionID() throws Exception {
+ TransactionManager testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testResetTransactionId() throws Exception {
+ TransactionManager testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testInit() throws Exception {
+ TransactionManager testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/TableTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/TableTest.java
new file mode 100644
index 0000000000..b2fdc011f6
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/TableTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.be.dao.cassandra.schema;
+
+import org.junit.Test;
+
+
+public class TableTest {
+
+ private Table createTestSubject() {
+ return Table.ARTIFACT;
+ }
+
+
+ @Test
+ public void testGetTableDescription() throws Exception {
+ Table testSubject;
+ ITableDescription result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableDescription();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java
new file mode 100644
index 0000000000..8e3e838ba1
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class ArtifactTableDescriptionTest {
+
+ private ArtifactTableDescription createTestSubject() {
+ return new ArtifactTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ ArtifactTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ ArtifactTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ ArtifactTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ ArtifactTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ ArtifactTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java
new file mode 100644
index 0000000000..fd7752774c
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class AuthEventTableDescriptionTest {
+
+ private AuthEventTableDescription createTestSubject() {
+ return new AuthEventTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ AuthEventTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ AuthEventTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ AuthEventTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ AuthEventTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ AuthEventTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java
new file mode 100644
index 0000000000..bc97922b53
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class ComponentCacheTableDescriptionTest {
+
+ private ComponentCacheTableDescription createTestSubject() {
+ return new ComponentCacheTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ ComponentCacheTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ ComponentCacheTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ ComponentCacheTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ ComponentCacheTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ ComponentCacheTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java
new file mode 100644
index 0000000000..74ea99e2ec
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class ConsumerEventTableDefinitionTest {
+
+ private ConsumerEventTableDefinition createTestSubject() {
+ return new ConsumerEventTableDefinition();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ ConsumerEventTableDefinition testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ ConsumerEventTableDefinition testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ ConsumerEventTableDefinition testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ ConsumerEventTableDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ ConsumerEventTableDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java
new file mode 100644
index 0000000000..ca1d767065
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class DistribDeployEventTableDescTest {
+
+ private DistribDeployEventTableDesc createTestSubject() {
+ return new DistribDeployEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ DistribDeployEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ DistribDeployEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ DistribDeployEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ DistribDeployEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ DistribDeployEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java
new file mode 100644
index 0000000000..a3e11bf1a5
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class DistribDownloadEventTableDescTest {
+
+ private DistribDownloadEventTableDesc createTestSubject() {
+ return new DistribDownloadEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ DistribDownloadEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ DistribDownloadEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ DistribDownloadEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ DistribDownloadEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ DistribDownloadEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java
new file mode 100644
index 0000000000..46eb0f590a
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class DistribEngineEventTableDescTest {
+
+ private DistribEngineEventTableDesc createTestSubject() {
+ return new DistribEngineEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ DistribEngineEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ DistribEngineEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ DistribEngineEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ DistribEngineEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ DistribEngineEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java
new file mode 100644
index 0000000000..4046a6101b
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class DistribNotifEventTableDescTest {
+
+ private DistribNotifEventTableDesc createTestSubject() {
+ return new DistribNotifEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ DistribNotifEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ DistribNotifEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ DistribNotifEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ DistribNotifEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ DistribNotifEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java
new file mode 100644
index 0000000000..2626536eed
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class ExternalApiEventTableDescTest {
+
+ private ExternalApiEventTableDesc createTestSubject() {
+ return new ExternalApiEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ ExternalApiEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ ExternalApiEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ ExternalApiEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ ExternalApiEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ ExternalApiEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java
new file mode 100644
index 0000000000..9cc7a556a0
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class GetCatHierEventTableDescTest {
+
+ private GetCatHierEventTableDesc createTestSubject() {
+ return new GetCatHierEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ GetCatHierEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ GetCatHierEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ GetCatHierEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ GetCatHierEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ GetCatHierEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java
new file mode 100644
index 0000000000..d31cc59007
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class GetUebClusterEventTableDescTest {
+
+ private GetUebClusterEventTableDesc createTestSubject() {
+ return new GetUebClusterEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ GetUebClusterEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ GetUebClusterEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ GetUebClusterEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ GetUebClusterEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ GetUebClusterEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java
new file mode 100644
index 0000000000..b7c217f588
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class GetUsersListEventTableDescTest {
+
+ private GetUsersListEventTableDesc createTestSubject() {
+ return new GetUsersListEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ GetUsersListEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ GetUsersListEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ GetUsersListEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ GetUsersListEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ GetUsersListEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java
new file mode 100644
index 0000000000..f79b2759d6
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class MigrationTasksTableDescriptionTest {
+
+ private MigrationTasksTableDescription createTestSubject() {
+ return new MigrationTasksTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ MigrationTasksTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ MigrationTasksTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ MigrationTasksTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ MigrationTasksTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ MigrationTasksTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java
new file mode 100644
index 0000000000..3cc4094d0f
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class OldExternalApiEventTableDescTest {
+
+ private OldExternalApiEventTableDesc createTestSubject() {
+ return new OldExternalApiEventTableDesc();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ OldExternalApiEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ OldExternalApiEventTableDesc testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ OldExternalApiEventTableDesc testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ OldExternalApiEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ OldExternalApiEventTableDesc testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java
new file mode 100644
index 0000000000..e0e02b5d86
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class SdcSchemaFilesTableDescriptionTest {
+
+ private SdcSchemaFilesTableDescription createTestSubject() {
+ return new SdcSchemaFilesTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ SdcSchemaFilesTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ SdcSchemaFilesTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ SdcSchemaFilesTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ SdcSchemaFilesTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ SdcSchemaFilesTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java
new file mode 100644
index 0000000000..1da6867d01
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java
@@ -0,0 +1,72 @@
+package org.openecomp.sdc.be.dao.cassandra.schema.tables;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.junit.Test;
+
+import com.datastax.driver.core.DataType;
+
+
+public class UserAccessEventTableDescriptionTest {
+
+ private UserAccessEventTableDescription createTestSubject() {
+ return new UserAccessEventTableDescription();
+ }
+
+
+ @Test
+ public void testPrimaryKeys() throws Exception {
+ UserAccessEventTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.primaryKeys();
+ }
+
+
+ @Test
+ public void testClusteringKeys() throws Exception {
+ UserAccessEventTableDescription testSubject;
+ List<ImmutablePair<String, DataType>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clusteringKeys();
+ }
+
+
+ @Test
+ public void testGetColumnDescription() throws Exception {
+ UserAccessEventTableDescription testSubject;
+ Map<String, ImmutablePair<DataType, Boolean>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getColumnDescription();
+ }
+
+
+ @Test
+ public void testGetKeyspace() throws Exception {
+ UserAccessEventTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyspace();
+ }
+
+
+ @Test
+ public void testGetTableName() throws Exception {
+ UserAccessEventTableDescription testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTableName();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnumTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnumTest.java
new file mode 100644
index 0000000000..0772ebb82d
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgeLabelEnumTest.java
@@ -0,0 +1,32 @@
+package org.openecomp.sdc.be.dao.jsongraph.types;
+
+import org.junit.Test;
+
+
+public class EdgeLabelEnumTest {
+
+ private EdgeLabelEnum createTestSubject() {
+ return EdgeLabelEnum.ARTIFACTS;
+ }
+
+
+ @Test
+ public void testGetEdgeLabelEnum() throws Exception {
+ String name = "";
+ EdgeLabelEnum result;
+
+ // default test
+ result = EdgeLabelEnum.getEdgeLabelEnum(name);
+ }
+
+
+ @Test
+ public void testIsInstanceArtifactsLabel() throws Exception {
+ EdgeLabelEnum testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isInstanceArtifactsLabel();
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgePropertyEnumTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgePropertyEnumTest.java
new file mode 100644
index 0000000000..9f556b04f8
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/EdgePropertyEnumTest.java
@@ -0,0 +1,32 @@
+package org.openecomp.sdc.be.dao.jsongraph.types;
+
+import org.junit.Test;
+
+
+public class EdgePropertyEnumTest {
+
+ private EdgePropertyEnum createTestSubject() {
+ return EdgePropertyEnum.STATE;
+ }
+
+
+ @Test
+ public void testGetProperty() throws Exception {
+ EdgePropertyEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperty();
+ }
+
+
+ @Test
+ public void testGetByProperty() throws Exception {
+ String property = "";
+ EdgePropertyEnum result;
+
+ // default test
+ result = EdgePropertyEnum.getByProperty(property);
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnumTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnumTest.java
new file mode 100644
index 0000000000..db5ab71bca
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/jsongraph/types/VertexTypeEnumTest.java
@@ -0,0 +1,43 @@
+package org.openecomp.sdc.be.dao.jsongraph.types;
+
+import org.junit.Test;
+
+
+public class VertexTypeEnumTest {
+
+ private VertexTypeEnum createTestSubject() {
+ return VertexTypeEnum.ADDITIONAL_INFORMATION;
+ }
+
+
+ @Test
+ public void testGetName() throws Exception {
+ VertexTypeEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+
+ @Test
+ public void testGetClassOfJson() throws Exception {
+ VertexTypeEnum testSubject;
+ Class result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getClassOfJson();
+ }
+
+
+ @Test
+ public void testGetByName() throws Exception {
+ String name = "";
+ VertexTypeEnum result;
+
+ // default test
+ result = VertexTypeEnum.getByName(name);
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/MigrationTaskEntryTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/MigrationTaskEntryTest.java
new file mode 100644
index 0000000000..178ac2a6a2
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/MigrationTaskEntryTest.java
@@ -0,0 +1,189 @@
+package org.openecomp.sdc.be.resources.data;
+
+import java.util.Date;
+
+import org.junit.Test;
+
+
+public class MigrationTaskEntryTest {
+
+ private MigrationTaskEntry createTestSubject() {
+ return new MigrationTaskEntry();
+ }
+
+
+ @Test
+ public void testSetMajorVersion() throws Exception {
+ MigrationTaskEntry testSubject;
+ Long majorVersion = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMajorVersion(majorVersion);
+ }
+
+
+ @Test
+ public void testSetMinorVersion() throws Exception {
+ MigrationTaskEntry testSubject;
+ Long minorVersion = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMinorVersion(minorVersion);
+ }
+
+
+ @Test
+ public void testSetTimestamp() throws Exception {
+ MigrationTaskEntry testSubject;
+ Date timestamp = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTimestamp(timestamp);
+ }
+
+
+ @Test
+ public void testSetTaskName() throws Exception {
+ MigrationTaskEntry testSubject;
+ String taskName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTaskName(taskName);
+ }
+
+
+ @Test
+ public void testSetTaskStatus() throws Exception {
+ MigrationTaskEntry testSubject;
+ String taskStatus = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTaskStatus(taskStatus);
+ }
+
+
+ @Test
+ public void testSetMessage() throws Exception {
+ MigrationTaskEntry testSubject;
+ String message = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMessage(message);
+ }
+
+
+ @Test
+ public void testSetExecutionTime() throws Exception {
+ MigrationTaskEntry testSubject;
+ double executionTime = 0.0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setExecutionTime(executionTime);
+ }
+
+
+ @Test
+ public void testGetMajorVersion() throws Exception {
+ MigrationTaskEntry testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMajorVersion();
+ }
+
+
+ @Test
+ public void testGetMinorVersion() throws Exception {
+ MigrationTaskEntry testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMinorVersion();
+ }
+
+
+ @Test
+ public void testGetTimestamp() throws Exception {
+ MigrationTaskEntry testSubject;
+ Date result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTimestamp();
+ }
+
+
+ @Test
+ public void testGetTaskName() throws Exception {
+ MigrationTaskEntry testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTaskName();
+ }
+
+
+ @Test
+ public void testGetTaskStatus() throws Exception {
+ MigrationTaskEntry testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTaskStatus();
+ }
+
+
+ @Test
+ public void testGetMessage() throws Exception {
+ MigrationTaskEntry testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMessage();
+ }
+
+
+ @Test
+ public void testGetExecutionTime() throws Exception {
+ MigrationTaskEntry testSubject;
+ double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getExecutionTime();
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ MigrationTaskEntry testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ MigrationTaskEntry testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceArtifactsDataCollectionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceArtifactsDataCollectionTest.java
new file mode 100644
index 0000000000..3c498e87f4
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceArtifactsDataCollectionTest.java
@@ -0,0 +1,47 @@
+package org.openecomp.sdc.be.resources.data;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+public class ServiceArtifactsDataCollectionTest {
+
+ private ServiceArtifactsDataCollection createTestSubject() {
+ return new ServiceArtifactsDataCollection();
+ }
+
+
+ @Test
+ public void testGetServiceArtifactDataMap() throws Exception {
+ ServiceArtifactsDataCollection testSubject;
+ Map<String, List<ESArtifactData>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceArtifactDataMap();
+ }
+
+
+ @Test
+ public void testSetServiceArtifactDataMap() throws Exception {
+ ServiceArtifactsDataCollection testSubject;
+ Map<String, List<ESArtifactData>> serviceArtifactDataMap = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceArtifactDataMap(serviceArtifactDataMap);
+ }
+
+
+ @Test
+ public void testGetNodeTemplateArtifacts() throws Exception {
+ ServiceArtifactsDataCollection testSubject;
+ String nodeTemplateName = "";
+ List<ESArtifactData> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNodeTemplateArtifacts(nodeTemplateName);
+ }
+} \ No newline at end of file
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java
new file mode 100644
index 0000000000..5172fc31dc
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java
@@ -0,0 +1,119 @@
+package org.openecomp.sdc.be.resources.data.auditing;
+
+import org.junit.Test;
+
+public class AuditingGenericEventTest {
+
+ private AuditingGenericEvent createTestSubject() {
+ return new AuditingGenericEvent();
+ }
+
+ @Test
+ public void testGetRequestId() throws Exception {
+ AuditingGenericEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequestId();
+ }
+
+ @Test
+ public void testSetRequestId() throws Exception {
+ AuditingGenericEvent testSubject;
+ String requestId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequestId(requestId);
+ }
+
+ @Test
+ public void testGetServiceInstanceId() throws Exception {
+ AuditingGenericEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceInstanceId();
+ }
+
+ @Test
+ public void testSetServiceInstanceId() throws Exception {
+ AuditingGenericEvent testSubject;
+ String serviceInstanceId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceInstanceId(serviceInstanceId);
+ }
+
+ @Test
+ public void testGetAction() throws Exception {
+ AuditingGenericEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAction();
+ }
+
+ @Test
+ public void testSetAction() throws Exception {
+ AuditingGenericEvent testSubject;
+ String action = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAction(action);
+ }
+
+ @Test
+ public void testGetStatus() throws Exception {
+ AuditingGenericEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStatus();
+ }
+
+ @Test
+ public void testSetStatus() throws Exception {
+ AuditingGenericEvent testSubject;
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStatus(status);
+ }
+
+ @Test
+ public void testGetDesc() throws Exception {
+ AuditingGenericEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDesc();
+ }
+
+ @Test
+ public void testSetDesc() throws Exception {
+ AuditingGenericEvent testSubject;
+ String desc = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDesc(desc);
+ }
+
+ @Test
+ public void testFillFields() throws Exception {
+ AuditingGenericEvent testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.fillFields();
+ }
+} \ No newline at end of file
diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/fe/GzipFilterTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/fe/GzipFilterTest.java
new file mode 100644
index 0000000000..685d6b3d8f
--- /dev/null
+++ b/catalog-fe/src/test/java/org/openecomp/sdc/fe/GzipFilterTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.sdc.fe;
+
+import javax.servlet.FilterConfig;
+
+import org.junit.Test;
+
+
+public class GzipFilterTest {
+
+ private GzipFilter createTestSubject() {
+ return new GzipFilter();
+ }
+
+
+
+
+ @Test
+ public void testInit() throws Exception {
+ GzipFilter testSubject;
+ FilterConfig filterConfig = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.init(filterConfig);
+ }
+
+
+ @Test
+ public void testDestroy() throws Exception {
+ GzipFilter testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.destroy();
+ }
+} \ No newline at end of file
diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/fe/listen/MyObjectMapperProviderTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/fe/listen/MyObjectMapperProviderTest.java
new file mode 100644
index 0000000000..c77206fb03
--- /dev/null
+++ b/catalog-fe/src/test/java/org/openecomp/sdc/fe/listen/MyObjectMapperProviderTest.java
@@ -0,0 +1,28 @@
+package org.openecomp.sdc.fe.listen;
+
+import org.junit.Test;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+
+public class MyObjectMapperProviderTest {
+
+ private MyObjectMapperProvider createTestSubject() {
+ return new MyObjectMapperProvider();
+ }
+
+
+ @Test
+ public void testGetContext() throws Exception {
+ MyObjectMapperProvider testSubject;
+ Class<?> type = null;
+ ObjectMapper result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getContext(type);
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java
new file mode 100644
index 0000000000..dc801581b9
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java
@@ -0,0 +1,54 @@
+package org.openecomp.sdc.be.model;
+
+import org.junit.Test;
+
+public class ArtifactUiDownloadDataTest {
+
+ private ArtifactUiDownloadData createTestSubject() {
+ return new ArtifactUiDownloadData();
+ }
+
+
+ @Test
+ public void testSetArtifactName() throws Exception {
+ ArtifactUiDownloadData testSubject;
+ String artifactName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactName(artifactName);
+ }
+
+
+ @Test
+ public void testSetBase64Contents() throws Exception {
+ ArtifactUiDownloadData testSubject;
+ String base64Contents = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBase64Contents(base64Contents);
+ }
+
+
+ @Test
+ public void testGetArtifactName() throws Exception {
+ ArtifactUiDownloadData testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactName();
+ }
+
+
+ @Test
+ public void testGetBase64Contents() throws Exception {
+ ArtifactUiDownloadData testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBase64Contents();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java
new file mode 100644
index 0000000000..ca5d1a2ec8
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java
@@ -0,0 +1,44 @@
+package org.openecomp.sdc.be.model;
+
+import org.junit.Test;
+
+
+public class FunctionalMenuInfoTest {
+
+ private FunctionalMenuInfo createTestSubject() {
+ return new FunctionalMenuInfo();
+ }
+
+
+ @Test
+ public void testGetFunctionalMenu() throws Exception {
+ FunctionalMenuInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFunctionalMenu();
+ }
+
+
+ @Test
+ public void testSetFunctionalMenu() throws Exception {
+ FunctionalMenuInfo testSubject;
+ String functionalMenu = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFunctionalMenu(functionalMenu);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ FunctionalMenuInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java
new file mode 100644
index 0000000000..d6d39ae825
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java
@@ -0,0 +1,135 @@
+package org.openecomp.sdc.be.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class NodeTypeInfoTest {
+
+ private NodeTypeInfo createTestSubject() {
+ return new NodeTypeInfo();
+ }
+
+
+ @Test
+ public void testGetUnmarkedCopy() throws Exception {
+ NodeTypeInfo testSubject;
+ NodeTypeInfo result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUnmarkedCopy();
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ NodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ NodeTypeInfo testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testGetTemplateFileName() throws Exception {
+ NodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTemplateFileName();
+ }
+
+
+ @Test
+ public void testSetTemplateFileName() throws Exception {
+ NodeTypeInfo testSubject;
+ String templateFileName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTemplateFileName(templateFileName);
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ NodeTypeInfo testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ NodeTypeInfo testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testIsNested() throws Exception {
+ NodeTypeInfo testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isNested();
+ }
+
+
+ @Test
+ public void testSetNested() throws Exception {
+ NodeTypeInfo testSubject;
+ boolean isNested = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNested(isNested);
+ }
+
+
+ @Test
+ public void testGetMappedToscaTemplate() throws Exception {
+ NodeTypeInfo testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMappedToscaTemplate();
+ }
+
+
+ @Test
+ public void testSetMappedToscaTemplate() throws Exception {
+ NodeTypeInfo testSubject;
+ Map<String, Object> mappedToscaTemplate = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMappedToscaTemplate(mappedToscaTemplate);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java
new file mode 100644
index 0000000000..58bccbefda
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java
@@ -0,0 +1,112 @@
+package org.openecomp.sdc.be.model;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class RequirementImplDefTest {
+
+ private RequirementImplDef createTestSubject() {
+ return new RequirementImplDef();
+ }
+
+
+ @Test
+ public void testGetNodeId() throws Exception {
+ RequirementImplDef testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNodeId();
+ }
+
+
+ @Test
+ public void testSetNodeId() throws Exception {
+ RequirementImplDef testSubject;
+ String nodeId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNodeId(nodeId);
+ }
+
+
+ @Test
+ public void testGetUniqueId() throws Exception {
+ RequirementImplDef testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUniqueId();
+ }
+
+
+ @Test
+ public void testSetUniqueId() throws Exception {
+ RequirementImplDef testSubject;
+ String uniqueId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUniqueId(uniqueId);
+ }
+
+
+ @Test
+ public void testGetRequirementProperties() throws Exception {
+ RequirementImplDef testSubject;
+ Map<String, CapabiltyInstance> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirementProperties();
+ }
+
+
+ @Test
+ public void testSetRequirementProperties() throws Exception {
+ RequirementImplDef testSubject;
+ Map<String, CapabiltyInstance> requirementProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirementProperties(requirementProperties);
+ }
+
+
+ @Test
+ public void testGetPoint() throws Exception {
+ RequirementImplDef testSubject;
+ Point result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPoint();
+ }
+
+
+ @Test
+ public void testSetPoint() throws Exception {
+ RequirementImplDef testSubject;
+ Point point = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPoint(point);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ RequirementImplDef testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java
new file mode 100644
index 0000000000..83472b0db5
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java
@@ -0,0 +1,66 @@
+package org.openecomp.sdc.be.model;
+
+import org.junit.Test;
+
+
+public class RequirementInstanceTest {
+
+ private RequirementInstance createTestSubject() {
+ return new RequirementInstance();
+ }
+
+
+ @Test
+ public void testGetNode() throws Exception {
+ RequirementInstance testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode();
+ }
+
+
+ @Test
+ public void testSetNode() throws Exception {
+ RequirementInstance testSubject;
+ String node = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode(node);
+ }
+
+
+ @Test
+ public void testGetRelationship() throws Exception {
+ RequirementInstance testSubject;
+ RelationshipImpl result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelationship();
+ }
+
+
+ @Test
+ public void testSetRelationship() throws Exception {
+ RequirementInstance testSubject;
+ RelationshipImpl relationship = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelationship(relationship);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ RequirementInstance testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java
new file mode 100644
index 0000000000..92075ba128
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java
@@ -0,0 +1,79 @@
+package org.openecomp.sdc.be.model;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class UploadCapInfoTest {
+
+ private UploadCapInfo createTestSubject() {
+ return new UploadCapInfo();
+ }
+
+
+ @Test
+ public void testGetNode() throws Exception {
+ UploadCapInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode();
+ }
+
+
+ @Test
+ public void testSetNode() throws Exception {
+ UploadCapInfo testSubject;
+ String node = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode(node);
+ }
+
+
+ @Test
+ public void testGetValidSourceTypes() throws Exception {
+ UploadCapInfo testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValidSourceTypes();
+ }
+
+
+ @Test
+ public void testSetValidSourceTypes() throws Exception {
+ UploadCapInfo testSubject;
+ List<String> validSourceTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValidSourceTypes(validSourceTypes);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ UploadCapInfo testSubject;
+ List<UploadPropInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ UploadCapInfo testSubject;
+ List<UploadPropInfo> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java
new file mode 100644
index 0000000000..9cc0d1c3d9
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java
@@ -0,0 +1,102 @@
+package org.openecomp.sdc.be.model;
+
+import java.util.List;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.elements.GetInputValueDataDefinition;
+
+
+public class UploadPropInfoTest {
+
+ private UploadPropInfo createTestSubject() {
+ return new UploadPropInfo();
+ }
+
+
+ @Test
+ public void testGetGet_input() throws Exception {
+ UploadPropInfo testSubject;
+ List<GetInputValueDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGet_input();
+ }
+
+
+ @Test
+ public void testSetGet_input() throws Exception {
+ UploadPropInfo testSubject;
+ List<GetInputValueDataDefinition> get_input = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGet_input(get_input);
+ }
+
+
+ @Test
+ public void testGetValue() throws Exception {
+ UploadPropInfo testSubject;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValue();
+ }
+
+
+ @Test
+ public void testSetValue() throws Exception {
+ UploadPropInfo testSubject;
+ Object value = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValue(value);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ UploadPropInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ UploadPropInfo testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+ @Test
+ public void testIsPassword() throws Exception {
+ UploadPropInfo testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isPassword();
+ }
+
+
+ @Test
+ public void testSetPassword() throws Exception {
+ UploadPropInfo testSubject;
+ boolean password = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPassword(password);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java
new file mode 100644
index 0000000000..9aebec85fe
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java
@@ -0,0 +1,55 @@
+package org.openecomp.sdc.be.model;
+
+import org.junit.Test;
+
+
+public class UploadReqInfoTest {
+
+ private UploadReqInfo createTestSubject() {
+ return new UploadReqInfo();
+ }
+
+
+ @Test
+ public void testGetCapabilityName() throws Exception {
+ UploadReqInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilityName();
+ }
+
+
+ @Test
+ public void testSetCapabilityName() throws Exception {
+ UploadReqInfo testSubject;
+ String capabilityName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilityName(capabilityName);
+ }
+
+
+ @Test
+ public void testGetNode() throws Exception {
+ UploadReqInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNode();
+ }
+
+
+ @Test
+ public void testSetNode() throws Exception {
+ UploadReqInfo testSubject;
+ String node = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNode(node);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java
new file mode 100644
index 0000000000..cac17ef798
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java
@@ -0,0 +1,57 @@
+package org.openecomp.sdc.be.model.category;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class CategoryDefinitionTest {
+
+ private CategoryDefinition createTestSubject() {
+ return new CategoryDefinition();
+ }
+
+
+ @Test
+ public void testGetSubcategories() throws Exception {
+ CategoryDefinition testSubject;
+ List<SubCategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSubcategories();
+ }
+
+
+ @Test
+ public void testSetSubcategories() throws Exception {
+ CategoryDefinition testSubject;
+ List<SubCategoryDefinition> subcategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSubcategories(subcategories);
+ }
+
+
+ @Test
+ public void testAddSubCategory() throws Exception {
+ CategoryDefinition testSubject;
+ SubCategoryDefinition subcategory = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.addSubCategory(subcategory);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ CategoryDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
new file mode 100644
index 0000000000..4349ca24e3
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
@@ -0,0 +1,57 @@
+package org.openecomp.sdc.be.model.category;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class SubCategoryDefinitionTest {
+
+ private SubCategoryDefinition createTestSubject() {
+ return new SubCategoryDefinition();
+ }
+
+
+ @Test
+ public void testGetGroupings() throws Exception {
+ SubCategoryDefinition testSubject;
+ List<GroupingDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroupings();
+ }
+
+
+ @Test
+ public void testSetGroupings() throws Exception {
+ SubCategoryDefinition testSubject;
+ List<GroupingDefinition> groupingDefinitions = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroupings(groupingDefinitions);
+ }
+
+
+ @Test
+ public void testAddGrouping() throws Exception {
+ SubCategoryDefinition testSubject;
+ GroupingDefinition groupingDefinition = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.addGrouping(groupingDefinition);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ SubCategoryDefinition testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java
new file mode 100644
index 0000000000..aae9d6f2a0
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java
@@ -0,0 +1,173 @@
+package org.openecomp.sdc.be.model.jsontitan.datamodel;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.elements.InterfaceDataDefinition;
+import org.openecomp.sdc.be.datatypes.elements.ListCapabilityDataDefinition;
+import org.openecomp.sdc.be.datatypes.elements.ListRequirementDataDefinition;
+import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition;
+import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
+
+
+public class NodeTypeTest {
+
+ private NodeType createTestSubject() {
+ return new NodeType();
+ }
+
+
+ @Test
+ public void testGetDerivedList() throws Exception {
+ NodeType testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedList();
+ }
+
+
+ @Test
+ public void testSetDerivedList() throws Exception {
+ NodeType testSubject;
+ List<String> derivedList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedList(derivedList);
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ NodeType testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ NodeType testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testGetAttributes() throws Exception {
+ NodeType testSubject;
+ Map<String, PropertyDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAttributes();
+ }
+
+
+ @Test
+ public void testSetAttributes() throws Exception {
+ NodeType testSubject;
+ Map<String, PropertyDataDefinition> attributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAttributes(attributes);
+ }
+
+
+ @Test
+ public void testGetCapabilties() throws Exception {
+ NodeType testSubject;
+ Map<String, ListCapabilityDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilties();
+ }
+
+
+ @Test
+ public void testSetCapabilties() throws Exception {
+ NodeType testSubject;
+ Map<String, ListCapabilityDataDefinition> capabilties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilties(capabilties);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ NodeType testSubject;
+ Map<String, ListRequirementDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ NodeType testSubject;
+ Map<String, ListRequirementDataDefinition> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+
+
+ @Test
+ public void testGetCapabiltiesProperties() throws Exception {
+ NodeType testSubject;
+ Map<String, MapPropertiesDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabiltiesProperties();
+ }
+
+
+ @Test
+ public void testSetCapabiltiesProperties() throws Exception {
+ NodeType testSubject;
+ Map<String, MapPropertiesDataDefinition> capabiltiesProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabiltiesProperties(capabiltiesProperties);
+ }
+
+
+ @Test
+ public void testGetInterfaceArtifacts() throws Exception {
+ NodeType testSubject;
+ Map<String, InterfaceDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInterfaceArtifacts();
+ }
+
+
+ @Test
+ public void testSetInterfaceArtifacts() throws Exception {
+ NodeType testSubject;
+ Map<String, InterfaceDataDefinition> interfaceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInterfaceArtifacts(interfaceArtifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java
new file mode 100644
index 0000000000..72ca0c0cab
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java
@@ -0,0 +1,403 @@
+package org.openecomp.sdc.be.model.jsontitan.datamodel;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.elements.*;
+import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
+
+
+public class TopologyTemplateTest {
+
+ private TopologyTemplate createTestSubject() {
+ return new TopologyTemplate();
+ }
+
+
+ @Test
+ public void testGetInputs() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, PropertyDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInputs();
+ }
+
+
+ @Test
+ public void testSetInputs() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, PropertyDataDefinition> inputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInputs(inputs);
+ }
+
+
+ @Test
+ public void testGetInstInputs() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstInputs();
+ }
+
+
+ @Test
+ public void testSetInstInputs() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> instInputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstInputs(instInputs);
+ }
+
+
+ @Test
+ public void testGetHeatParameters() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ? extends ToscaDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeatParameters();
+ }
+
+
+ @Test
+ public void testSetHeatParameters() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ? extends ToscaDataDefinition> heatParameters = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeatParameters(heatParameters);
+ }
+
+
+ @Test
+ public void testGetInstAttributes() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstAttributes();
+ }
+
+
+ @Test
+ public void testSetInstAttributes() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> instAttributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstAttributes(instAttributes);
+ }
+
+
+ @Test
+ public void testGetInstProperties() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstProperties();
+ }
+
+
+ @Test
+ public void testSetInstProperties() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapPropertiesDataDefinition> instProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstProperties(instProperties);
+ }
+
+
+ @Test
+ public void testGetGroups() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, GroupDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroups();
+ }
+
+
+ @Test
+ public void testSetGroups() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, GroupDataDefinition> groups = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroups(groups);
+ }
+
+
+ @Test
+ public void testGetInstGroups() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapGroupsDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstGroups();
+ }
+
+
+ @Test
+ public void testSetInstGroups() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapGroupsDataDefinition> instGroups = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstGroups(instGroups);
+ }
+
+
+ @Test
+ public void testGetServiceApiArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ArtifactDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceApiArtifacts();
+ }
+
+
+ @Test
+ public void testSetServiceApiArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ArtifactDataDefinition> serviceApiArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceApiArtifacts(serviceApiArtifacts);
+ }
+
+
+ @Test
+ public void testGetCompositions() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, CompositionDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCompositions();
+ }
+
+
+ @Test
+ public void testSetCompositions() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, CompositionDataDefinition> compositions = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCompositions(compositions);
+ }
+
+
+ @Test
+ public void testGetCalculatedCapabilities() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListCapabilityDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCalculatedCapabilities();
+ }
+
+
+ @Test
+ public void testSetCalculatedCapabilities() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListCapabilityDataDefinition> calculatedCapabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCalculatedCapabilities(calculatedCapabilities);
+ }
+
+
+ @Test
+ public void testGetCalculatedRequirements() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListRequirementDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCalculatedRequirements();
+ }
+
+
+ @Test
+ public void testSetCalculatedRequirements() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListRequirementDataDefinition> calculatedRequirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCalculatedRequirements(calculatedRequirements);
+ }
+
+
+ @Test
+ public void testGetFullfilledCapabilities() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListCapabilityDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFullfilledCapabilities();
+ }
+
+
+ @Test
+ public void testSetFullfilledCapabilities() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListCapabilityDataDefinition> fullfilledCapabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFullfilledCapabilities(fullfilledCapabilities);
+ }
+
+
+ @Test
+ public void testGetFullfilledRequirements() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListRequirementDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFullfilledRequirements();
+ }
+
+
+ @Test
+ public void testSetFullfilledRequirements() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapListRequirementDataDefinition> fullfilledRequirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFullfilledRequirements(fullfilledRequirements);
+ }
+
+
+ @Test
+ public void testGetInstDeploymentArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapArtifactDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testSetInstDeploymentArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapArtifactDataDefinition> instDeploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstDeploymentArtifacts(instDeploymentArtifacts);
+ }
+
+
+ @Test
+ public void testGetCalculatedCapabilitiesProperties() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapCapabilityProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCalculatedCapabilitiesProperties();
+ }
+
+
+ @Test
+ public void testSetCalculatedCapabilitiesProperties() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapCapabilityProperty> calculatedCapabilitiesProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCalculatedCapabilitiesProperties(calculatedCapabilitiesProperties);
+ }
+
+
+ @Test
+ public void testGetInstanceArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapArtifactDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstanceArtifacts();
+ }
+
+
+ @Test
+ public void testSetInstanceArtifacts() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, MapArtifactDataDefinition> instanceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstanceArtifacts(instanceArtifacts);
+ }
+
+
+
+
+
+ @Test
+ public void testGetComponentInstances() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ComponentInstanceDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstances();
+ }
+
+
+ @Test
+ public void testSetComponentInstances() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, ComponentInstanceDataDefinition> instances = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstances(instances);
+ }
+
+
+ @Test
+ public void testGetRelations() throws Exception {
+ TopologyTemplate testSubject;
+ Map<String, RelationshipInstDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelations();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java
new file mode 100644
index 0000000000..918b0328a9
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java
@@ -0,0 +1,25 @@
+package org.openecomp.sdc.be.model.jsontitan.datamodel;
+
+import org.junit.Test;
+
+
+public class ToscaElementTypeEnumTest {
+
+ private ToscaElementTypeEnum createTestSubject() {
+ return ToscaElementTypeEnum.TOPOLOGY_TEMPLATE;
+ }
+
+
+
+
+
+ @Test
+ public void testGetValue() throws Exception {
+ ToscaElementTypeEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValue();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java
new file mode 100644
index 0000000000..b00b13e162
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.be.model.jsontitan.enums;
+
+import org.junit.Test;
+
+
+public class JsonConstantKeysEnumTest {
+
+ private JsonConstantKeysEnum createTestSubject() {
+ return JsonConstantKeysEnum.COMPOSITION;
+ }
+
+
+ @Test
+ public void testGetValue() throws Exception {
+ JsonConstantKeysEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValue();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/ToscaTypeTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/ToscaTypeTest.java
new file mode 100644
index 0000000000..9e6605b8a9
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/ToscaTypeTest.java
@@ -0,0 +1,49 @@
+package org.openecomp.sdc.be.model.tosca;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+
+public class ToscaTypeTest {
+
+ private ToscaType createTestSubject() {
+ return ToscaType.BOOLEAN;
+ }
+
+
+
+ @Test
+ public void testIsValidValue() throws Exception {
+ ToscaType testSubject;
+ String value = "";
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isValidValue(value);
+ }
+
+
+
+ @Test
+ public void testConvert() throws Exception {
+ ToscaType testSubject;
+ String value = "";
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convert(value);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ ToscaType testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java
new file mode 100644
index 0000000000..af8f28dd25
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java
@@ -0,0 +1,28 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class EqualConstraintTest {
+
+ private EqualConstraint createTestSubject() {
+ return new EqualConstraint("");
+ }
+
+
+
+
+ @Test
+ public void testValidate() throws Exception {
+ EqualConstraint testSubject;
+ Object propertyValue = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ propertyValue = null;
+ testSubject.validate(propertyValue);
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java
new file mode 100644
index 0000000000..7d959d4016
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+public class GreaterThanConstraintTest {
+
+ private GreaterThanConstraint createTestSubject() {
+ return new GreaterThanConstraint("");
+ }
+
+
+
+
+
+
+ @Test
+ public void testGetGreaterThan() throws Exception {
+ GreaterThanConstraint testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGreaterThan();
+ }
+
+
+ @Test
+ public void testSetGreaterThan() throws Exception {
+ GreaterThanConstraint testSubject;
+ String greaterThan = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGreaterThan(greaterThan);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java
new file mode 100644
index 0000000000..e1df65ef34
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java
@@ -0,0 +1,58 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class InRangeConstraintTest {
+
+ private InRangeConstraint createTestSubject() {
+ return new InRangeConstraint(null);
+ }
+
+
+
+
+
+ @Test
+ public void testGetRangeMinValue() throws Exception {
+ InRangeConstraint testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRangeMinValue();
+ }
+
+
+ @Test
+ public void testSetRangeMinValue() throws Exception {
+ InRangeConstraint testSubject;
+ String minValue = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRangeMinValue(minValue);
+ }
+
+
+ @Test
+ public void testGetRangeMaxValue() throws Exception {
+ InRangeConstraint testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRangeMaxValue();
+ }
+
+
+ @Test
+ public void testSetRangeMaxValue() throws Exception {
+ InRangeConstraint testSubject;
+ String maxValue = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRangeMaxValue(maxValue);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java
new file mode 100644
index 0000000000..46a273b892
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class LengthConstraintTest {
+
+ private LengthConstraint createTestSubject() {
+ return new LengthConstraint();
+ }
+
+
+
+
+
+ @Test
+ public void testGetLength() throws Exception {
+ LengthConstraint testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLength();
+ }
+
+
+ @Test
+ public void testSetLength() throws Exception {
+ LengthConstraint testSubject;
+ Integer length = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLength(length);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java
new file mode 100644
index 0000000000..54d8725914
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java
@@ -0,0 +1,38 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class LessOrEqualConstraintTest {
+
+ private LessOrEqualConstraint createTestSubject() {
+ return new LessOrEqualConstraint("");
+ }
+
+
+
+
+
+
+
+ @Test
+ public void testGetLessOrEqual() throws Exception {
+ LessOrEqualConstraint testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLessOrEqual();
+ }
+
+
+ @Test
+ public void testSetLessOrEqual() throws Exception {
+ LessOrEqualConstraint testSubject;
+ String lessOrEqual = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLessOrEqual(lessOrEqual);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java
new file mode 100644
index 0000000000..55c70c51c3
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java
@@ -0,0 +1,34 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class MaxLengthConstraintTest {
+
+ private MaxLengthConstraint createTestSubject() {
+ return new MaxLengthConstraint(null);
+ }
+
+
+
+ @Test
+ public void testGetMaxLength() throws Exception {
+ MaxLengthConstraint testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMaxLength();
+ }
+
+
+ @Test
+ public void testSetMaxLength() throws Exception {
+ MaxLengthConstraint testSubject;
+ Integer maxLength = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMaxLength(maxLength);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java
new file mode 100644
index 0000000000..1b8694f49e
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java
@@ -0,0 +1,36 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class MinLengthConstraintTest {
+
+ private MinLengthConstraint createTestSubject() {
+ return new MinLengthConstraint(null);
+ }
+
+
+
+
+
+ @Test
+ public void testGetMinLength() throws Exception {
+ MinLengthConstraint testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMinLength();
+ }
+
+
+ @Test
+ public void testSetMinLength() throws Exception {
+ MinLengthConstraint testSubject;
+ Integer minLength = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMinLength(minLength);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java
new file mode 100644
index 0000000000..07c657ceac
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import org.junit.Test;
+
+
+public class PatternConstraintTest {
+
+ private PatternConstraint createTestSubject() {
+ return new PatternConstraint();
+ }
+
+
+ @Test
+ public void testSetPattern() throws Exception {
+ PatternConstraint testSubject;
+ String pattern = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPattern(pattern);
+ }
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java
new file mode 100644
index 0000000000..9b4c6b932d
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java
@@ -0,0 +1,40 @@
+package org.openecomp.sdc.be.model.tosca.constraints;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ValidValuesConstraintTest {
+
+ private ValidValuesConstraint createTestSubject() {
+ return new ValidValuesConstraint(null);
+ }
+
+
+
+
+
+
+
+ @Test
+ public void testGetValidValues() throws Exception {
+ ValidValuesConstraint testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValidValues();
+ }
+
+
+ @Test
+ public void testSetValidValues() throws Exception {
+ ValidValuesConstraint testSubject;
+ List<String> validValues = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValidValues(validValues);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java
new file mode 100644
index 0000000000..384c2d94ef
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class BooleanConverterTest {
+
+ private BooleanConverter createTestSubject() {
+ return BooleanConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ BooleanConverter result;
+
+ // default test
+ result = BooleanConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvertToToscaValue() throws Exception {
+ BooleanConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java
new file mode 100644
index 0000000000..d151f2aa27
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class DefaultConverterTest {
+
+ private DefaultConverter createTestSubject() {
+ return DefaultConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ DefaultConverter result;
+
+ // default test
+ result = DefaultConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvert() throws Exception {
+ DefaultConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convert(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java
new file mode 100644
index 0000000000..1fb5c8cbf7
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class FloatConverterTest {
+
+ private FloatConverter createTestSubject() {
+ return FloatConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ FloatConverter result;
+
+ // default test
+ result = FloatConverter.getInstance();
+ }
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java
new file mode 100644
index 0000000000..41a08b3e66
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class HeatBooleanConverterTest {
+
+ private HeatBooleanConverter createTestSubject() {
+ return HeatBooleanConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ HeatBooleanConverter result;
+
+ // default test
+ result = HeatBooleanConverter.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java
new file mode 100644
index 0000000000..636170601f
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class HeatCommaDelimitedListConverterTest {
+
+ private HeatCommaDelimitedListConverter createTestSubject() {
+ return HeatCommaDelimitedListConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ HeatCommaDelimitedListConverter result;
+
+ // default test
+ result = HeatCommaDelimitedListConverter.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java
new file mode 100644
index 0000000000..1d13834748
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class HeatJsonConverterTest {
+
+ private HeatJsonConverter createTestSubject() {
+ return HeatJsonConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ HeatJsonConverter result;
+
+ // default test
+ result = HeatJsonConverter.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java
new file mode 100644
index 0000000000..93a54a7168
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class HeatNumberConverterTest {
+
+ private HeatNumberConverter createTestSubject() {
+ return HeatNumberConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ HeatNumberConverter result;
+
+ // default test
+ result = HeatNumberConverter.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java
new file mode 100644
index 0000000000..8691ba00c5
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java
@@ -0,0 +1,46 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class IntegerConverterTest {
+
+ private IntegerConverter createTestSubject() {
+ return IntegerConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ IntegerConverter result;
+
+ // default test
+ result = IntegerConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvertToToscaValue() throws Exception {
+ IntegerConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ Object result;
+
+ // test 1
+ testSubject = createTestSubject();
+ value = null;
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ Assert.assertEquals(null, result);
+
+ // test 2
+ testSubject = createTestSubject();
+ value = "";
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ Assert.assertEquals(null, result);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java
new file mode 100644
index 0000000000..537b89509b
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class JsonConverterTest {
+
+ private JsonConverter createTestSubject() {
+ return JsonConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ JsonConverter result;
+
+ // default test
+ result = JsonConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvert() throws Exception {
+ JsonConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convert(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java
new file mode 100644
index 0000000000..7002f813c1
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java
@@ -0,0 +1,28 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class ListConverterTest {
+
+ private ListConverter createTestSubject() {
+ return new ListConverter();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ListConverter result;
+
+ // default test
+ result = ListConverter.getInstance();
+ }
+
+
+
+
+
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java
new file mode 100644
index 0000000000..c837baa0ab
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java
@@ -0,0 +1,43 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class MapConverterTest {
+
+ private MapConverter createTestSubject() {
+ return new MapConverter();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ MapConverter result;
+
+ // default test
+ result = MapConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvert() throws Exception {
+ MapConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convert(value, innerType, dataTypes);
+ }
+
+
+
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java
new file mode 100644
index 0000000000..0cfdba83d2
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+public class StringConvertorTest {
+
+ private StringConvertor createTestSubject() {
+ return StringConvertor.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ StringConvertor result;
+
+ // default test
+ result = StringConvertor.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java
new file mode 100644
index 0000000000..d5eab58653
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java
@@ -0,0 +1,21 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+public class ToscaBooleanConverterTest {
+
+ private ToscaBooleanConverter createTestSubject() {
+ return ToscaBooleanConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ToscaBooleanConverter result;
+
+ // default test
+ result = ToscaBooleanConverter.getInstance();
+ }
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java
new file mode 100644
index 0000000000..dc7526eb0e
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class ToscaJsonValueConverterTest {
+
+ private ToscaJsonValueConverter createTestSubject() {
+ return ToscaJsonValueConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ToscaJsonValueConverter result;
+
+ // default test
+ result = ToscaJsonValueConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvertToToscaValue() throws Exception {
+ ToscaJsonValueConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java
new file mode 100644
index 0000000000..04ae0696a7
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java
@@ -0,0 +1,23 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import org.junit.Test;
+
+
+public class ToscaListValueConverterTest {
+
+ private ToscaListValueConverter createTestSubject() {
+ return ToscaListValueConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ToscaListValueConverter result;
+
+ // default test
+ result = ToscaListValueConverter.getInstance();
+ }
+
+
+
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java
new file mode 100644
index 0000000000..a9909b882f
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class ToscaStringConvertorTest {
+
+ private ToscaStringConvertor createTestSubject() {
+ return ToscaStringConvertor.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ToscaStringConvertor result;
+
+ // default test
+ result = ToscaStringConvertor.getInstance();
+ }
+
+
+ @Test
+ public void testConvertToToscaValue() throws Exception {
+ ToscaStringConvertor testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java
new file mode 100644
index 0000000000..ea9a4a8eb7
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java
@@ -0,0 +1,37 @@
+package org.openecomp.sdc.be.model.tosca.converters;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.DataTypeDefinition;
+
+
+public class ToscaValueDefaultConverterTest {
+
+ private ToscaValueDefaultConverter createTestSubject() {
+ return ToscaValueDefaultConverter.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ ToscaValueDefaultConverter result;
+
+ // default test
+ result = ToscaValueDefaultConverter.getInstance();
+ }
+
+
+ @Test
+ public void testConvertToToscaValue() throws Exception {
+ ToscaValueDefaultConverter testSubject;
+ String value = "";
+ String innerType = "";
+ Map<String, DataTypeDefinition> dataTypes = null;
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convertToToscaValue(value, innerType, dataTypes);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java
new file mode 100644
index 0000000000..5e1d37851e
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java
@@ -0,0 +1,62 @@
+package org.openecomp.sdc.be.model.tosca.version;
+
+import org.junit.Test;
+
+
+public class ComparableVersionTest {
+
+ private ComparableVersion createTestSubject() {
+ return new ComparableVersion("");
+ }
+
+
+ @Test
+ public void testParseVersion() throws Exception {
+ ComparableVersion testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.parseVersion(version);
+ }
+
+
+
+
+
+
+
+
+ @Test
+ public void testToString() throws Exception {
+ ComparableVersion testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ ComparableVersion testSubject;
+ Object o = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.equals(o);
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ ComparableVersion testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java
new file mode 100644
index 0000000000..cf848901e5
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java
@@ -0,0 +1,129 @@
+package org.openecomp.sdc.be.model.tosca.version;
+
+import org.junit.Test;
+
+public class VersionTest {
+
+ private Version createTestSubject() {
+ return new Version("");
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ Version testSubject;
+ Object other = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.equals(other);
+ }
+
+
+ @Test
+ public void testCompareTo() throws Exception {
+ Version testSubject;
+ Version otherVersion = null;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetMajorVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMajorVersion();
+ }
+
+
+ @Test
+ public void testGetMinorVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMinorVersion();
+ }
+
+
+ @Test
+ public void testGetIncrementalVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIncrementalVersion();
+ }
+
+
+ @Test
+ public void testGetBuildNumber() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBuildNumber();
+ }
+
+
+ @Test
+ public void testGetQualifier() throws Exception {
+ Version testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getQualifier();
+ }
+
+
+ @Test
+ public void testParseVersion() throws Exception {
+ Version testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.parseVersion(version);
+ }
+
+
+ @Test
+ public void testGetNextIntegerToken() throws Exception {
+ Integer result;
+
+ // default test
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ Version testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java
new file mode 100644
index 0000000000..c0d69fae76
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java
@@ -0,0 +1,80 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.category.CategoryDefinition;
+
+
+public class UiCategoriesTest {
+
+ private UiCategories createTestSubject() {
+ return new UiCategories();
+ }
+
+
+ @Test
+ public void testGetResourceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceCategories();
+ }
+
+
+ @Test
+ public void testSetResourceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> resourceCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceCategories(resourceCategories);
+ }
+
+
+ @Test
+ public void testGetServiceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceCategories();
+ }
+
+
+ @Test
+ public void testSetServiceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> serviceCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceCategories(serviceCategories);
+ }
+
+
+ @Test
+ public void testGetProductCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProductCategories();
+ }
+
+
+ @Test
+ public void testSetProductCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> productCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProductCategories(productCategories);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java
new file mode 100644
index 0000000000..4fd0ccc944
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java
@@ -0,0 +1,444 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+import org.openecomp.sdc.be.model.CapabilityDefinition;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.ComponentInstanceInput;
+import org.openecomp.sdc.be.model.ComponentInstanceProperty;
+import org.openecomp.sdc.be.model.GroupDefinition;
+import org.openecomp.sdc.be.model.InputDefinition;
+import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
+import org.openecomp.sdc.be.model.RequirementDefinition;
+import org.openecomp.sdc.be.model.category.CategoryDefinition;
+
+
+public class UiComponentDataTransferTest {
+
+ private UiComponentDataTransfer createTestSubject() {
+ return new UiComponentDataTransfer();
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+
+
+ @Test
+ public void testGetDeploymentArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testSetDeploymentArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> deploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDeploymentArtifacts(deploymentArtifacts);
+ }
+
+
+ @Test
+ public void testGetToscaArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaArtifacts();
+ }
+
+
+ @Test
+ public void testSetToscaArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> toscaArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaArtifacts(toscaArtifacts);
+ }
+
+
+ @Test
+ public void testGetCategories() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategories();
+ }
+
+
+ @Test
+ public void testSetCategories() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<CategoryDefinition> categories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategories(categories);
+ }
+
+
+ @Test
+ public void testGetCreatorUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatorUserId();
+ }
+
+
+ @Test
+ public void testSetCreatorUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String creatorUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCreatorUserId(creatorUserId);
+ }
+
+
+ @Test
+ public void testGetCreatorFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatorFullName();
+ }
+
+
+ @Test
+ public void testSetCreatorFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String creatorFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCreatorFullName(creatorFullName);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterUserId();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String lastUpdaterUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterUserId(lastUpdaterUserId);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterFullName();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String lastUpdaterFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterFullName(lastUpdaterFullName);
+ }
+
+
+ @Test
+ public void testGetComponentType() throws Exception {
+ UiComponentDataTransfer testSubject;
+ ComponentTypeEnum result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentType();
+ }
+
+
+ @Test
+ public void testSetComponentType() throws Exception {
+ UiComponentDataTransfer testSubject;
+ ComponentTypeEnum componentType = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentType(componentType);
+ }
+
+
+ @Test
+ public void testGetComponentInstances() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<ComponentInstance> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstances();
+ }
+
+
+ @Test
+ public void testSetComponentInstances() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<ComponentInstance> componentInstances = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstances(componentInstances);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesRelations() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<RequirementCapabilityRelDef> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesRelations();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesRelations() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<RequirementCapabilityRelDef> componentInstancesRelations = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesRelations(componentInstancesRelations);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceInput>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesInputs();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceInput>> componentInstancesInputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesInputs(componentInstancesInputs);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesProperties() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesProperties();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesProperties() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> componentInstancesProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesProperties(componentInstancesProperties);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesAttributes() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesAttributes();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesAttributes() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> componentInstancesAttributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesAttributes(componentInstancesAttributes);
+ }
+
+
+ @Test
+ public void testGetCapabilities() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<CapabilityDefinition>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilities();
+ }
+
+
+ @Test
+ public void testSetCapabilities() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<CapabilityDefinition>> capabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilities(capabilities);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<RequirementDefinition>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<RequirementDefinition>> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+
+
+ @Test
+ public void testGetInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<InputDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInputs();
+ }
+
+
+ @Test
+ public void testSetInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<InputDefinition> inputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInputs(inputs);
+ }
+
+
+ @Test
+ public void testGetGroups() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<GroupDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroups();
+ }
+
+
+ @Test
+ public void testSetGroups() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<GroupDefinition> groups = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroups(groups);
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<AdditionalInformationDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<AdditionalInformationDefinition> additionalInformation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java
new file mode 100644
index 0000000000..e50b6c4633
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java
@@ -0,0 +1,193 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
+import org.openecomp.sdc.be.model.InterfaceDefinition;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+
+
+public class UiResourceDataTransferTest {
+
+ private UiResourceDataTransfer createTestSubject() {
+ return new UiResourceDataTransfer();
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<AdditionalInformationDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<AdditionalInformationDefinition> additionalInformation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ UiResourceDataTransfer testSubject;
+ UiResourceMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ UiResourceDataTransfer testSubject;
+ UiResourceMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testGetDerivedList() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedList();
+ }
+
+
+ @Test
+ public void testSetDerivedList() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> derivedList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedList(derivedList);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+
+
+ @Test
+ public void testGetAttributes() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAttributes();
+ }
+
+
+ @Test
+ public void testSetAttributes() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> attributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAttributes(attributes);
+ }
+
+
+ @Test
+ public void testGetInterfaces() throws Exception {
+ UiResourceDataTransfer testSubject;
+ Map<String, InterfaceDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInterfaces();
+ }
+
+
+ @Test
+ public void testSetInterfaces() throws Exception {
+ UiResourceDataTransfer testSubject;
+ Map<String, InterfaceDefinition> interfaces = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInterfaces(interfaces);
+ }
+
+
+ @Test
+ public void testGetDefaultCapabilities() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultCapabilities();
+ }
+
+
+ @Test
+ public void testSetDefaultCapabilities() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> defaultCapabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDefaultCapabilities(defaultCapabilities);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java
new file mode 100644
index 0000000000..eb5ccff438
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java
@@ -0,0 +1,213 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.components.ResourceMetadataDataDefinition;
+import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
+
+
+public class UiResourceMetadataTest {
+
+ private UiResourceMetadata createTestSubject() {
+ return new UiResourceMetadata(null, null, new ResourceMetadataDataDefinition());
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ UiResourceMetadata testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ UiResourceMetadata testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testGetVendorName() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorName();
+ }
+
+
+ @Test
+ public void testSetVendorName() throws Exception {
+ UiResourceMetadata testSubject;
+ String vendorName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorName(vendorName);
+ }
+
+
+ @Test
+ public void testGetVendorRelease() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorRelease();
+ }
+
+
+ @Test
+ public void testSetVendorRelease() throws Exception {
+ UiResourceMetadata testSubject;
+ String vendorRelease = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorRelease(vendorRelease);
+ }
+
+
+ @Test
+ public void testGetResourceVendorModelNumber() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVendorModelNumber();
+ }
+
+
+ @Test
+ public void testSetResourceVendorModelNumber() throws Exception {
+ UiResourceMetadata testSubject;
+ String resourceVendorModelNumber = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVendorModelNumber(resourceVendorModelNumber);
+ }
+
+
+ @Test
+ public void testGetResourceType() throws Exception {
+ UiResourceMetadata testSubject;
+ ResourceTypeEnum result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceType();
+ }
+
+
+ @Test
+ public void testSetResourceType() throws Exception {
+ UiResourceMetadata testSubject;
+ ResourceTypeEnum resourceType = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceType(resourceType);
+ }
+
+
+ @Test
+ public void testGetIsAbstract() throws Exception {
+ UiResourceMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIsAbstract();
+ }
+
+
+ @Test
+ public void testSetIsAbstract() throws Exception {
+ UiResourceMetadata testSubject;
+ Boolean isAbstract = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIsAbstract(isAbstract);
+ }
+
+
+ @Test
+ public void testGetCost() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCost();
+ }
+
+
+ @Test
+ public void testSetCost() throws Exception {
+ UiResourceMetadata testSubject;
+ String cost = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCost(cost);
+ }
+
+
+ @Test
+ public void testGetLicenseType() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLicenseType();
+ }
+
+
+ @Test
+ public void testSetLicenseType() throws Exception {
+ UiResourceMetadata testSubject;
+ String licenseType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLicenseType(licenseType);
+ }
+
+
+ @Test
+ public void testGetToscaResourceName() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaResourceName();
+ }
+
+
+ @Test
+ public void testSetToscaResourceName() throws Exception {
+ UiResourceMetadata testSubject;
+ String toscaResourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaResourceName(toscaResourceName);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java
new file mode 100644
index 0000000000..3bb5aa10b0
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java
@@ -0,0 +1,58 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.Map;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+
+
+public class UiServiceDataTransferTest {
+
+ private UiServiceDataTransfer createTestSubject() {
+ return new UiServiceDataTransfer();
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ UiServiceDataTransfer testSubject;
+ UiServiceMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ UiServiceDataTransfer testSubject;
+ UiServiceMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetServiceApiArtifacts() throws Exception {
+ UiServiceDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceApiArtifacts();
+ }
+
+
+ @Test
+ public void testSetServiceApiArtifacts() throws Exception {
+ UiServiceDataTransfer testSubject;
+ Map<String, ArtifactDefinition> serviceApiArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceApiArtifacts(serviceApiArtifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java
new file mode 100644
index 0000000000..712053c2f6
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java
@@ -0,0 +1,122 @@
+package org.openecomp.sdc.be.ui.model;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
+
+
+public class UiServiceMetadataTest {
+
+ private UiServiceMetadata createTestSubject() {
+ return new UiServiceMetadata(null, new ServiceMetadataDataDefinition());
+ }
+
+
+ @Test
+ public void testGetDistributionStatus() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDistributionStatus();
+ }
+
+
+ @Test
+ public void testSetDistributionStatus() throws Exception {
+ UiServiceMetadata testSubject;
+ String distributionStatus = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDistributionStatus(distributionStatus);
+ }
+
+
+ @Test
+ public void testGetEcompGeneratedNaming() throws Exception {
+ UiServiceMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEcompGeneratedNaming();
+ }
+
+
+ @Test
+ public void testSetEcompGeneratedNaming() throws Exception {
+ UiServiceMetadata testSubject;
+ Boolean ecompGeneratedNaming = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEcompGeneratedNaming(ecompGeneratedNaming);
+ }
+
+
+ @Test
+ public void testGetNamingPolicy() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNamingPolicy();
+ }
+
+
+ @Test
+ public void testSetNamingPolicy() throws Exception {
+ UiServiceMetadata testSubject;
+ String namingPolicy = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNamingPolicy(namingPolicy);
+ }
+
+
+ @Test
+ public void testGetServiceType() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceType();
+ }
+
+
+ @Test
+ public void testSetServiceType() throws Exception {
+ UiServiceMetadata testSubject;
+ String serviceType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceType(serviceType);
+ }
+
+
+ @Test
+ public void testGetServiceRole() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceRole();
+ }
+
+
+ @Test
+ public void testSetServiceRole() throws Exception {
+ UiServiceMetadata testSubject;
+ String serviceRole = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceRole(serviceRole);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/BeEcompErrorManagerTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/BeEcompErrorManagerTest.java
new file mode 100644
index 0000000000..440f7587c7
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/BeEcompErrorManagerTest.java
@@ -0,0 +1,733 @@
+package org.openecomp.sdc.be.config;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.config.BeEcompErrorManager.ErrorSeverity;
+import org.openecomp.sdc.common.config.IEcompConfigurationManager;
+
+
+public class BeEcompErrorManagerTest {
+
+ private BeEcompErrorManager createTestSubject() {
+ return BeEcompErrorManager.getInstance();
+ }
+
+
+ @Test
+ public void testGetInstance() throws Exception {
+ BeEcompErrorManager result;
+
+ // default test
+ result = BeEcompErrorManager.getInstance();
+ }
+
+
+
+
+ @Test
+ public void testGetConfigurationManager() throws Exception {
+ BeEcompErrorManager testSubject;
+ IEcompConfigurationManager result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConfigurationManager();
+ }
+
+
+ @Test
+ public void testLogBeUebAuthenticationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String reason = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUebAuthenticationError(context, reason);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckRecovery() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckRecovery(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckTitanRecovery() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckTitanRecovery(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckElasticSearchRecovery() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckElasticSearchRecovery(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckUebClusterRecovery() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckUebClusterRecovery(context);
+ }
+
+
+ @Test
+ public void testLogFeHealthCheckRecovery() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logFeHealthCheckRecovery(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckError(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckTitanError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckTitanError(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckElasticSearchError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckElasticSearchError(context);
+ }
+
+
+ @Test
+ public void testLogBeHealthCheckUebClusterError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeHealthCheckUebClusterError(context);
+ }
+
+
+ @Test
+ public void testLogFeHealthCheckError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logFeHealthCheckError(context);
+ }
+
+
+ @Test
+ public void testLogBeUebConnectionError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String reason = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUebConnectionError(context, reason);
+ }
+
+
+ @Test
+ public void testLogBeUebUnkownHostError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String host = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUebUnkownHostError(context, host);
+ }
+
+
+ @Test
+ public void testLogBeComponentMissingError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String componentType = "";
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeComponentMissingError(context, componentType, name);
+ }
+
+
+ @Test
+ public void testLogBeIncorrectComponentError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String componentType = "";
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeIncorrectComponentError(context, componentType, name);
+ }
+
+
+ @Test
+ public void testLogBeInvalidConfigurationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String parameterName = "";
+ String parameterValue = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeInvalidConfigurationError(context, parameterName, parameterValue);
+ }
+
+
+ @Test
+ public void testLogBeUebObjectNotFoundError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String notFoundObjectName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUebObjectNotFoundError(context, notFoundObjectName);
+ }
+
+
+ @Test
+ public void testLogBeDistributionEngineInvalidArtifactType() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String artifactType = "";
+ String validArtifactTypes = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeDistributionEngineInvalidArtifactType(context, artifactType, validArtifactTypes);
+ }
+
+
+ @Test
+ public void testLogBeMissingConfigurationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String parameterName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeMissingConfigurationError(context, parameterName);
+ }
+
+
+ @Test
+ public void testLogBeConfigurationInvalidListSizeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String parameterName = "";
+ int listMinimumSize = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeConfigurationInvalidListSizeError(context, parameterName, listMinimumSize);
+ }
+
+
+ @Test
+ public void testLogErrorConfigFileFormat() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logErrorConfigFileFormat(context, description);
+ }
+
+
+ @Test
+ public void testLogBeMissingArtifactInformationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String missingInfo = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeMissingArtifactInformationError(context, missingInfo);
+ }
+
+
+ @Test
+ public void testLogBeArtifactMissingError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String artifactName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeArtifactMissingError(context, artifactName);
+ }
+
+
+ @Test
+ public void testLogBeUserMissingError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String userId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUserMissingError(context, userId);
+ }
+
+
+ @Test
+ public void testLogBeInvalidTypeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String type = "";
+ String name = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeInvalidTypeError(context, type, name);
+ }
+
+
+ @Test
+ public void testLogBeInvalidValueError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String value = "";
+ String name = "";
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeInvalidValueError(context, value, name, type);
+ }
+
+
+ @Test
+ public void testLogBeArtifactPayloadInvalid() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeArtifactPayloadInvalid(context);
+ }
+
+
+ @Test
+ public void testLogBeArtifactInformationInvalidError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeArtifactInformationInvalidError(context);
+ }
+
+
+ @Test
+ public void testLogBeDistributionMissingError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String distributionName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeDistributionMissingError(context, distributionName);
+ }
+
+
+ @Test
+ public void testLogBeGraphObjectMissingError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String objectType = "";
+ String objectName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeGraphObjectMissingError(context, objectType, objectName);
+ }
+
+
+ @Test
+ public void testLogBeInvalidJsonInput() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeInvalidJsonInput(context);
+ }
+
+
+ @Test
+ public void testLogBeInitializationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeInitializationError(context);
+ }
+
+
+ @Test
+ public void testLogBeFailedAddingResourceInstanceError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String resourceName = "";
+ String serviceId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedAddingResourceInstanceError(context, resourceName, serviceId);
+ }
+
+
+ @Test
+ public void testLogBeUebSystemError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String operation = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeUebSystemError(context, operation);
+ }
+
+
+ @Test
+ public void testLogBeDistributionEngineSystemError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String operation = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeDistributionEngineSystemError(context, operation);
+ }
+
+
+ @Test
+ public void testLogBeFailedAddingNodeTypeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedAddingNodeTypeError(context, nodeType);
+ }
+
+
+ @Test
+ public void testLogBeDaoSystemError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeDaoSystemError(context);
+ }
+
+
+ @Test
+ public void testLogBeSystemError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeSystemError(context);
+ }
+
+
+ @Test
+ public void testLogBeExecuteRollbackError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeExecuteRollbackError(context);
+ }
+
+
+ @Test
+ public void testLogBeFailedLockObjectError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String type = "";
+ String id = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedLockObjectError(context, type, id);
+ }
+
+
+ @Test
+ public void testLogBeFailedCreateNodeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeName = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedCreateNodeError(context, nodeName, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedUpdateNodeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeName = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedUpdateNodeError(context, nodeName, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedDeleteNodeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeName = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedDeleteNodeError(context, nodeName, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedRetrieveNodeError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeName = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedRetrieveNodeError(context, nodeName, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedFindParentError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String node = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedFindParentError(context, node, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedFindAllNodesError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeType = "";
+ String parentNode = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedFindAllNodesError(context, nodeType, parentNode, status);
+ }
+
+
+ @Test
+ public void testLogBeFailedFindAssociationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String nodeType = "";
+ String fromNode = "";
+ String status = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeFailedFindAssociationError(context, nodeType, fromNode, status);
+ }
+
+
+ @Test
+ public void testLogBeComponentCleanerSystemError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String operation = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeComponentCleanerSystemError(context, operation);
+ }
+
+
+ @Test
+ public void testLogBeRestApiGeneralError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logBeRestApiGeneralError(context);
+ }
+
+
+ @Test
+ public void testLogFqdnResolveError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logFqdnResolveError(context, description);
+ }
+
+
+ @Test
+ public void testLogSiteSwitchoverInfo() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logSiteSwitchoverInfo(context, description);
+ }
+
+
+ @Test
+ public void testLogInternalAuthenticationError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInternalAuthenticationError(context, description, severity);
+ }
+
+
+ @Test
+ public void testLogInternalConnectionError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInternalConnectionError(context, description, severity);
+ }
+
+
+ @Test
+ public void testLogInternalDataError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInternalDataError(context, description, severity);
+ }
+
+
+ @Test
+ public void testLogInvalidInputError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInvalidInputError(context, description, severity);
+ }
+
+
+ @Test
+ public void testLogInternalFlowError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInternalFlowError(context, description, severity);
+ }
+
+
+ @Test
+ public void testLogInternalUnexpectedError() throws Exception {
+ BeEcompErrorManager testSubject;
+ String context = "";
+ String description = "";
+ ErrorSeverity severity = null;
+
+ // test 1
+ testSubject = createTestSubject();
+ severity = null;
+ testSubject.logInternalUnexpectedError(context, description, severity);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/CleanComponentsConfigurationTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/CleanComponentsConfigurationTest.java
new file mode 100644
index 0000000000..f7124d3eb4
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/CleanComponentsConfigurationTest.java
@@ -0,0 +1,49 @@
+package org.openecomp.sdc.be.config;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class CleanComponentsConfigurationTest {
+
+ private CleanComponentsConfiguration createTestSubject() {
+ return new CleanComponentsConfiguration();
+ }
+
+
+ @Test
+ public void testGetCleanIntervalInMinutes() throws Exception {
+ CleanComponentsConfiguration testSubject;
+ long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCleanIntervalInMinutes();
+ }
+
+
+
+
+
+ @Test
+ public void testGetComponentsToClean() throws Exception {
+ CleanComponentsConfiguration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentsToClean();
+ }
+
+
+ @Test
+ public void testSetComponentsToClean() throws Exception {
+ CleanComponentsConfiguration testSubject;
+ List<String> componentsToClean = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentsToClean(componentsToClean);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/ConfigurationTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ConfigurationTest.java
new file mode 100644
index 0000000000..0604e80ffc
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ConfigurationTest.java
@@ -0,0 +1,1453 @@
+package org.openecomp.sdc.be.config;
+
+import java.util.Date;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.config.Configuration.ApplicationL1CacheConfig;
+import org.openecomp.sdc.be.config.Configuration.ApplicationL2CacheConfig;
+import org.openecomp.sdc.be.config.Configuration.ArtifactTypeConfig;
+import org.openecomp.sdc.be.config.Configuration.BeMonitoringConfig;
+import org.openecomp.sdc.be.config.Configuration.CassandrConfig;
+import org.openecomp.sdc.be.config.Configuration.EcompPortalConfig;
+import org.openecomp.sdc.be.config.Configuration.ElasticSearchConfig;
+import org.openecomp.sdc.be.config.Configuration.OnboardingConfig;
+import org.openecomp.sdc.be.config.Configuration.SwitchoverDetectorConfig;
+import org.openecomp.sdc.be.config.Configuration.ToscaValidatorsConfig;
+import org.openecomp.sdc.be.config.Configuration.VfModuleProperty;
+
+
+public class ConfigurationTest {
+
+ private Configuration createTestSubject() {
+ return new Configuration();
+ }
+
+
+ @Test
+ public void testGetGenericAssetNodeTypes() throws Exception {
+ Configuration testSubject;
+ Map<String, String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGenericAssetNodeTypes();
+ }
+
+
+ @Test
+ public void testSetGenericAssetNodeTypes() throws Exception {
+ Configuration testSubject;
+ Map<String, String> genericAssetNodeTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGenericAssetNodeTypes(genericAssetNodeTypes);
+ }
+
+
+ @Test
+ public void testGetSwitchoverDetector() throws Exception {
+ Configuration testSubject;
+ SwitchoverDetectorConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSwitchoverDetector();
+ }
+
+
+ @Test
+ public void testSetSwitchoverDetector() throws Exception {
+ Configuration testSubject;
+ SwitchoverDetectorConfig switchoverDetector = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSwitchoverDetector(switchoverDetector);
+ }
+
+
+ @Test
+ public void testGetApplicationL1Cache() throws Exception {
+ Configuration testSubject;
+ ApplicationL1CacheConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getApplicationL1Cache();
+ }
+
+
+ @Test
+ public void testSetApplicationL1Cache() throws Exception {
+ Configuration testSubject;
+ ApplicationL1CacheConfig applicationL1Cache = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setApplicationL1Cache(applicationL1Cache);
+ }
+
+
+ @Test
+ public void testGetApplicationL2Cache() throws Exception {
+ Configuration testSubject;
+ ApplicationL2CacheConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getApplicationL2Cache();
+ }
+
+
+ @Test
+ public void testSetApplicationL2Cache() throws Exception {
+ Configuration testSubject;
+ ApplicationL2CacheConfig applicationL2Cache = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setApplicationL2Cache(applicationL2Cache);
+ }
+
+
+ @Test
+ public void testGetCassandraConfig() throws Exception {
+ Configuration testSubject;
+ CassandrConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCassandraConfig();
+ }
+
+
+ @Test
+ public void testSetCassandraConfig() throws Exception {
+ Configuration testSubject;
+ CassandrConfig cassandraKeySpace = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCassandraConfig(cassandraKeySpace);
+ }
+
+
+ @Test
+ public void testGetIdentificationHeaderFields() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIdentificationHeaderFields();
+ }
+
+
+ @Test
+ public void testSetIdentificationHeaderFields() throws Exception {
+ Configuration testSubject;
+ List<String> identificationHeaderFields = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIdentificationHeaderFields(identificationHeaderFields);
+ }
+
+
+ @Test
+ public void testGetReleased() throws Exception {
+ Configuration testSubject;
+ Date result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReleased();
+ }
+
+
+ @Test
+ public void testGetVersion() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVersion();
+ }
+
+
+ @Test
+ public void testSetReleased() throws Exception {
+ Configuration testSubject;
+ Date released = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReleased(released);
+ }
+
+
+ @Test
+ public void testSetVersion() throws Exception {
+ Configuration testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersion(version);
+ }
+
+
+ @Test
+ public void testGetProtocols() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProtocols();
+ }
+
+
+ @Test
+ public void testSetProtocols() throws Exception {
+ Configuration testSubject;
+ List<String> protocols = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProtocols(protocols);
+ }
+
+
+ @Test
+ public void testGetUsers() throws Exception {
+ Configuration testSubject;
+ Map<String, String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUsers();
+ }
+
+
+ @Test
+ public void testSetUsers() throws Exception {
+ Configuration testSubject;
+ Map<String, String> users = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUsers(users);
+ }
+
+
+ @Test
+ public void testGetBeFqdn() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBeFqdn();
+ }
+
+
+ @Test
+ public void testSetBeFqdn() throws Exception {
+ Configuration testSubject;
+ String beHost = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBeFqdn(beHost);
+ }
+
+
+ @Test
+ public void testGetBeHttpPort() throws Exception {
+ Configuration testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBeHttpPort();
+ }
+
+
+ @Test
+ public void testSetBeHttpPort() throws Exception {
+ Configuration testSubject;
+ Integer beHttpPort = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBeHttpPort(beHttpPort);
+ }
+
+
+ @Test
+ public void testGetBeSslPort() throws Exception {
+ Configuration testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBeSslPort();
+ }
+
+
+ @Test
+ public void testSetBeSslPort() throws Exception {
+ Configuration testSubject;
+ Integer beSslPort = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBeSslPort(beSslPort);
+ }
+
+
+ @Test
+ public void testGetBeContext() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBeContext();
+ }
+
+
+ @Test
+ public void testSetBeContext() throws Exception {
+ Configuration testSubject;
+ String beContext = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBeContext(beContext);
+ }
+
+
+ @Test
+ public void testGetBeProtocol() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBeProtocol();
+ }
+
+
+ @Test
+ public void testSetBeProtocol() throws Exception {
+ Configuration testSubject;
+ String beProtocol = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBeProtocol(beProtocol);
+ }
+
+
+ @Test
+ public void testGetNeo4j() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNeo4j();
+ }
+
+
+ @Test
+ public void testSetNeo4j() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> neo4j = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNeo4j(neo4j);
+ }
+
+
+ @Test
+ public void testGetElasticSearch() throws Exception {
+ Configuration testSubject;
+ ElasticSearchConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getElasticSearch();
+ }
+
+
+ @Test
+ public void testSetElasticSearch() throws Exception {
+ Configuration testSubject;
+ ElasticSearchConfig elasticSearch = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setElasticSearch(elasticSearch);
+ }
+
+
+ @Test
+ public void testGetTitanCfgFile() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanCfgFile();
+ }
+
+
+ @Test
+ public void testSetTitanCfgFile() throws Exception {
+ Configuration testSubject;
+ String titanCfgFile = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanCfgFile(titanCfgFile);
+ }
+
+
+ @Test
+ public void testGetTitanMigrationKeySpaceCfgFile() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanMigrationKeySpaceCfgFile();
+ }
+
+
+ @Test
+ public void testSetTitanMigrationKeySpaceCfgFile() throws Exception {
+ Configuration testSubject;
+ String titanMigrationKeySpaceCfgFile = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanMigrationKeySpaceCfgFile(titanMigrationKeySpaceCfgFile);
+ }
+
+
+ @Test
+ public void testGetTitanInMemoryGraph() throws Exception {
+ Configuration testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanInMemoryGraph();
+ }
+
+
+ @Test
+ public void testSetTitanInMemoryGraph() throws Exception {
+ Configuration testSubject;
+ Boolean titanInMemoryGraph = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanInMemoryGraph(titanInMemoryGraph);
+ }
+
+
+ @Test
+ public void testGetStartMigrationFrom() throws Exception {
+ Configuration testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStartMigrationFrom();
+ }
+
+
+ @Test
+ public void testSetStartMigrationFrom() throws Exception {
+ Configuration testSubject;
+ int startMigrationFrom = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStartMigrationFrom(startMigrationFrom);
+ }
+
+
+ @Test
+ public void testGetTitanLockTimeout() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanLockTimeout();
+ }
+
+
+ @Test
+ public void testSetTitanLockTimeout() throws Exception {
+ Configuration testSubject;
+ Long titanLockTimeout = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanLockTimeout(titanLockTimeout);
+ }
+
+
+ @Test
+ public void testGetTitanHealthCheckReadTimeout() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanHealthCheckReadTimeout();
+ }
+
+
+
+
+ @Test
+ public void testSetTitanHealthCheckReadTimeout() throws Exception {
+ Configuration testSubject;
+ Long titanHealthCheckReadTimeout = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanHealthCheckReadTimeout(titanHealthCheckReadTimeout);
+ }
+
+
+ @Test
+ public void testGetTitanReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTitanReconnectIntervalInSeconds();
+ }
+
+
+
+
+ @Test
+ public void testSetTitanReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long titanReconnectIntervalInSeconds = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTitanReconnectIntervalInSeconds(titanReconnectIntervalInSeconds);
+ }
+
+
+ @Test
+ public void testGetEsReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEsReconnectIntervalInSeconds();
+ }
+
+
+
+
+ @Test
+ public void testSetEsReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long esReconnectIntervalInSeconds = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEsReconnectIntervalInSeconds(esReconnectIntervalInSeconds);
+ }
+
+
+ @Test
+ public void testGetArtifactTypes() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactTypes();
+ }
+
+
+ @Test
+ public void testSetArtifactTypes() throws Exception {
+ Configuration testSubject;
+ List<String> artifactTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactTypes(artifactTypes);
+ }
+
+
+ @Test
+ public void testGetExcludeResourceCategory() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getExcludeResourceCategory();
+ }
+
+
+ @Test
+ public void testSetExcludeResourceCategory() throws Exception {
+ Configuration testSubject;
+ List<String> excludeResourceCategory = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setExcludeResourceCategory(excludeResourceCategory);
+ }
+
+
+ @Test
+ public void testGetExcludeResourceType() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getExcludeResourceType();
+ }
+
+
+ @Test
+ public void testSetExcludeResourceType() throws Exception {
+ Configuration testSubject;
+ List<String> excludeResourceType = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setExcludeResourceType(excludeResourceType);
+ }
+
+
+ @Test
+ public void testGetToscaArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaArtifacts();
+ }
+
+
+ @Test
+ public void testSetToscaArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> toscaArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaArtifacts(toscaArtifacts);
+ }
+
+
+ @Test
+ public void testGetInformationalResourceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInformationalResourceArtifacts();
+ }
+
+
+ @Test
+ public void testSetInformationalResourceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> informationalResourceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInformationalResourceArtifacts(informationalResourceArtifacts);
+ }
+
+
+ @Test
+ public void testGetInformationalServiceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInformationalServiceArtifacts();
+ }
+
+
+ @Test
+ public void testSetInformationalServiceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> informationalServiceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInformationalServiceArtifacts(informationalServiceArtifacts);
+ }
+
+
+ @Test
+ public void testGetServiceApiArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceApiArtifacts();
+ }
+
+
+ @Test
+ public void testSetServiceApiArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> serviceApiArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceApiArtifacts(serviceApiArtifacts);
+ }
+
+
+ @Test
+ public void testGetServiceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testSetServiceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> serviceDeploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceDeploymentArtifacts(serviceDeploymentArtifacts);
+ }
+
+
+ @Test
+ public void testGetResourceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testSetResourceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> resourceDeploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceDeploymentArtifacts(resourceDeploymentArtifacts);
+ }
+
+
+ @Test
+ public void testSetResourceInstanceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> resourceInstanceDeploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInstanceDeploymentArtifacts(resourceInstanceDeploymentArtifacts);
+ }
+
+
+ @Test
+ public void testGetResourceInstanceDeploymentArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInstanceDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testGetExcludeServiceCategory() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getExcludeServiceCategory();
+ }
+
+
+ @Test
+ public void testSetExcludeServiceCategory() throws Exception {
+ Configuration testSubject;
+ List<String> excludeServiceCategory = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setExcludeServiceCategory(excludeServiceCategory);
+ }
+
+
+ @Test
+ public void testGetLicenseTypes() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLicenseTypes();
+ }
+
+
+ @Test
+ public void testSetLicenseTypes() throws Exception {
+ Configuration testSubject;
+ List<String> licenseTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLicenseTypes(licenseTypes);
+ }
+
+
+ @Test
+ public void testGetAdditionalInformationMaxNumberOfKeys() throws Exception {
+ Configuration testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformationMaxNumberOfKeys();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformationMaxNumberOfKeys() throws Exception {
+ Configuration testSubject;
+ Integer additionalInformationMaxNumberOfKeys = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformationMaxNumberOfKeys(additionalInformationMaxNumberOfKeys);
+ }
+
+
+ @Test
+ public void testGetSystemMonitoring() throws Exception {
+ Configuration testSubject;
+ BeMonitoringConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSystemMonitoring();
+ }
+
+
+ @Test
+ public void testSetSystemMonitoring() throws Exception {
+ Configuration testSubject;
+ BeMonitoringConfig systemMonitoring = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSystemMonitoring(systemMonitoring);
+ }
+
+
+ @Test
+ public void testGetDefaultHeatArtifactTimeoutMinutes() throws Exception {
+ Configuration testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultHeatArtifactTimeoutMinutes();
+ }
+
+
+ @Test
+ public void testSetDefaultHeatArtifactTimeoutMinutes() throws Exception {
+ Configuration testSubject;
+ Integer defaultHeatArtifactTimeoutMinutes = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDefaultHeatArtifactTimeoutMinutes(defaultHeatArtifactTimeoutMinutes);
+ }
+
+
+ @Test
+ public void testGetUebHealthCheckReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUebHealthCheckReconnectIntervalInSeconds();
+ }
+
+
+ @Test
+ public void testSetUebHealthCheckReconnectIntervalInSeconds() throws Exception {
+ Configuration testSubject;
+ Long uebHealthCheckReconnectIntervalInSeconds = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUebHealthCheckReconnectIntervalInSeconds(uebHealthCheckReconnectIntervalInSeconds);
+ }
+
+
+ @Test
+ public void testGetUebHealthCheckReadTimeout() throws Exception {
+ Configuration testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUebHealthCheckReadTimeout();
+ }
+
+
+ @Test
+ public void testSetUebHealthCheckReadTimeout() throws Exception {
+ Configuration testSubject;
+ Long uebHealthCheckReadTimeout = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUebHealthCheckReadTimeout(uebHealthCheckReadTimeout);
+ }
+
+
+ @Test
+ public void testGetCleanComponentsConfiguration() throws Exception {
+ Configuration testSubject;
+ CleanComponentsConfiguration result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCleanComponentsConfiguration();
+ }
+
+
+ @Test
+ public void testSetCleanComponentsConfiguration() throws Exception {
+ Configuration testSubject;
+ CleanComponentsConfiguration cleanComponentsConfiguration = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCleanComponentsConfiguration(cleanComponentsConfiguration);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+
+ @Test
+ public void testGetUnLoggedUrls() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getUnLoggedUrls();
+ }
+
+
+ @Test
+ public void testSetUnLoggedUrls() throws Exception {
+ Configuration testSubject;
+ List<String> unLoggedUrls = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUnLoggedUrls(unLoggedUrls);
+ }
+
+
+ @Test
+ public void testGetDeploymentResourceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDeploymentResourceArtifacts();
+ }
+
+
+ @Test
+ public void testSetDeploymentResourceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> deploymentResourceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDeploymentResourceArtifacts(deploymentResourceArtifacts);
+ }
+
+
+ @Test
+ public void testGetHeatEnvArtifactHeader() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeatEnvArtifactHeader();
+ }
+
+
+ @Test
+ public void testSetHeatEnvArtifactHeader() throws Exception {
+ Configuration testSubject;
+ String heatEnvArtifactHeader = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeatEnvArtifactHeader(heatEnvArtifactHeader);
+ }
+
+
+ @Test
+ public void testGetHeatEnvArtifactFooter() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeatEnvArtifactFooter();
+ }
+
+
+ @Test
+ public void testSetHeatEnvArtifactFooter() throws Exception {
+ Configuration testSubject;
+ String heatEnvArtifactFooter = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeatEnvArtifactFooter(heatEnvArtifactFooter);
+ }
+
+
+ @Test
+ public void testGetDeploymentResourceInstanceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDeploymentResourceInstanceArtifacts();
+ }
+
+
+ @Test
+ public void testSetDeploymentResourceInstanceArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, Object> deploymentResourceInstanceArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDeploymentResourceInstanceArtifacts(deploymentResourceInstanceArtifacts);
+ }
+
+
+ @Test
+ public void testGetArtifactsIndex() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactsIndex();
+ }
+
+
+ @Test
+ public void testSetArtifactsIndex() throws Exception {
+ Configuration testSubject;
+ String artifactsIndex = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactsIndex(artifactsIndex);
+ }
+
+
+ @Test
+ public void testGetResourceInformationalDeployedArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInformationalDeployedArtifacts();
+ }
+
+
+ @Test
+ public void testSetResourceInformationalDeployedArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> resourceInformationalDeployedArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInformationalDeployedArtifacts(resourceInformationalDeployedArtifacts);
+ }
+
+
+ @Test
+ public void testGetResourceTypes() throws Exception {
+ Configuration testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceTypes();
+ }
+
+
+ @Test
+ public void testSetResourceTypes() throws Exception {
+ Configuration testSubject;
+ List<String> resourceTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceTypes(resourceTypes);
+ }
+
+
+ @Test
+ public void testGetToscaFilesDir() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaFilesDir();
+ }
+
+
+ @Test
+ public void testSetToscaFilesDir() throws Exception {
+ Configuration testSubject;
+ String toscaFilesDir = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaFilesDir(toscaFilesDir);
+ }
+
+
+ @Test
+ public void testGetHeatTranslatorPath() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeatTranslatorPath();
+ }
+
+
+ @Test
+ public void testSetHeatTranslatorPath() throws Exception {
+ Configuration testSubject;
+ String heatTranslatorPath = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeatTranslatorPath(heatTranslatorPath);
+ }
+
+
+ @Test
+ public void testGetRequirementsToFulfillBeforeCert() throws Exception {
+ Configuration testSubject;
+ Map<String, Set<String>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirementsToFulfillBeforeCert();
+ }
+
+
+ @Test
+ public void testSetRequirementsToFulfillBeforeCert() throws Exception {
+ Configuration testSubject;
+ Map<String, Set<String>> requirementsToFulfillBeforeCert = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirementsToFulfillBeforeCert(requirementsToFulfillBeforeCert);
+ }
+
+
+ @Test
+ public void testGetCapabilitiesToConsumeBeforeCert() throws Exception {
+ Configuration testSubject;
+ Map<String, Set<String>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilitiesToConsumeBeforeCert();
+ }
+
+
+ @Test
+ public void testSetCapabilitiesToConsumeBeforeCert() throws Exception {
+ Configuration testSubject;
+ Map<String, Set<String>> capabilitiesToConsumeBeforeCert = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilitiesToConsumeBeforeCert(capabilitiesToConsumeBeforeCert);
+ }
+
+
+ @Test
+ public void testGetOnboarding() throws Exception {
+ Configuration testSubject;
+ OnboardingConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOnboarding();
+ }
+
+
+ @Test
+ public void testSetOnboarding() throws Exception {
+ Configuration testSubject;
+ OnboardingConfig onboarding = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOnboarding(onboarding);
+ }
+
+
+ @Test
+ public void testGetEcompPortal() throws Exception {
+ Configuration testSubject;
+ EcompPortalConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEcompPortal();
+ }
+
+
+ @Test
+ public void testSetEcompPortal() throws Exception {
+ Configuration testSubject;
+ EcompPortalConfig ecompPortal = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEcompPortal(ecompPortal);
+ }
+
+
+ @Test
+ public void testGetToscaValidators() throws Exception {
+ Configuration testSubject;
+ ToscaValidatorsConfig result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaValidators();
+ }
+
+
+ @Test
+ public void testSetToscaValidators() throws Exception {
+ Configuration testSubject;
+ ToscaValidatorsConfig toscaValidators = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaValidators(toscaValidators);
+ }
+
+
+ @Test
+ public void testIsDisableAudit() throws Exception {
+ Configuration testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isDisableAudit();
+ }
+
+
+ @Test
+ public void testSetDisableAudit() throws Exception {
+ Configuration testSubject;
+ boolean enableAudit = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDisableAudit(enableAudit);
+ }
+
+
+ @Test
+ public void testGetResourceInformationalArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceInformationalArtifacts();
+ }
+
+
+ @Test
+ public void testSetResourceInformationalArtifacts() throws Exception {
+ Configuration testSubject;
+ Map<String, ArtifactTypeConfig> resourceInformationalArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceInformationalArtifacts(resourceInformationalArtifacts);
+ }
+
+
+ @Test
+ public void testGetVfModuleProperties() throws Exception {
+ Configuration testSubject;
+ Map<String, VfModuleProperty> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleProperties();
+ }
+
+
+ @Test
+ public void testSetVfModuleProperties() throws Exception {
+ Configuration testSubject;
+ Map<String, VfModuleProperty> vfModuleProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVfModuleProperties(vfModuleProperties);
+ }
+
+
+ @Test
+ public void testGetToscaConformanceLevel() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaConformanceLevel();
+ }
+
+
+ @Test
+ public void testSetToscaConformanceLevel() throws Exception {
+ Configuration testSubject;
+ String toscaConformanceLevel = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaConformanceLevel(toscaConformanceLevel);
+ }
+
+
+ @Test
+ public void testGetMinToscaConformanceLevel() throws Exception {
+ Configuration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMinToscaConformanceLevel();
+ }
+
+
+ @Test
+ public void testSetMinToscaConformanceLevel() throws Exception {
+ Configuration testSubject;
+ String toscaConformanceLevel = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMinToscaConformanceLevel(toscaConformanceLevel);
+ }
+
+
+ @Test
+ public void testGetDefaultImports() throws Exception {
+ Configuration testSubject;
+ List<Map<String, Map<String, String>>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultImports();
+ }
+
+
+ @Test
+ public void testSetDefaultImports() throws Exception {
+ Configuration testSubject;
+ LinkedList<Map<String, Map<String, String>>> defaultImports = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDefaultImports(defaultImports);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorConfigurationTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorConfigurationTest.java
new file mode 100644
index 0000000000..d9e6066224
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorConfigurationTest.java
@@ -0,0 +1,49 @@
+package org.openecomp.sdc.be.config;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ErrorConfigurationTest {
+
+ private ErrorConfiguration createTestSubject() {
+ return new ErrorConfiguration();
+ }
+
+
+ @Test
+ public void testGetErrors() throws Exception {
+ ErrorConfiguration testSubject;
+ Map<String, ErrorInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getErrors();
+ }
+
+
+ @Test
+ public void testSetErrors() throws Exception {
+ ErrorConfiguration testSubject;
+ Map<String, ErrorInfo> errors = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setErrors(errors);
+ }
+
+
+
+
+
+ @Test
+ public void testToString() throws Exception {
+ ErrorConfiguration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorInfoTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorInfoTest.java
new file mode 100644
index 0000000000..4c95543fb9
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorInfoTest.java
@@ -0,0 +1,108 @@
+package org.openecomp.sdc.be.config;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.config.ErrorInfo.ErrorInfoType;
+
+
+public class ErrorInfoTest {
+
+ private ErrorInfo createTestSubject() {
+ return new ErrorInfo();
+ }
+
+
+ @Test
+ public void testGetCode() throws Exception {
+ ErrorInfo testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCode();
+ }
+
+
+ @Test
+ public void testSetCode() throws Exception {
+ ErrorInfo testSubject;
+ Integer code = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCode(code);
+ }
+
+
+ @Test
+ public void testGetMessage() throws Exception {
+ ErrorInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMessage();
+ }
+
+
+ @Test
+ public void testSetMessage() throws Exception {
+ ErrorInfo testSubject;
+ String message = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMessage(message);
+ }
+
+
+ @Test
+ public void testGetMessageId() throws Exception {
+ ErrorInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMessageId();
+ }
+
+
+ @Test
+ public void testSetMessageId() throws Exception {
+ ErrorInfo testSubject;
+ String messageId = "";
+
+ // test 1
+ testSubject = createTestSubject();
+ messageId = null;
+ testSubject.setMessageId(messageId);
+
+ // test 2
+ testSubject = createTestSubject();
+ messageId = "";
+ testSubject.setMessageId(messageId);
+ }
+
+
+ @Test
+ public void testGetErrorInfoType() throws Exception {
+ ErrorInfo testSubject;
+ ErrorInfoType result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getErrorInfoType();
+ }
+
+
+
+
+ @Test
+ public void testToString() throws Exception {
+ ErrorInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/Neo4jErrorsConfigurationTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/Neo4jErrorsConfigurationTest.java
new file mode 100644
index 0000000000..6b7b163f45
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/Neo4jErrorsConfigurationTest.java
@@ -0,0 +1,49 @@
+package org.openecomp.sdc.be.config;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class Neo4jErrorsConfigurationTest {
+
+ private Neo4jErrorsConfiguration createTestSubject() {
+ return new Neo4jErrorsConfiguration();
+ }
+
+
+ @Test
+ public void testGetErrors() throws Exception {
+ Neo4jErrorsConfiguration testSubject;
+ Map<String, String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getErrors();
+ }
+
+
+ @Test
+ public void testSetErrors() throws Exception {
+ Neo4jErrorsConfiguration testSubject;
+ Map<String, String> errors = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setErrors(errors);
+ }
+
+
+
+
+
+ @Test
+ public void testToString() throws Exception {
+ Neo4jErrorsConfiguration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/be/config/validation/DeploymentArtifactHeatConfigurationTest.java b/common-app-api/src/test/java/org/openecomp/sdc/be/config/validation/DeploymentArtifactHeatConfigurationTest.java
new file mode 100644
index 0000000000..d2c394bff2
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/be/config/validation/DeploymentArtifactHeatConfigurationTest.java
@@ -0,0 +1,57 @@
+package org.openecomp.sdc.be.config.validation;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class DeploymentArtifactHeatConfigurationTest {
+
+ private DeploymentArtifactHeatConfiguration createTestSubject() {
+ return new DeploymentArtifactHeatConfiguration();
+ }
+
+
+ @Test
+ public void testGetHeat_template_version() throws Exception {
+ DeploymentArtifactHeatConfiguration testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeat_template_version();
+ }
+
+
+ @Test
+ public void testSetHeat_template_version() throws Exception {
+ DeploymentArtifactHeatConfiguration testSubject;
+ String heat_template_version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeat_template_version(heat_template_version);
+ }
+
+
+ @Test
+ public void testGetResources() throws Exception {
+ DeploymentArtifactHeatConfiguration testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResources();
+ }
+
+
+ @Test
+ public void testSetResources() throws Exception {
+ DeploymentArtifactHeatConfiguration testSubject;
+ Map<String, Object> resources = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResources(resources);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactTypeEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactTypeEnumTest.java
new file mode 100644
index 0000000000..525080e535
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactTypeEnumTest.java
@@ -0,0 +1,54 @@
+package org.openecomp.sdc.common.api;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ArtifactTypeEnumTest {
+
+ private ArtifactTypeEnum createTestSubject() {
+ return ArtifactTypeEnum.AAI_SERVICE_MODEL;
+ }
+
+
+ @Test
+ public void testGetType() throws Exception {
+ ArtifactTypeEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getType();
+ }
+
+
+ @Test
+ public void testSetType() throws Exception {
+ ArtifactTypeEnum testSubject;
+ String type = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setType(type);
+ }
+
+
+ @Test
+ public void testFindType() throws Exception {
+ String type = "";
+ ArtifactTypeEnum result;
+
+ // default test
+ result = ArtifactTypeEnum.findType(type);
+ }
+
+
+ @Test
+ public void testGetAllTypes() throws Exception {
+ List<String> result;
+
+ // default test
+ result = ArtifactTypeEnum.getAllTypes();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ResponseInfoTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ResponseInfoTest.java
new file mode 100644
index 0000000000..d05484db40
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ResponseInfoTest.java
@@ -0,0 +1,59 @@
+package org.openecomp.sdc.common.api;
+
+import org.junit.Test;
+import org.openecomp.sdc.common.api.ResponseInfo.ResponseStatusEnum;
+
+
+public class ResponseInfoTest {
+
+ private ResponseInfo createTestSubject() {
+ return new ResponseInfo(null, "");
+ }
+
+
+ @Test
+ public void testGetApplicativeStatus() throws Exception {
+ ResponseInfo testSubject;
+ ResponseStatusEnum result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getApplicativeStatus();
+ }
+
+
+ @Test
+ public void testSetApplicativeStatus() throws Exception {
+ ResponseInfo testSubject;
+ ResponseStatusEnum applicativeStatus = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setApplicativeStatus(applicativeStatus);
+ }
+
+
+ @Test
+ public void testGetDescription() throws Exception {
+ ResponseInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDescription();
+ }
+
+
+ @Test
+ public void testSetDescription() throws Exception {
+ ResponseInfo testSubject;
+ String description = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDescription(description);
+ }
+
+
+
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfoTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfoTest.java
new file mode 100644
index 0000000000..42b057e521
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfoTest.java
@@ -0,0 +1,134 @@
+package org.openecomp.sdc.common.api;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ToscaNodeTypeInfoTest {
+
+ private ToscaNodeTypeInfo createTestSubject() {
+ return new ToscaNodeTypeInfo();
+ }
+
+
+ @Test
+ public void testGetTemplateName() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTemplateName();
+ }
+
+
+ @Test
+ public void testSetTemplateName() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String templateName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTemplateName(templateName);
+ }
+
+
+ @Test
+ public void testGetNodeName() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNodeName();
+ }
+
+
+ @Test
+ public void testSetNodeName() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String nodeName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNodeName(nodeName);
+ }
+
+
+ @Test
+ public void testGetTemplateVersion() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTemplateVersion();
+ }
+
+
+ @Test
+ public void testSetTemplateVersion() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String templateVersion = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTemplateVersion(templateVersion);
+ }
+
+
+ @Test
+ public void testGetInterfaces() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ List<ToscaNodeTypeInterface> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInterfaces();
+ }
+
+
+ @Test
+ public void testSetInterfaces() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ List<ToscaNodeTypeInterface> interfaces = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInterfaces(interfaces);
+ }
+
+
+ @Test
+ public void testGetIconPath() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIconPath();
+ }
+
+
+ @Test
+ public void testSetIconPath() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String iconPath = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIconPath(iconPath);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ ToscaNodeTypeInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterfaceTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterfaceTest.java
new file mode 100644
index 0000000000..9c19d3132d
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterfaceTest.java
@@ -0,0 +1,35 @@
+package org.openecomp.sdc.common.api;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class ToscaNodeTypeInterfaceTest {
+
+ private ToscaNodeTypeInterface createTestSubject() {
+ return new ToscaNodeTypeInterface();
+ }
+
+
+ @Test
+ public void testGetScripts() throws Exception {
+ ToscaNodeTypeInterface testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getScripts();
+ }
+
+
+ @Test
+ public void testSetScripts() throws Exception {
+ ToscaNodeTypeInterface testSubject;
+ List<String> scripts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setScripts(scripts);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java
new file mode 100644
index 0000000000..aeea08999f
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java
@@ -0,0 +1,44 @@
+package org.openecomp.sdc.common.api;
+
+import java.util.List;
+
+import org.junit.Test;
+
+
+public class YamlSuffixEnumTest {
+
+ private YamlSuffixEnum createTestSubject() {
+ return YamlSuffixEnum.YAML;
+ }
+
+
+ @Test
+ public void testGetSuffix() throws Exception {
+ YamlSuffixEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSuffix();
+ }
+
+
+ @Test
+ public void testSetSuufix() throws Exception {
+ YamlSuffixEnum testSubject;
+ String suffix = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSuufix(suffix);
+ }
+
+
+ @Test
+ public void testGetSuffixes() throws Exception {
+ List<String> result;
+
+ // default test
+ result = YamlSuffixEnum.getSuffixes();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java
new file mode 100644
index 0000000000..18bbdb7e71
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java
@@ -0,0 +1,44 @@
+package org.openecomp.sdc.common.datastructure;
+
+import org.junit.Test;
+
+
+public class AuditingFieldsKeyTest {
+
+ private AuditingFieldsKey createTestSubject() {
+ return AuditingFieldsKey.AUDIT_ACTION;
+ }
+
+
+ @Test
+ public void testGetValueClass() throws Exception {
+ AuditingFieldsKey testSubject;
+ Class<?> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValueClass();
+ }
+
+
+ @Test
+ public void testGetDisplayName() throws Exception {
+ AuditingFieldsKey testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDisplayName();
+ }
+
+
+ @Test
+ public void testSetDisplayName() throws Exception {
+ AuditingFieldsKey testSubject;
+ String displayName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDisplayName(displayName);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/ESTimeBasedEventTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/ESTimeBasedEventTest.java
new file mode 100644
index 0000000000..4d5d97b7fa
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/ESTimeBasedEventTest.java
@@ -0,0 +1,117 @@
+package org.openecomp.sdc.common.datastructure;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ESTimeBasedEventTest {
+
+ private ESTimeBasedEvent createTestSubject() {
+ return new ESTimeBasedEvent();
+ }
+
+
+
+
+ @Test
+ public void testCalculateYearIndexSuffix() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.calculateYearIndexSuffix();
+ }
+
+
+ @Test
+ public void testCalculateMonthIndexSuffix() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.calculateMonthIndexSuffix();
+ }
+
+
+ @Test
+ public void testCalculateDayIndexSuffix() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.calculateDayIndexSuffix();
+ }
+
+
+ @Test
+ public void testCalculateHourIndexSuffix() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.calculateHourIndexSuffix();
+ }
+
+
+ @Test
+ public void testCalculateMinuteIndexSuffix() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.calculateMinuteIndexSuffix();
+ }
+
+
+
+
+
+ @Test
+ public void testGetTimestamp() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTimestamp();
+ }
+
+
+ @Test
+ public void testSetTimestamp() throws Exception {
+ ESTimeBasedEvent testSubject;
+ String timestamp = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTimestamp(timestamp);
+ }
+
+
+ @Test
+ public void testGetFields() throws Exception {
+ ESTimeBasedEvent testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFields();
+ }
+
+
+ @Test
+ public void testSetFields() throws Exception {
+ ESTimeBasedEvent testSubject;
+ Map<String, Object> fields = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFields(fields);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java
new file mode 100644
index 0000000000..515ee0bb76
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java
@@ -0,0 +1,44 @@
+package org.openecomp.sdc.common.datastructure;
+
+import org.junit.Test;
+
+
+public class MonitoringFieldsKeysEnumTest {
+
+ private MonitoringFieldsKeysEnum createTestSubject() {
+ return MonitoringFieldsKeysEnum.MONITORING_APP_ID;
+ }
+
+
+ @Test
+ public void testGetValueClass() throws Exception {
+ MonitoringFieldsKeysEnum testSubject;
+ Class<?> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValueClass();
+ }
+
+
+ @Test
+ public void testGetDisplayName() throws Exception {
+ MonitoringFieldsKeysEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDisplayName();
+ }
+
+
+ @Test
+ public void testSetDisplayName() throws Exception {
+ MonitoringFieldsKeysEnum testSubject;
+ String displayName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDisplayName(displayName);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/WrapperTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/WrapperTest.java
new file mode 100644
index 0000000000..9c18861d40
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/WrapperTest.java
@@ -0,0 +1,24 @@
+package org.openecomp.sdc.common.datastructure;
+
+import org.junit.Test;
+
+
+public class WrapperTest {
+
+ private Wrapper createTestSubject() {
+ return new Wrapper(null);
+ }
+
+
+
+
+ @Test
+ public void testIsEmpty() throws Exception {
+ Wrapper testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isEmpty();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/ecomplog/LoggerMetricTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/ecomplog/LoggerMetricTest.java
new file mode 100644
index 0000000000..982d869c69
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/ecomplog/LoggerMetricTest.java
@@ -0,0 +1,302 @@
+package org.openecomp.sdc.common.ecomplog;
+
+import org.junit.Test;
+
+import org.openecomp.sdc.common.log.elements.LoggerFactory;
+import org.openecomp.sdc.common.log.elements.LoggerMetric;
+import org.openecomp.sdc.common.log.enums.Severity;
+import org.openecomp.sdc.common.log.wrappers.Logger;
+
+
+public class LoggerMetricTest {
+ private static final Logger log = Logger.getLogger(LoggerMetricTest.class.getName());
+
+ private LoggerMetric createTestSubject() {
+ return LoggerFactory.getLogger(LoggerMetric.class,log);
+ }
+
+
+ @Test
+ public void testStartTimer() throws Exception {
+ LoggerMetric testSubject;
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.startTimer();
+ }
+
+
+ @Test
+ public void testSetKeyRequestId() throws Exception {
+ LoggerMetric testSubject;
+ String keyRequestId = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setKeyRequestId(keyRequestId);
+ }
+
+
+ @Test
+ public void testStopTimer() throws Exception {
+ LoggerMetric testSubject;
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.stopTimer();
+ }
+
+
+ @Test
+ public void testSetAutoServerFQDN() throws Exception {
+ LoggerMetric testSubject;
+ String serverFQDN = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setAutoServerFQDN(serverFQDN);
+ }
+
+
+ @Test
+ public void testSetAutoServerIPAddress() throws Exception {
+ LoggerMetric testSubject;
+ String serverIPAddress = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setAutoServerIPAddress(serverIPAddress);
+ }
+
+
+ @Test
+ public void testSetInstanceUUID() throws Exception {
+ LoggerMetric testSubject;
+ String instanceUUID = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setInstanceUUID(instanceUUID);
+ }
+
+
+ @Test
+ public void testSetOptProcessKey() throws Exception {
+ LoggerMetric testSubject;
+ String processKey = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptProcessKey(processKey);
+ }
+
+
+ @Test
+ public void testSetOptAlertSeverity() throws Exception {
+ LoggerMetric testSubject;
+ Severity alertSeverity = null;
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptAlertSeverity(alertSeverity.OK);
+ }
+
+
+ @Test
+ public void testSetOptCustomField1() throws Exception {
+ LoggerMetric testSubject;
+ String customField1 = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptCustomField1(customField1);
+ }
+
+
+ @Test
+ public void testSetOptCustomField2() throws Exception {
+ LoggerMetric testSubject;
+ String customField2 = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptCustomField2(customField2);
+ }
+
+
+ @Test
+ public void testSetOptCustomField3() throws Exception {
+ LoggerMetric testSubject;
+ String customField3 = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptCustomField3(customField3);
+ }
+
+
+ @Test
+ public void testSetOptCustomField4() throws Exception {
+ LoggerMetric testSubject;
+ String customField4 = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptCustomField4(customField4);
+ }
+
+
+ @Test
+ public void testSetRemoteHost() throws Exception {
+ LoggerMetric testSubject;
+ String remoteHost = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setRemoteHost(remoteHost);
+ }
+
+
+ @Test
+ public void testSetServiceName() throws Exception {
+ LoggerMetric testSubject;
+ String serviceName = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setServiceName(serviceName);
+ }
+
+
+ @Test
+ public void testSetStatusCode() throws Exception {
+ LoggerMetric testSubject;
+ String statusCode = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setStatusCode(statusCode);
+ }
+
+
+ @Test
+ public void testSetPartnerName() throws Exception {
+ LoggerMetric testSubject;
+ String partnerName = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setPartnerName(partnerName);
+ }
+
+
+ @Test
+ public void testSetResponseCode() throws Exception {
+ LoggerMetric testSubject;
+ int responseCode = 0;
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setResponseCode(responseCode);
+ }
+
+
+ @Test
+ public void testSetResponseDesc() throws Exception {
+ LoggerMetric testSubject;
+ String responseDesc = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setResponseDesc(responseDesc);
+ }
+
+
+ @Test
+ public void testSetOptServiceInstanceId() throws Exception {
+ LoggerMetric testSubject;
+ String serviceInstanceId = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptServiceInstanceId(serviceInstanceId);
+ }
+
+
+ @Test
+ public void testSetOptClassName() throws Exception {
+ LoggerMetric testSubject;
+ String className = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setOptClassName(className);
+ }
+
+
+ @Test
+ public void testSetTargetEntity() throws Exception {
+ LoggerMetric testSubject;
+ String targetEntity = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setTargetEntity(targetEntity);
+ }
+
+
+ @Test
+ public void testSetTargetServiceName() throws Exception {
+ LoggerMetric testSubject;
+ String targetServiceName = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setTargetServiceName(targetServiceName);
+ }
+
+
+ @Test
+ public void testSetTargetVirtualEntity() throws Exception {
+ LoggerMetric testSubject;
+ String targetVirtualEntity = "";
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.setTargetVirtualEntity(targetVirtualEntity);
+ }
+
+
+ @Test
+ public void testClear() throws Exception {
+ LoggerMetric testSubject;
+ LoggerMetric result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.clear();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java
new file mode 100644
index 0000000000..3ff24f2b07
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java
@@ -0,0 +1,51 @@
+package org.openecomp.sdc.common.kpi.api;
+
+import org.junit.Test;
+
+
+public class ASDCKpiApiTest {
+
+ private ASDCKpiApi createTestSubject() {
+ return new ASDCKpiApi();
+ }
+
+
+ @Test
+ public void testCountImportResourcesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countImportResourcesKPI();
+ }
+
+
+ @Test
+ public void testCountCreatedResourcesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countCreatedResourcesKPI();
+ }
+
+
+ @Test
+ public void testCountCreatedServicesKPI() throws Exception {
+
+ // default test
+ ASDCKpiApi.countCreatedServicesKPI();
+ }
+
+
+ @Test
+ public void testCountUsersAuthorizations() throws Exception {
+
+ // default test
+ ASDCKpiApi.countUsersAuthorizations();
+ }
+
+
+ @Test
+ public void testCountActivatedDistribution() throws Exception {
+
+ // default test
+ ASDCKpiApi.countActivatedDistribution();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java
new file mode 100644
index 0000000000..298f6fe85d
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java
@@ -0,0 +1,42 @@
+package org.openecomp.sdc.common.listener;
+
+import java.util.Map;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+
+import org.junit.Test;
+
+
+public class AppContextListenerTest {
+
+ private AppContextListener createTestSubject() {
+ return new AppContextListener();
+ }
+
+
+
+
+
+ @Test
+ public void testContextDestroyed() throws Exception {
+ AppContextListener testSubject;
+ ServletContextEvent context = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.contextDestroyed(context);
+ }
+
+
+
+
+// @Test
+ public void testGetManifestInfo() throws Exception {
+ ServletContext application = null;
+ Map<String, String> result;
+
+ // default test
+ result = AppContextListener.getManifestInfo(application);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/monitoring/MonitoringEventTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/monitoring/MonitoringEventTest.java
new file mode 100644
index 0000000000..66f519197c
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/monitoring/MonitoringEventTest.java
@@ -0,0 +1,242 @@
+package org.openecomp.sdc.common.monitoring;
+
+import org.junit.Test;
+
+
+public class MonitoringEventTest {
+
+ private MonitoringEvent createTestSubject() {
+ return new MonitoringEvent();
+ }
+
+
+ @Test
+ public void testGetHostid() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHostid();
+ }
+
+
+ @Test
+ public void testSetHostid() throws Exception {
+ MonitoringEvent testSubject;
+ String hostid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHostid(hostid);
+ }
+
+
+ @Test
+ public void testGetHostcpu() throws Exception {
+ MonitoringEvent testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHostcpu();
+ }
+
+
+ @Test
+ public void testSetHostcpu() throws Exception {
+ MonitoringEvent testSubject;
+ Long hostcpu = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHostcpu(hostcpu);
+ }
+
+
+ @Test
+ public void testGetHostmem() throws Exception {
+ MonitoringEvent testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHostmem();
+ }
+
+
+ @Test
+ public void testSetHostmem() throws Exception {
+ MonitoringEvent testSubject;
+ Double hostmem = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHostmem(hostmem);
+ }
+
+
+ @Test
+ public void testGetHostdisk() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHostdisk();
+ }
+
+
+ @Test
+ public void testSetHostdisk() throws Exception {
+ MonitoringEvent testSubject;
+ String hostdisk = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHostdisk(hostdisk);
+ }
+
+
+ @Test
+ public void testGetJvmid() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getJvmid();
+ }
+
+
+ @Test
+ public void testSetJvmid() throws Exception {
+ MonitoringEvent testSubject;
+ String jvmid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setJvmid(jvmid);
+ }
+
+
+ @Test
+ public void testGetJvmcpu() throws Exception {
+ MonitoringEvent testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getJvmcpu();
+ }
+
+
+ @Test
+ public void testSetJvmcpu() throws Exception {
+ MonitoringEvent testSubject;
+ Long jvmcpu = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setJvmcpu(jvmcpu);
+ }
+
+
+ @Test
+ public void testGetJvmmem() throws Exception {
+ MonitoringEvent testSubject;
+ Long result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getJvmmem();
+ }
+
+
+ @Test
+ public void testSetJvmmem() throws Exception {
+ MonitoringEvent testSubject;
+ Long jvmmem = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setJvmmem(jvmmem);
+ }
+
+
+ @Test
+ public void testGetJvmtnum() throws Exception {
+ MonitoringEvent testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getJvmtnum();
+ }
+
+
+ @Test
+ public void testSetJvmtnum() throws Exception {
+ MonitoringEvent testSubject;
+ Integer jvmtnum = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setJvmtnum(jvmtnum);
+ }
+
+
+ @Test
+ public void testGetAppid() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAppid();
+ }
+
+
+ @Test
+ public void testSetAppid() throws Exception {
+ MonitoringEvent testSubject;
+ String appid = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAppid(appid);
+ }
+
+
+ @Test
+ public void testGetAppstat() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAppstat();
+ }
+
+
+ @Test
+ public void testSetAppstat() throws Exception {
+ MonitoringEvent testSubject;
+ String appstat = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAppstat(appstat);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ MonitoringEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/rest/api/RestConfigurationInfoTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/rest/api/RestConfigurationInfoTest.java
new file mode 100644
index 0000000000..efbb7d799d
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/rest/api/RestConfigurationInfoTest.java
@@ -0,0 +1,110 @@
+package org.openecomp.sdc.common.rest.api;
+
+import org.junit.Test;
+
+
+public class RestConfigurationInfoTest {
+
+ private RestConfigurationInfo createTestSubject() {
+ return new RestConfigurationInfo();
+ }
+
+
+ @Test
+ public void testGetReadTimeoutInSec() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReadTimeoutInSec();
+ }
+
+
+ @Test
+ public void testSetReadTimeoutInSec() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer readTimeoutInSec = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReadTimeoutInSec(readTimeoutInSec);
+ }
+
+
+ @Test
+ public void testGetIgnoreCertificate() throws Exception {
+ RestConfigurationInfo testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIgnoreCertificate();
+ }
+
+
+ @Test
+ public void testSetIgnoreCertificate() throws Exception {
+ RestConfigurationInfo testSubject;
+ Boolean ignoreCertificate = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIgnoreCertificate(ignoreCertificate);
+ }
+
+
+ @Test
+ public void testGetConnectionPoolSize() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConnectionPoolSize();
+ }
+
+
+ @Test
+ public void testSetConnectionPoolSize() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer connectionPoolSize = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConnectionPoolSize(connectionPoolSize);
+ }
+
+
+ @Test
+ public void testGetConnectTimeoutInSec() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConnectTimeoutInSec();
+ }
+
+
+ @Test
+ public void testSetConnectTimeoutInSec() throws Exception {
+ RestConfigurationInfo testSubject;
+ Integer connectTimeoutInSec = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConnectTimeoutInSec(connectTimeoutInSec);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ RestConfigurationInfo testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/CapabilityTypeNameEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/CapabilityTypeNameEnumTest.java
new file mode 100644
index 0000000000..67862928ce
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/CapabilityTypeNameEnumTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.common.util;
+
+import org.junit.Test;
+
+
+public class CapabilityTypeNameEnumTest {
+
+ private CapabilityTypeNameEnum createTestSubject() {
+ return CapabilityTypeNameEnum.ATTACHMENT;
+ }
+
+
+ @Test
+ public void testGetCapabilityName() throws Exception {
+ CapabilityTypeNameEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilityName();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java
new file mode 100644
index 0000000000..ebfffe572a
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java
@@ -0,0 +1,124 @@
+package org.openecomp.sdc.common.util;
+
+import java.util.List;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+
+public class GeneralUtilityTest {
+
+ private GeneralUtility createTestSubject() {
+ return new GeneralUtility();
+ }
+
+
+ @Test
+ public void testGenerateTextFile() throws Exception {
+ String fileName = "";
+ String fileData = "";
+ boolean result;
+
+ // default test
+ result = GeneralUtility.generateTextFile(fileName, fileData);
+ }
+
+
+ @Test
+ public void testIsBase64Encoded() throws Exception {
+ byte[] data = new byte[] { ' ' };
+ boolean result;
+
+ // default test
+ result = GeneralUtility.isBase64Encoded(data);
+ }
+
+
+ @Test
+ public void testIsBase64Encoded_1() throws Exception {
+ String str = "";
+ boolean result;
+
+ // default test
+ result = GeneralUtility.isBase64Encoded(str);
+ }
+
+
+ @Test
+ public void testIsExceedingLimit() throws Exception {
+ String str = "";
+ int limit = 0;
+ boolean result;
+
+ // test 1
+ str = null;
+ result = GeneralUtility.isExceedingLimit(str, limit);
+ Assert.assertEquals(false, result);
+
+ // test 2
+ str = "";
+ result = GeneralUtility.isExceedingLimit(str, limit);
+ Assert.assertEquals(false, result);
+ }
+
+
+ @Test
+ public void testIsExceedingLimit_1() throws Exception {
+ List<String> strList = null;
+ int limit = 0;
+ int delimiterLength = 0;
+ boolean result;
+
+ // test 1
+ strList = null;
+ result = GeneralUtility.isExceedingLimit(strList, limit, delimiterLength);
+ Assert.assertEquals(false, result);
+ }
+
+
+ @Test
+ public void testGetFilenameExtension() throws Exception {
+ String fileName = "";
+ String result;
+
+ // test 1
+ fileName = null;
+ result = GeneralUtility.getFilenameExtension(fileName);
+ Assert.assertEquals("", result);
+
+ // test 2
+ fileName = "";
+ result = GeneralUtility.getFilenameExtension(fileName);
+ Assert.assertEquals("", result);
+ }
+
+
+ @Test
+ public void testCalculateMD5Base64EncodedByByteArray() throws Exception {
+ byte[] payload = new byte[] { ' ' };
+ String result;
+
+ // default test
+ result = GeneralUtility.calculateMD5Base64EncodedByByteArray(payload);
+ }
+
+
+ @Test
+ public void testCalculateMD5Base64EncodedByString() throws Exception {
+ String data = "";
+ String result;
+
+ // default test
+ result = GeneralUtility.calculateMD5Base64EncodedByString(data);
+ }
+
+
+ @Test
+ public void testIsEmptyString() throws Exception {
+ String str = "";
+ boolean result;
+
+ // default test
+ result = GeneralUtility.isEmptyString(str);
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/GsonFactoryTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/GsonFactoryTest.java
new file mode 100644
index 0000000000..0840d27934
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/GsonFactoryTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.common.util;
+
+import org.junit.Test;
+
+import com.google.gson.Gson;
+
+
+public class GsonFactoryTest {
+
+ private GsonFactory createTestSubject() {
+ return new GsonFactory();
+ }
+
+
+ @Test
+ public void testGetGson() throws Exception {
+ Gson result;
+
+ // default test
+ result = GsonFactory.getGson();
+ }
+} \ No newline at end of file
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
new file mode 100644
index 0000000000..9b30039023
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
@@ -0,0 +1,603 @@
+package org.openecomp.sdc.common.util;
+
+import java.util.List;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+
+public class ValidationUtilsTest {
+
+ private ValidationUtils createTestSubject() {
+ return new ValidationUtils();
+ }
+
+
+ @Test
+ public void testValidateArtifactLabel() throws Exception {
+ String label = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateArtifactLabel(label);
+ }
+
+
+ @Test
+ public void testValidateArtifactDisplayName() throws Exception {
+ String displayName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateArtifactDisplayName(displayName);
+ }
+
+
+
+
+ @Test
+ public void testNormalizeCategoryName4Display() throws Exception {
+ String str = "";
+ String result;
+
+ // test 1
+ str = "123";
+ result = ValidationUtils.normalizeCategoryName4Display(str);
+ Assert.assertEquals("123", result);
+
+ // test 2
+ str = "123#123";
+ result = ValidationUtils.normalizeCategoryName4Display(str);
+ Assert.assertEquals("123#123", result);
+ }
+
+
+ @Test
+ public void testNormalizeCategoryName4Uniqueness() throws Exception {
+ String str = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normalizeCategoryName4Uniqueness(str);
+ }
+
+
+ @Test
+ public void testValidateCategoryDisplayNameLength() throws Exception {
+ String label = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateCategoryDisplayNameLength(label);
+ }
+
+
+ @Test
+ public void testValidateProductFullNameLength() throws Exception {
+ String fullName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateProductFullNameLength(fullName);
+ }
+
+
+ @Test
+ public void testValidateArtifactLabelLength() throws Exception {
+ String label = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateArtifactLabelLength(label);
+ }
+
+
+ @Test
+ public void testValidateResourceInstanceNameLength() throws Exception {
+ String resourceInstanceName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateResourceInstanceNameLength(resourceInstanceName);
+ }
+
+
+ @Test
+ public void testValidateResourceInstanceName() throws Exception {
+ String resourceInstanceName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateResourceInstanceName(resourceInstanceName);
+ }
+
+
+ @Test
+ public void testValidateUrlLength() throws Exception {
+ String url = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateUrlLength(url);
+ }
+
+
+ @Test
+ public void testValidateArtifactNameLength() throws Exception {
+ String artifactName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateArtifactNameLength(artifactName);
+ }
+
+
+ @Test
+ public void testValidateComponentNamePattern() throws Exception {
+ String componentName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateComponentNamePattern(componentName);
+ }
+
+
+ @Test
+ public void testValidateComponentNameLength() throws Exception {
+ String componentName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateComponentNameLength(componentName);
+ }
+
+
+ @Test
+ public void testValidateIcon() throws Exception {
+ String icon = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateIcon(icon);
+ }
+
+
+ @Test
+ public void testValidateIconLength() throws Exception {
+ String icon = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateIconLength(icon);
+ }
+
+
+ @Test
+ public void testValidateProjectCode() throws Exception {
+ String projectCode = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateProjectCode(projectCode);
+ }
+
+
+ @Test
+ public void testValidateProjectCodeLegth() throws Exception {
+ String projectCode = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateProjectCodeLegth(projectCode);
+ }
+
+
+ @Test
+ public void testValidateContactId() throws Exception {
+ String contactId = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateContactId(contactId);
+ }
+
+
+ @Test
+ public void testValidateCost() throws Exception {
+ String cost = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateCost(cost);
+ }
+
+
+ @Test
+ public void testRemoveHtmlTags() throws Exception {
+ String str = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.removeHtmlTags(str);
+ }
+
+
+ @Test
+ public void testRemoveAllTags() throws Exception {
+ String htmlText = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.removeAllTags(htmlText);
+ }
+
+
+ @Test
+ public void testNormaliseWhitespace() throws Exception {
+ String str = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normaliseWhitespace(str);
+ }
+
+
+ @Test
+ public void testStripOctets() throws Exception {
+ String str = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.stripOctets(str);
+ }
+
+
+ @Test
+ public void testRemoveNoneUtf8Chars() throws Exception {
+ String input = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.removeNoneUtf8Chars(input);
+ }
+
+
+ @Test
+ public void testValidateIsEnglish() throws Exception {
+ String input = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateIsEnglish(input);
+ }
+
+
+ @Test
+ public void testValidateIsAscii() throws Exception {
+ String input = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateIsAscii(input);
+ }
+
+
+ @Test
+ public void testConvertHtmlTagsToEntities() throws Exception {
+ String input = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.convertHtmlTagsToEntities(input);
+ }
+
+
+
+
+
+
+
+
+ @Test
+ public void testValidateTagListLength() throws Exception {
+ int tagListLength = 0;
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateTagListLength(tagListLength);
+ }
+
+
+ @Test
+ public void testValidateDescriptionLength() throws Exception {
+ String description = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateDescriptionLength(description);
+ }
+
+
+ @Test
+ public void testValidateStringNotEmpty() throws Exception {
+ String value = "";
+ boolean result;
+
+ // test 1
+ value = null;
+ result = ValidationUtils.validateStringNotEmpty(value);
+ Assert.assertEquals(false, result);
+
+ // test 2
+ value = "";
+ result = ValidationUtils.validateStringNotEmpty(value);
+ Assert.assertEquals(false, result);
+ }
+
+
+ @Test
+ public void testValidateListNotEmpty() throws Exception {
+ List<?> list = null;
+ boolean result;
+
+ // test 1
+ list = null;
+ result = ValidationUtils.validateListNotEmpty(list);
+ Assert.assertEquals(false, result);
+ }
+
+
+ @Test
+ public void testValidateVendorName() throws Exception {
+ String vendorName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateVendorName(vendorName);
+ }
+
+
+ @Test
+ public void testValidateVendorNameLength() throws Exception {
+ String vendorName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateVendorNameLength(vendorName);
+ }
+
+
+ @Test
+ public void testValidateResourceVendorModelNumberLength() throws Exception {
+ String resourceVendorModelNumber = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateResourceVendorModelNumberLength(resourceVendorModelNumber);
+ }
+
+
+ @Test
+ public void testValidateVendorRelease() throws Exception {
+ String vendorRelease = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateVendorRelease(vendorRelease);
+ }
+
+
+ @Test
+ public void testValidateVendorReleaseLength() throws Exception {
+ String vendorRelease = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateVendorReleaseLength(vendorRelease);
+ }
+
+
+ @Test
+ public void testValidateServiceTypeLength() throws Exception {
+ String serviceType = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateServiceTypeLength(serviceType);
+ }
+
+
+ @Test
+ public void testValidateServiceRoleLength() throws Exception {
+ String serviceRole = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateServiceRoleLength(serviceRole);
+ }
+
+
+ @Test
+ public void testHasBeenCertified() throws Exception {
+ String version = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.hasBeenCertified(version);
+ }
+
+
+ @Test
+ public void testNormaliseComponentName() throws Exception {
+ String name = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normaliseComponentName(name);
+ }
+
+
+ @Test
+ public void testNormalizeComponentInstanceName() throws Exception {
+ String name = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normalizeComponentInstanceName(name);
+ }
+
+
+
+
+
+ @Test
+ public void testConvertToSystemName() throws Exception {
+ String name = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.convertToSystemName(name);
+ }
+
+
+ @Test
+ public void testNormalizeFileName() throws Exception {
+ String filename = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normalizeFileName(filename);
+ }
+
+
+
+
+
+ @Test
+ public void testValidateUrl() throws Exception {
+ String url = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateUrl(url);
+ }
+
+
+ @Test
+ public void testCleanArtifactDisplayName() throws Exception {
+ String strIn = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.cleanArtifactDisplayName(strIn);
+ }
+
+
+ @Test
+ public void testNormalizeArtifactLabel() throws Exception {
+ String strIn = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normalizeArtifactLabel(strIn);
+ }
+
+
+ @Test
+ public void testValidateAdditionalInformationKeyName() throws Exception {
+ String str = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateAdditionalInformationKeyName(str);
+ }
+
+
+
+
+
+
+
+
+ @Test
+ public void testValidateConsumerName() throws Exception {
+ String consumerName = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateConsumerName(consumerName);
+ }
+
+
+ @Test
+ public void testIsUTF8Str() throws Exception {
+ String str = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.isUTF8Str(str);
+ }
+
+
+ @Test
+ public void testValidateConsumerPassSalt() throws Exception {
+ String consumerSalt = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateConsumerPassSalt(consumerSalt);
+ }
+
+
+ @Test
+ public void testIsFloatNumber() throws Exception {
+ String number = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.isFloatNumber(number);
+ }
+
+
+ @Test
+ public void testValidateCertifiedVersion() throws Exception {
+ String version = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateCertifiedVersion(version);
+ }
+
+
+ @Test
+ public void testValidateMinorVersion() throws Exception {
+ String version = "";
+ boolean result;
+
+ // default test
+ result = ValidationUtils.validateMinorVersion(version);
+ }
+
+
+ @Test
+ public void testNormaliseProductName() throws Exception {
+ String name = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.normaliseProductName(name);
+ }
+
+
+
+
+
+ @Test
+ public void testRemoveHtmlTagsOnly() throws Exception {
+ String htmlText = "";
+ String result;
+
+ // default test
+ result = ValidationUtils.removeHtmlTagsOnly(htmlText);
+ }
+} \ No newline at end of file
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/CompositionDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/CompositionDataDefinitionTest.java
new file mode 100644
index 0000000000..92faa74f3c
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/CompositionDataDefinitionTest.java
@@ -0,0 +1,81 @@
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class CompositionDataDefinitionTest {
+
+ private CompositionDataDefinition createTestSubject() {
+ return new CompositionDataDefinition();
+ }
+
+
+ @Test
+ public void testGetComponentInstances() throws Exception {
+ CompositionDataDefinition testSubject;
+ Map<String, ComponentInstanceDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstances();
+ }
+
+
+ @Test
+ public void testSetComponentInstances() throws Exception {
+ CompositionDataDefinition testSubject;
+ Map<String, ComponentInstanceDataDefinition> componentInstances = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstances(componentInstances);
+ }
+
+
+ @Test
+ public void testGetRelations() throws Exception {
+ CompositionDataDefinition testSubject;
+ Map<String, RelationshipInstDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRelations();
+ }
+
+
+ @Test
+ public void testSetRelations() throws Exception {
+ CompositionDataDefinition testSubject;
+ Map<String, RelationshipInstDataDefinition> relations = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRelations(relations);
+ }
+
+
+ @Test
+ public void testAddInstance() throws Exception {
+ CompositionDataDefinition testSubject;
+ String key = "";
+ ComponentInstanceDataDefinition instance = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.addInstance(key, instance);
+ }
+
+
+ @Test
+ public void testAddRelation() throws Exception {
+ CompositionDataDefinition testSubject;
+ String key = "";
+ RelationshipInstDataDefinition relation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.addRelation(key, relation);
+ }
+} \ No newline at end of file
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListCapabiltyDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListCapabiltyDataDefinitionTest.java
new file mode 100644
index 0000000000..43fefcfe09
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListCapabiltyDataDefinitionTest.java
@@ -0,0 +1,46 @@
+package org.openecomp.sdc.be.datatypes.elements;
+
+import org.apache.commons.collections.map.HashedMap;
+import org.junit.Test;
+
+import java.util.Map;
+
+
+public class MapListCapabiltyDataDefinitionTest {
+
+ private MapListCapabilityDataDefinition createTestSubject() {
+ return new MapListCapabilityDataDefinition();
+ }
+
+ @Test
+ public void testConstructors() throws Exception {
+ MapListCapabilityDataDefinition testSubject;
+ Map<String, ListCapabilityDataDefinition> result;
+
+ // default test
+ new MapListCapabilityDataDefinition(new HashedMap());
+ new MapListCapabilityDataDefinition(createTestSubject());
+ }
+
+ @Test
+ public void testGetMapToscaDataDefinition() throws Exception {
+ MapListCapabilityDataDefinition testSubject;
+ Map<String, ListCapabilityDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMapToscaDataDefinition();
+ }
+
+
+ @Test
+ public void testAdd() throws Exception {
+ MapListCapabilityDataDefinition testSubject;
+ String key = "";
+ CapabilityDataDefinition value = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.add(key, value);
+ }
+} \ No newline at end of file
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListRequirementDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListRequirementDataDefinitionTest.java
new file mode 100644
index 0000000000..82f0e0ea06
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/MapListRequirementDataDefinitionTest.java
@@ -0,0 +1,38 @@
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class MapListRequirementDataDefinitionTest {
+
+ private MapListRequirementDataDefinition createTestSubject() {
+ Map map = new HashMap<>();
+ return new MapListRequirementDataDefinition(map);
+ }
+
+
+ @Test
+ public void testGetMapToscaDataDefinition() throws Exception {
+ MapListRequirementDataDefinition testSubject;
+ Map<String, ListRequirementDataDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMapToscaDataDefinition();
+ }
+
+
+ @Test
+ public void testAdd() throws Exception {
+ MapListRequirementDataDefinition testSubject;
+ String key = "";
+ RequirementDataDefinition value = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.add(key, value);
+ }
+} \ No newline at end of file
diff --git a/test-apis-ci/pom.xml b/test-apis-ci/pom.xml
index d76639d834..d6176342ce 100644
--- a/test-apis-ci/pom.xml
+++ b/test-apis-ci/pom.xml
@@ -312,7 +312,7 @@
<dependency>
<groupId>org.onap.sdc.sdc-tosca</groupId>
<artifactId>sdc-tosca</artifactId>
- <version>1.4.1-SNAPSHOT</version>
+ <version>1.4.1</version>
<scope>compile</scope>
</dependency>