diff options
Diffstat (limited to 'asdctool/src/test')
16 files changed, 998 insertions, 54 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java deleted file mode 100644 index ae23b73d7d..0000000000 --- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.asdctool; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest extends TestCase { - /** - * Create the test case - * - * @param testName - * name of the test case - */ - public AppTest(String testName) { - super(testName); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() { - return new TestSuite(AppTest.class); - } - - /** - * Rigourous Test :-) - */ - public void testApp() { - assertTrue(true); - } -} diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/enums/SchemaZipFileEnumTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/enums/SchemaZipFileEnumTest.java new file mode 100644 index 0000000000..5afabc5639 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/enums/SchemaZipFileEnumTest.java @@ -0,0 +1,123 @@ +package org.openecomp.sdc.asdctool.enums; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class SchemaZipFileEnumTest { + + private SchemaZipFileEnum createTestSubject() { + return SchemaZipFileEnum.DATA; + } + + + @Test + public void testGetFileName() throws Exception { + SchemaZipFileEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFileName(); + } + + + @Test + public void testSetFileName() throws Exception { + SchemaZipFileEnum testSubject; + String fileName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFileName(fileName); + } + + + @Test + public void testGetSourceFolderName() throws Exception { + SchemaZipFileEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceFolderName(); + } + + + @Test + public void testSetSourceFolderName() throws Exception { + SchemaZipFileEnum testSubject; + String sourceFolderName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceFolderName(sourceFolderName); + } + + + @Test + public void testGetSourceFileName() throws Exception { + SchemaZipFileEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceFileName(); + } + + + @Test + public void testSetSourceFileName() throws Exception { + SchemaZipFileEnum testSubject; + String sourceFileName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceFileName(sourceFileName); + } + + + @Test + public void testGetCollectionTitle() throws Exception { + SchemaZipFileEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCollectionTitle(); + } + + + @Test + public void testSetCollectionTitle() throws Exception { + SchemaZipFileEnum testSubject; + String collectionTitle = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCollectionTitle(collectionTitle); + } + + + @Test + public void testGetImportFileList() throws Exception { + SchemaZipFileEnum testSubject; + String[] result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getImportFileList(); + } + + + @Test + public void testSetImportFileList() throws Exception { + SchemaZipFileEnum testSubject; + String[] importFileList = new String[] { "" }; + + // default test + testSubject = createTestSubject(); + testSubject.setImportFileList(importFileList); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java new file mode 100644 index 0000000000..775006bfdc --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java @@ -0,0 +1,70 @@ +package org.openecomp.sdc.asdctool.impl.validator.config; + +import java.util.Properties; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ValidationConfigManagerTest { + + private ValidationConfigManager createTestSubject() { + return new ValidationConfigManager(); + } + + + @Test + public void testGetOutputFilePath() throws Exception { + String result; + + // default test + result = ValidationConfigManager.getOutputFilePath(); + } + + + @Test + public void testSetOutputFilePath() throws Exception { + String outputPath = ""; + + // default test + ValidationConfigManager.setOutputFilePath(outputPath); + } + + + @Test + public void testGetCsvReportFilePath() throws Exception { + String result; + + // default test + result = ValidationConfigManager.getCsvReportFilePath(); + } + + + @Test + public void testSetCsvReportFilePath() throws Exception { + String outputPath = ""; + + // default test + ValidationConfigManager.setCsvReportFilePath(outputPath); + } + + + @Test + public void testSetValidationConfiguration() throws Exception { + String path = ""; + Properties result; + + // default test + result = ValidationConfigManager.setValidationConfiguration(path); + } + + + @Test + public void testGetValidationConfiguration() throws Exception { + Properties result; + + // default test + result = ValidationConfigManager.getValidationConfiguration(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java new file mode 100644 index 0000000000..f220fa149a --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java @@ -0,0 +1,275 @@ +package org.openecomp.sdc.asdctool.impl.validator.config; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.asdctool.impl.validator.ValidationToolBL; +import org.openecomp.sdc.asdctool.impl.validator.executers.ServiceValidatorExecuter; +import org.openecomp.sdc.asdctool.impl.validator.executers.VfValidatorExecuter; +import org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts.ArtifactValidationUtils; +import org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts.ServiceArtifactValidationTask; +import org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts.VfArtifactValidationTask; +import org.openecomp.sdc.asdctool.impl.validator.tasks.moduleJson.ModuleJsonTask; +import org.openecomp.sdc.asdctool.impl.validator.utils.ReportManager; +import org.openecomp.sdc.be.dao.TitanClientStrategy; +import org.openecomp.sdc.be.dao.cassandra.ArtifactCassandraDao; +import org.openecomp.sdc.be.dao.cassandra.CassandraClient; +import org.openecomp.sdc.be.dao.jsongraph.TitanDao; +import org.openecomp.sdc.be.dao.titan.TitanGraphClient; +import org.openecomp.sdc.be.model.DerivedNodeTypeResolver; +import org.openecomp.sdc.be.model.jsontitan.operations.ArtifactsOperations; +import org.openecomp.sdc.be.model.jsontitan.operations.CategoryOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.GroupsOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.NodeTemplateOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.NodeTypeOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.TopologyTemplateOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.ToscaDataOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.ToscaElementLifecycleOperation; +import org.openecomp.sdc.be.model.jsontitan.operations.ToscaOperationFacade; + + +public class ValidationToolConfigurationTest { + + private ValidationToolConfiguration createTestSubject() { + return new ValidationToolConfiguration(); + } + + + @Test + public void testBasicServiceValidator() throws Exception { + ValidationToolConfiguration testSubject; + ServiceValidatorExecuter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.basicServiceValidator(); + } + + + @Test + public void testVfArtifactValidationTask() throws Exception { + ValidationToolConfiguration testSubject; + VfArtifactValidationTask result; + + // default test + testSubject = createTestSubject(); + result = testSubject.vfArtifactValidationTask(); + } + + + @Test + public void testServiceArtifactValidationTask() throws Exception { + ValidationToolConfiguration testSubject; + ServiceArtifactValidationTask result; + + // default test + testSubject = createTestSubject(); + result = testSubject.serviceArtifactValidationTask(); + } + + + @Test + public void testModuleJsonTask() throws Exception { + ValidationToolConfiguration testSubject; + ModuleJsonTask result; + + // default test + testSubject = createTestSubject(); + result = testSubject.moduleJsonTask(); + } + + + @Test + public void testValidationToolBL() throws Exception { + ValidationToolConfiguration testSubject; + ValidationToolBL result; + + // default test + testSubject = createTestSubject(); + result = testSubject.validationToolBL(); + } + + + @Test + public void testBasicVfValidator() throws Exception { + ValidationToolConfiguration testSubject; + VfValidatorExecuter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.basicVfValidator(); + } + + + @Test + public void testReportManager() throws Exception { + ValidationToolConfiguration testSubject; + ReportManager result; + + // default test + testSubject = createTestSubject(); + result = testSubject.reportManager(); + } + + + @Test + public void testArtifactCassandraDao() throws Exception { + ValidationToolConfiguration testSubject; + ArtifactCassandraDao result; + + // default test + testSubject = createTestSubject(); + result = testSubject.artifactCassandraDao(); + } + + + @Test + public void testArtifactValidationUtils() throws Exception { + ValidationToolConfiguration testSubject; + ArtifactValidationUtils result; + + // default test + testSubject = createTestSubject(); + result = testSubject.artifactValidationUtils(); + } + + + @Test + public void testJsonGroupsOperation() throws Exception { + ValidationToolConfiguration testSubject; + GroupsOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.jsonGroupsOperation(); + } + + + @Test + public void testCassandraClient() throws Exception { + ValidationToolConfiguration testSubject; + CassandraClient result; + + // default test + testSubject = createTestSubject(); + result = testSubject.cassandraClient(); + } + + + @Test + public void testDaoStrategy() throws Exception { + ValidationToolConfiguration testSubject; + TitanClientStrategy result; + + // default test + testSubject = createTestSubject(); + result = testSubject.daoStrategy(); + } + + + + + + @Test + public void testToscaOperationFacade() throws Exception { + ValidationToolConfiguration testSubject; + ToscaOperationFacade result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toscaOperationFacade(); + } + + + @Test + public void testNodeTypeOperation() throws Exception { + ValidationToolConfiguration testSubject; + DerivedNodeTypeResolver migrationDerivedNodeTypeResolver = null; + NodeTypeOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.nodeTypeOperation(migrationDerivedNodeTypeResolver); + } + + + @Test + public void testTopologyTemplateOperation() throws Exception { + ValidationToolConfiguration testSubject; + TopologyTemplateOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.topologyTemplateOperation(); + } + + + + + + @Test + public void testMigrationDerivedNodeTypeResolver() throws Exception { + ValidationToolConfiguration testSubject; + DerivedNodeTypeResolver result; + + // default test + testSubject = createTestSubject(); + result = testSubject.migrationDerivedNodeTypeResolver(); + } + + + @Test + public void testTitanDao() throws Exception { + ValidationToolConfiguration testSubject; + TitanGraphClient titanGraphClient = null; + TitanDao result; + + // default test + testSubject = createTestSubject(); + result = testSubject.titanDao(titanGraphClient); + } + + + @Test + public void testCategoryOperation() throws Exception { + ValidationToolConfiguration testSubject; + CategoryOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.categoryOperation(); + } + + + @Test + public void testArtifactsOperation() throws Exception { + ValidationToolConfiguration testSubject; + ArtifactsOperations result; + + // default test + testSubject = createTestSubject(); + result = testSubject.artifactsOperation(); + } + + + @Test + public void testToscaDataOperation() throws Exception { + ValidationToolConfiguration testSubject; + ToscaDataOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toscaDataOperation(); + } + + + @Test + public void testToscaElementLifecycleOperation() throws Exception { + ValidationToolConfiguration testSubject; + ToscaElementLifecycleOperation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toscaElementLifecycleOperation(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java new file mode 100644 index 0000000000..344c439f4b --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java @@ -0,0 +1,27 @@ +package org.openecomp.sdc.asdctool.impl.validator.executers; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ServiceValidatorExecuterTest { + + private ServiceValidatorExecuter createTestSubject() { + return new ServiceValidatorExecuter(); + } + + + + + + @Test + public void testGetName() throws Exception { + ServiceValidatorExecuter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java new file mode 100644 index 0000000000..523b9ac077 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java @@ -0,0 +1,44 @@ +package org.openecomp.sdc.asdctool.impl.validator.executers; + +import java.util.List; + +import org.junit.Test; +import org.openecomp.sdc.asdctool.impl.validator.tasks.TopologyTemplateValidationTask; +import org.openecomp.sdc.be.dao.jsongraph.GraphVertex; +import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum; + + +public class TopologyTemplateValidatorExecuterTest { + + private TopologyTemplateValidatorExecuter createTestSubject() { + return new TopologyTemplateValidatorExecuter(); + } + + + @Test + public void testSetName() throws Exception { + TopologyTemplateValidatorExecuter testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } + + + @Test + public void testGetName() throws Exception { + TopologyTemplateValidatorExecuter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } + + + + + + +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java new file mode 100644 index 0000000000..0d75c4d8b2 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java @@ -0,0 +1,25 @@ +package org.openecomp.sdc.asdctool.impl.validator.executers; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class VfValidatorExecuterTest { + + private VfValidatorExecuter createTestSubject() { + return new VfValidatorExecuter(); + } + + + + @Test + public void testGetName() throws Exception { + VfValidatorExecuter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java new file mode 100644 index 0000000000..ba1bd72fb7 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java @@ -0,0 +1,35 @@ +package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ArtifactsVertexResultTest { + + private ArtifactsVertexResult createTestSubject() { + return new ArtifactsVertexResult(); + } + + + @Test + public void testAddNotFoundArtifact() throws Exception { + ArtifactsVertexResult testSubject; + String artifactId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.addNotFoundArtifact(artifactId); + } + + + @Test + public void testGetResult() throws Exception { + ArtifactsVertexResult testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResult(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ServiceArtifactValidationTaskTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ServiceArtifactValidationTaskTest.java new file mode 100644 index 0000000000..cdada41b92 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ServiceArtifactValidationTaskTest.java @@ -0,0 +1,17 @@ +package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.jsongraph.GraphVertex; + + +public class ServiceArtifactValidationTaskTest { + + private ServiceArtifactValidationTask createTestSubject() { + return new ServiceArtifactValidationTask(); + } + + + +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/VfArtifactValidationTaskTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/VfArtifactValidationTaskTest.java new file mode 100644 index 0000000000..554e58d9d5 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/VfArtifactValidationTaskTest.java @@ -0,0 +1,18 @@ +package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.asdctool.impl.validator.utils.VertexResult; +import org.openecomp.sdc.be.dao.jsongraph.GraphVertex; + + +public class VfArtifactValidationTaskTest { + + private VfArtifactValidationTask createTestSubject() { + return new VfArtifactValidationTask(); + } + + + +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java new file mode 100644 index 0000000000..6e72a31421 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java @@ -0,0 +1,78 @@ +package org.openecomp.sdc.asdctool.impl.validator.utils; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ElementTypeEnumTest { + + private ElementTypeEnum createTestSubject() { + return ElementTypeEnum.VF; + } + + + @Test + public void testGetByType() throws Exception { + String elementType = ""; + ElementTypeEnum result; + + // default test + result = ElementTypeEnum.getByType(elementType); + } + + + @Test + public void testGetAllTypes() throws Exception { + List<String> result; + + // default test + result = ElementTypeEnum.getAllTypes(); + } + + + @Test + public void testGetElementType() throws Exception { + ElementTypeEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getElementType(); + } + + + @Test + public void testSetElementType() throws Exception { + ElementTypeEnum testSubject; + String elementType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setElementType(elementType); + } + + + @Test + public void testGetClazz() throws Exception { + ElementTypeEnum testSubject; + Class result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getClazz(); + } + + + @Test + public void testSetClazz() throws Exception { + ElementTypeEnum testSubject; + Class clazz = null; + + // default test + testSubject = createTestSubject(); + testSubject.setClazz(clazz); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java new file mode 100644 index 0000000000..96eedcf1fd --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java @@ -0,0 +1,80 @@ +package org.openecomp.sdc.asdctool.impl.validator.utils; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.jsongraph.GraphVertex; + + +public class ValidationTaskResultTest { + + private ValidationTaskResult createTestSubject() { + return new ValidationTaskResult(new GraphVertex(), "", "", false); + } + + + @Test + public void testGetName() throws Exception { + ValidationTaskResult testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } + + + @Test + public void testSetName() throws Exception { + ValidationTaskResult testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } + + + @Test + public void testGetResultMessage() throws Exception { + ValidationTaskResult testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResultMessage(); + } + + + @Test + public void testSetResultMessage() throws Exception { + ValidationTaskResult testSubject; + String resultMessage = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setResultMessage(resultMessage); + } + + + @Test + public void testIsSuccessful() throws Exception { + ValidationTaskResult testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isSuccessful(); + } + + + @Test + public void testSetSuccessful() throws Exception { + ValidationTaskResult testSubject; + boolean successful = false; + + // default test + testSubject = createTestSubject(); + testSubject.setSuccessful(successful); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java new file mode 100644 index 0000000000..3b88a683ed --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java @@ -0,0 +1,46 @@ +package org.openecomp.sdc.asdctool.impl.validator.utils; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class VertexResultTest { + + private VertexResult createTestSubject() { + return new VertexResult(); + } + + + @Test + public void testGetStatus() throws Exception { + VertexResult testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStatus(); + } + + + @Test + public void testSetStatus() throws Exception { + VertexResult testSubject; + boolean status = false; + + // default test + testSubject = createTestSubject(); + testSubject.setStatus(status); + } + + + @Test + public void testGetResult() throws Exception { + VertexResult testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResult(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/config/MigrationSpringConfigTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/config/MigrationSpringConfigTest.java new file mode 100644 index 0000000000..e8641097b6 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/config/MigrationSpringConfigTest.java @@ -0,0 +1,78 @@ +package org.openecomp.sdc.asdctool.migration.config; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.asdctool.migration.core.SdcMigrationTool; +import org.openecomp.sdc.asdctool.migration.dao.MigrationTasksDao; +import org.openecomp.sdc.asdctool.migration.resolver.MigrationResolver; +import org.openecomp.sdc.asdctool.migration.resolver.SpringBeansMigrationResolver; +import org.openecomp.sdc.asdctool.migration.service.SdcRepoService; +import org.openecomp.sdc.be.dao.cassandra.CassandraClient; + + +public class MigrationSpringConfigTest { + + private MigrationSpringConfig createTestSubject() { + return new MigrationSpringConfig(); + } + + + @Test + public void testSdcMigrationTool() throws Exception { + MigrationSpringConfig testSubject; + MigrationResolver migrationResolver = null; + SdcRepoService sdcRepoService = null; + SdcMigrationTool result; + + // default test + testSubject = createTestSubject(); + result = testSubject.sdcMigrationTool(migrationResolver, sdcRepoService); + } + + + @Test + public void testMigrationResolver() throws Exception { + MigrationSpringConfig testSubject; + SdcRepoService sdcRepoService = null; + SpringBeansMigrationResolver result; + + // default test + testSubject = createTestSubject(); + result = testSubject.migrationResolver(sdcRepoService); + } + + + @Test + public void testSdcRepoService() throws Exception { + MigrationSpringConfig testSubject; + MigrationTasksDao migrationTasksDao = null; + SdcRepoService result; + + // default test + testSubject = createTestSubject(); + result = testSubject.sdcRepoService(migrationTasksDao); + } + + + @Test + public void testMigrationTasksDao() throws Exception { + MigrationSpringConfig testSubject; + MigrationTasksDao result; + + // default test + testSubject = createTestSubject(); + result = testSubject.migrationTasksDao(); + } + + + @Test + public void testCassandraClient() throws Exception { + MigrationSpringConfig testSubject; + CassandraClient result; + + // default test + testSubject = createTestSubject(); + result = testSubject.cassandraClient(); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java new file mode 100644 index 0000000000..31af99c64d --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java @@ -0,0 +1,58 @@ +package org.openecomp.sdc.asdctool.migration.core.task; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.asdctool.migration.core.task.MigrationResult.MigrationStatus; + + +public class MigrationResultTest { + + private MigrationResult createTestSubject() { + return new MigrationResult(); + } + + + @Test + public void testGetMsg() throws Exception { + MigrationResult testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMsg(); + } + + + @Test + public void testSetMsg() throws Exception { + MigrationResult testSubject; + String msg = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMsg(msg); + } + + + @Test + public void testGetMigrationStatus() throws Exception { + MigrationResult testSubject; + MigrationStatus result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMigrationStatus(); + } + + + @Test + public void testSetMigrationStatus() throws Exception { + MigrationResult testSubject; + MigrationStatus migrationStatus = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMigrationStatus(migrationStatus); + } +}
\ No newline at end of file diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java new file mode 100644 index 0000000000..c3f7874c12 --- /dev/null +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java @@ -0,0 +1,24 @@ +package org.openecomp.sdc.asdctool.servlets; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class EntryPointTest { + + private EntryPoint createTestSubject() { + return new EntryPoint(); + } + + + @Test + public void testTest() throws Exception { + EntryPoint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.test(); + } +}
\ No newline at end of file |