From 6e6a179914fd6b8516c697991a501535bfc53172 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sat, 4 Aug 2018 20:32:31 +0300 Subject: add removed unit tests Change-Id: Iabd593d8d9ab0efeb32032d5c4d72b8fa1c27e63 Issue-ID: SDC-1590 Signed-off-by: Michael Lando --- .../sdc/be/config/BeEcompErrorManagerTest.java | 733 ++++++++++ .../config/CleanComponentsConfigurationTest.java | 49 + .../openecomp/sdc/be/config/ConfigurationTest.java | 1453 ++++++++++++++++++++ .../sdc/be/config/ErrorConfigurationTest.java | 49 + .../org/openecomp/sdc/be/config/ErrorInfoTest.java | 108 ++ .../be/config/Neo4jErrorsConfigurationTest.java | 49 + .../DeploymentArtifactHeatConfigurationTest.java | 57 + .../sdc/common/api/ArtifactTypeEnumTest.java | 54 + .../openecomp/sdc/common/api/ResponseInfoTest.java | 59 + .../sdc/common/api/ToscaNodeTypeInfoTest.java | 134 ++ .../sdc/common/api/ToscaNodeTypeInterfaceTest.java | 35 + .../sdc/common/api/YamlSuffixEnumTest.java | 44 + .../datastructure/AuditingFieldsKeyTest.java | 44 + .../common/datastructure/ESTimeBasedEventTest.java | 117 ++ .../MonitoringFieldsKeysEnumTest.java | 44 + .../sdc/common/datastructure/WrapperTest.java | 24 + .../sdc/common/ecomplog/LoggerMetricTest.java | 302 ++++ .../sdc/common/kpi/api/ASDCKpiApiTest.java | 51 + .../common/listener/AppContextListenerTest.java | 42 + .../sdc/common/monitoring/MonitoringEventTest.java | 242 ++++ .../common/rest/api/RestConfigurationInfoTest.java | 110 ++ .../common/util/CapabilityTypeNameEnumTest.java | 22 + .../sdc/common/util/GeneralUtilityTest.java | 124 ++ .../openecomp/sdc/common/util/GsonFactoryTest.java | 22 + .../sdc/common/util/ValidationUtilsTest.java | 603 ++++++++ 25 files changed, 4571 insertions(+) create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/BeEcompErrorManagerTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/CleanComponentsConfigurationTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/ConfigurationTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorConfigurationTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/ErrorInfoTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/Neo4jErrorsConfigurationTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/be/config/validation/DeploymentArtifactHeatConfigurationTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactTypeEnumTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/api/ResponseInfoTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfoTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterfaceTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/ESTimeBasedEventTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/WrapperTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/ecomplog/LoggerMetricTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/kpi/api/ASDCKpiApiTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/listener/AppContextListenerTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/monitoring/MonitoringEventTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/rest/api/RestConfigurationInfoTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/util/CapabilityTypeNameEnumTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/util/GsonFactoryTest.java create mode 100644 common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java (limited to 'common-app-api/src/test') 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentsToClean(); + } + + + @Test + public void testSetComponentsToClean() throws Exception { + CleanComponentsConfiguration testSubject; + List 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGenericAssetNodeTypes(); + } + + + @Test + public void testSetGenericAssetNodeTypes() throws Exception { + Configuration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIdentificationHeaderFields(); + } + + + @Test + public void testSetIdentificationHeaderFields() throws Exception { + Configuration testSubject; + List 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProtocols(); + } + + + @Test + public void testSetProtocols() throws Exception { + Configuration testSubject; + List protocols = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProtocols(protocols); + } + + + @Test + public void testGetUsers() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUsers(); + } + + + @Test + public void testSetUsers() throws Exception { + Configuration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNeo4j(); + } + + + @Test + public void testSetNeo4j() throws Exception { + Configuration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArtifactTypes(); + } + + + @Test + public void testSetArtifactTypes() throws Exception { + Configuration testSubject; + List artifactTypes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArtifactTypes(artifactTypes); + } + + + @Test + public void testGetExcludeResourceCategory() throws Exception { + Configuration testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExcludeResourceCategory(); + } + + + @Test + public void testSetExcludeResourceCategory() throws Exception { + Configuration testSubject; + List excludeResourceCategory = null; + + // default test + testSubject = createTestSubject(); + testSubject.setExcludeResourceCategory(excludeResourceCategory); + } + + + @Test + public void testGetExcludeResourceType() throws Exception { + Configuration testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExcludeResourceType(); + } + + + @Test + public void testSetExcludeResourceType() throws Exception { + Configuration testSubject; + List excludeResourceType = null; + + // default test + testSubject = createTestSubject(); + testSubject.setExcludeResourceType(excludeResourceType); + } + + + @Test + public void testGetToscaArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getToscaArtifacts(); + } + + + @Test + public void testSetToscaArtifacts() throws Exception { + Configuration testSubject; + Map toscaArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setToscaArtifacts(toscaArtifacts); + } + + + @Test + public void testGetInformationalResourceArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInformationalResourceArtifacts(); + } + + + @Test + public void testSetInformationalResourceArtifacts() throws Exception { + Configuration testSubject; + Map informationalResourceArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInformationalResourceArtifacts(informationalResourceArtifacts); + } + + + @Test + public void testGetInformationalServiceArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInformationalServiceArtifacts(); + } + + + @Test + public void testSetInformationalServiceArtifacts() throws Exception { + Configuration testSubject; + Map informationalServiceArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInformationalServiceArtifacts(informationalServiceArtifacts); + } + + + @Test + public void testGetServiceApiArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getServiceApiArtifacts(); + } + + + @Test + public void testSetServiceApiArtifacts() throws Exception { + Configuration testSubject; + Map serviceApiArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setServiceApiArtifacts(serviceApiArtifacts); + } + + + @Test + public void testGetServiceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getServiceDeploymentArtifacts(); + } + + + @Test + public void testSetServiceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map serviceDeploymentArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setServiceDeploymentArtifacts(serviceDeploymentArtifacts); + } + + + @Test + public void testGetResourceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceDeploymentArtifacts(); + } + + + @Test + public void testSetResourceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map resourceDeploymentArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceDeploymentArtifacts(resourceDeploymentArtifacts); + } + + + @Test + public void testSetResourceInstanceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map resourceInstanceDeploymentArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceInstanceDeploymentArtifacts(resourceInstanceDeploymentArtifacts); + } + + + @Test + public void testGetResourceInstanceDeploymentArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceInstanceDeploymentArtifacts(); + } + + + @Test + public void testGetExcludeServiceCategory() throws Exception { + Configuration testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExcludeServiceCategory(); + } + + + @Test + public void testSetExcludeServiceCategory() throws Exception { + Configuration testSubject; + List excludeServiceCategory = null; + + // default test + testSubject = createTestSubject(); + testSubject.setExcludeServiceCategory(excludeServiceCategory); + } + + + @Test + public void testGetLicenseTypes() throws Exception { + Configuration testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLicenseTypes(); + } + + + @Test + public void testSetLicenseTypes() throws Exception { + Configuration testSubject; + List 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnLoggedUrls(); + } + + + @Test + public void testSetUnLoggedUrls() throws Exception { + Configuration testSubject; + List unLoggedUrls = null; + + // default test + testSubject = createTestSubject(); + testSubject.setUnLoggedUrls(unLoggedUrls); + } + + + @Test + public void testGetDeploymentResourceArtifacts() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDeploymentResourceArtifacts(); + } + + + @Test + public void testSetDeploymentResourceArtifacts() throws Exception { + Configuration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDeploymentResourceInstanceArtifacts(); + } + + + @Test + public void testSetDeploymentResourceInstanceArtifacts() throws Exception { + Configuration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceInformationalDeployedArtifacts(); + } + + + @Test + public void testSetResourceInformationalDeployedArtifacts() throws Exception { + Configuration testSubject; + Map resourceInformationalDeployedArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceInformationalDeployedArtifacts(resourceInformationalDeployedArtifacts); + } + + + @Test + public void testGetResourceTypes() throws Exception { + Configuration testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceTypes(); + } + + + @Test + public void testSetResourceTypes() throws Exception { + Configuration testSubject; + List 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> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirementsToFulfillBeforeCert(); + } + + + @Test + public void testSetRequirementsToFulfillBeforeCert() throws Exception { + Configuration testSubject; + Map> requirementsToFulfillBeforeCert = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirementsToFulfillBeforeCert(requirementsToFulfillBeforeCert); + } + + + @Test + public void testGetCapabilitiesToConsumeBeforeCert() throws Exception { + Configuration testSubject; + Map> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilitiesToConsumeBeforeCert(); + } + + + @Test + public void testSetCapabilitiesToConsumeBeforeCert() throws Exception { + Configuration testSubject; + Map> 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceInformationalArtifacts(); + } + + + @Test + public void testSetResourceInformationalArtifacts() throws Exception { + Configuration testSubject; + Map resourceInformationalArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceInformationalArtifacts(resourceInformationalArtifacts); + } + + + @Test + public void testGetVfModuleProperties() throws Exception { + Configuration testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVfModuleProperties(); + } + + + @Test + public void testSetVfModuleProperties() throws Exception { + Configuration testSubject; + Map 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>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDefaultImports(); + } + + + @Test + public void testSetDefaultImports() throws Exception { + Configuration testSubject; + LinkedList>> 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getErrors(); + } + + + @Test + public void testSetErrors() throws Exception { + ErrorConfiguration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getErrors(); + } + + + @Test + public void testSetErrors() throws Exception { + Neo4jErrorsConfiguration testSubject; + Map 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResources(); + } + + + @Test + public void testSetResources() throws Exception { + DeploymentArtifactHeatConfiguration testSubject; + Map 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 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInterfaces(); + } + + + @Test + public void testSetInterfaces() throws Exception { + ToscaNodeTypeInfo testSubject; + List 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getScripts(); + } + + + @Test + public void testSetScripts() throws Exception { + ToscaNodeTypeInterface testSubject; + List 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 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 result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFields(); + } + + + @Test + public void testSetFields() throws Exception { + ESTimeBasedEvent testSubject; + Map 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 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 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 -- cgit 1.2.3-korg