package org.openecomp.sdc.asdctool.impl;
-import com.carrotsearch.hppc.cursors.ObjectCursor;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.gson.Gson;
-import com.google.gson.reflect.TypeToken;
-import fj.data.Either;
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.lang.reflect.Type;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.EnumMap;
+import java.util.Map;
+import java.util.TimeZone;
+
import org.apache.commons.lang.SystemUtils;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.openecomp.sdc.be.dao.cassandra.schema.Table;
import org.openecomp.sdc.be.dao.es.ElasticSearchClient;
import org.openecomp.sdc.be.resources.data.ESArtifactData;
-import org.openecomp.sdc.be.resources.data.auditing.*;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingActionEnum;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingGenericEvent;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingGetUebClusterEvent;
+import org.openecomp.sdc.be.resources.data.auditing.AuditingTypesConstants;
+import org.openecomp.sdc.be.resources.data.auditing.AuthEvent;
+import org.openecomp.sdc.be.resources.data.auditing.CategoryEvent;
+import org.openecomp.sdc.be.resources.data.auditing.ConsumerEvent;
+import org.openecomp.sdc.be.resources.data.auditing.DistributionDeployEvent;
+import org.openecomp.sdc.be.resources.data.auditing.DistributionDownloadEvent;
+import org.openecomp.sdc.be.resources.data.auditing.DistributionEngineEvent;
+import org.openecomp.sdc.be.resources.data.auditing.DistributionNotificationEvent;
+import org.openecomp.sdc.be.resources.data.auditing.DistributionStatusEvent;
+import org.openecomp.sdc.be.resources.data.auditing.GetCategoryHierarchyEvent;
+import org.openecomp.sdc.be.resources.data.auditing.GetUsersListEvent;
+import org.openecomp.sdc.be.resources.data.auditing.ResourceAdminEvent;
+import org.openecomp.sdc.be.resources.data.auditing.UserAccessEvent;
+import org.openecomp.sdc.be.resources.data.auditing.UserAdminEvent;
import org.openecomp.sdc.common.datastructure.AuditingFieldsKeysEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import java.io.*;
-import java.lang.reflect.Type;
-import java.net.MalformedURLException;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.nio.file.Files;
-import java.nio.file.Paths;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.EnumMap;
-import java.util.Map;
-import java.util.TimeZone;
+import com.carrotsearch.hppc.cursors.ObjectCursor;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+
+import fj.data.Either;
/**
* Created by mlando on 5/16/2016.
package org.openecomp.sdc.asdctool.impl;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
/**
* simple util class to verify that the titan export json graph is not corrupted
*/
package org.openecomp.sdc.asdctool.impl;
-import java.io.IOException;
import java.util.ArrayList;
-import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Callable;
import org.openecomp.sdc.be.dao.titan.TitanOperationStatus;
import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
import org.openecomp.sdc.be.model.Component;
-import org.openecomp.sdc.be.model.Product;
import org.openecomp.sdc.be.model.Resource;
-import org.openecomp.sdc.be.model.Service;
import org.openecomp.sdc.be.model.cache.ComponentCache;
import org.openecomp.sdc.be.model.jsontitan.operations.ToscaOperationFacade;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
package org.openecomp.sdc.asdctool.impl;
-import com.thinkaurelius.titan.core.TitanFactory;
-import com.thinkaurelius.titan.core.TitanGraph;
-import com.thinkaurelius.titan.core.TitanVertex;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.openecomp.sdc.be.dao.neo4j.GraphPropertiesDictionary;
import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
+import com.thinkaurelius.titan.core.TitanFactory;
+import com.thinkaurelius.titan.core.TitanGraph;
+import com.thinkaurelius.titan.core.TitanVertex;
/**
* Created by mlando on 2/23/2016.
package org.openecomp.sdc.asdctool.impl;
+import java.io.IOException;
+
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpUriRequest;
-
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.io.IOException;
-
/**
* Created by mlando on 2/23/2016.
*/
package org.openecomp.sdc.asdctool.impl.validator;
+import java.util.List;
+
import org.openecomp.sdc.asdctool.impl.validator.executers.ValidatorExecuter;
import org.openecomp.sdc.asdctool.impl.validator.utils.ReportManager;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
-import java.util.*;
-
/**
* Created by chaya on 7/3/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.config;
+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.executers.ServiceValidatorExecuter;
-import org.openecomp.sdc.asdctool.impl.validator.executers.VfValidatorExecuter;
-import org.openecomp.sdc.asdctool.impl.validator.ValidationToolBL;
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.DAOTitanStrategy;
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.*;
+import org.openecomp.sdc.be.model.jsontitan.operations.ArtifactsOperations;
+import org.openecomp.sdc.be.model.jsontitan.operations.ByToscaNameDerivedNodeTypeResolver;
+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;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
package org.openecomp.sdc.asdctool.impl.validator.executers;
+import java.util.ArrayList;
+import java.util.List;
+
import org.openecomp.sdc.asdctool.impl.validator.tasks.ServiceValidationTask;
import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.*;
-
/**
* Created by chaya on 7/4/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.executers;
-import fj.data.Either;
+import java.util.ArrayList;
+import java.util.EnumMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
import org.openecomp.sdc.asdctool.impl.validator.tasks.TopologyTemplateValidationTask;
import org.openecomp.sdc.asdctool.impl.validator.utils.ReportManager;
import org.openecomp.sdc.asdctool.impl.validator.utils.VertexResult;
import org.openecomp.sdc.be.datatypes.enums.GraphPropertyEnum;
import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
import org.openecomp.sdc.be.model.jsontitan.operations.TopologyTemplateOperation;
-import org.openecomp.sdc.be.model.jsontitan.operations.ToscaOperationFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.*;
+import fj.data.Either;
/**
* Created by chaya on 7/3/2017.
package org.openecomp.sdc.asdctool.impl.validator.executers;
-import org.openecomp.sdc.asdctool.impl.validator.utils.ElementTypeEnum;
-import org.openecomp.sdc.be.model.Component;
-
-import java.util.List;
-
/**
* Created by chaya on 7/3/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.executers;
+import java.util.ArrayList;
+import java.util.List;
+
import org.openecomp.sdc.asdctool.impl.validator.tasks.VfValidationTask;
import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.*;
-
/**
* Created by chaya on 7/3/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts;
-import fj.data.Either;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
import org.openecomp.sdc.asdctool.impl.validator.utils.ReportManager;
import org.openecomp.sdc.be.dao.cassandra.ArtifactCassandraDao;
import org.openecomp.sdc.be.dao.cassandra.CassandraOperationStatus;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.*;
+import fj.data.Either;
/**
* Created by chaya on 7/6/2017.
package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts;
-import org.openecomp.sdc.asdctool.impl.validator.utils.VertexResult;
-
import java.util.HashSet;
import java.util.Set;
+import org.openecomp.sdc.asdctool.impl.validator.utils.VertexResult;
+
/**
* Created by chaya on 7/25/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.tasks.moduleJson;
-import fj.data.Either;
-import org.apache.cassandra.cql3.CQL3Type;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
import org.openecomp.sdc.asdctool.impl.validator.tasks.ServiceValidationTask;
import org.openecomp.sdc.asdctool.impl.validator.utils.ReportManager;
import org.openecomp.sdc.asdctool.impl.validator.utils.VertexResult;
import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
import org.springframework.beans.factory.annotation.Autowired;
-import java.util.*;
-import java.util.stream.Collectors;
+import fj.data.Either;
/**
* Created by chaya on 7/18/2017.
package org.openecomp.sdc.asdctool.impl.validator.utils;
-import org.openecomp.sdc.asdctool.impl.validator.executers.VfValidatorExecuter;
-
import java.util.ArrayList;
import java.util.List;
+import org.openecomp.sdc.asdctool.impl.validator.executers.VfValidatorExecuter;
+
/**
* Created by chaya on 7/4/2017.
*/
package org.openecomp.sdc.asdctool.impl.validator.utils;
-import org.apache.commons.lang.text.StrBuilder;
-import org.openecomp.sdc.asdctool.impl.validator.config.ValidationConfigManager;
-import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
-
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
-import java.util.*;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+
+import org.apache.commons.lang.text.StrBuilder;
+import org.openecomp.sdc.asdctool.impl.validator.config.ValidationConfigManager;
+import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
/**
* Created by chaya on 7/5/2017.
package org.openecomp.sdc.asdctool.impl.validator.utils;
import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
-import org.openecomp.sdc.be.model.Component;
/**
* Created by chaya on 7/5/2017.
package org.openecomp.sdc.asdctool.migration.core;
+import java.util.List;
+
import org.openecomp.sdc.asdctool.migration.core.execution.MigrationExecutionResult;
import org.openecomp.sdc.asdctool.migration.core.execution.MigrationExecutorImpl;
import org.openecomp.sdc.asdctool.migration.core.task.Migration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.List;
-
public class SdcMigrationTool {
private static final Logger LOGGER = LoggerFactory.getLogger(SdcMigrationTool.class);
+++ /dev/null
-/*-
- * ============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);
- }
-}
--- /dev/null
+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
--- /dev/null
+package org.openecomp.sdc.be.components.clean;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class AsdcComponentsCleanerTaskTest {
+
+ private AsdcComponentsCleanerTask createTestSubject() {
+ return new AsdcComponentsCleanerTask();
+ }
+
+
+ @Test
+ public void testInit() throws Exception {
+ AsdcComponentsCleanerTask testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.init();
+ }
+
+
+ @Test
+ public void testDestroy() throws Exception {
+ AsdcComponentsCleanerTask testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.destroy();
+ }
+
+
+ @Test
+ public void testStartTask() throws Exception {
+ AsdcComponentsCleanerTask testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.startTask();
+ }
+
+
+ @Test
+ public void testStopTask() throws Exception {
+ AsdcComponentsCleanerTask testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.stopTask();
+ }
+
+
+
+
+
+ @Test
+ public void testRun() throws Exception {
+ AsdcComponentsCleanerTask testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.run();
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ArtifactType;
+
+
+public class ArtifactTypesInfoTest {
+
+ private ArtifactTypesInfo createTestSubject() {
+ return new ArtifactTypesInfo();
+ }
+
+
+ @Test
+ public void testGetArtifactTypes() throws Exception {
+ ArtifactTypesInfo testSubject;
+ List<ArtifactType> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifactTypes();
+ }
+
+
+ @Test
+ public void testSetArtifactTypes() throws Exception {
+ ArtifactTypesInfo testSubject;
+ List<ArtifactType> artifactTypes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifactTypes(artifactTypes);
+ }
+
+
+ @Test
+ public void testGetHeatDefaultTimeout() throws Exception {
+ ArtifactTypesInfo testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeatDefaultTimeout();
+ }
+
+
+ @Test
+ public void testSetHeatDefaultTimeout() throws Exception {
+ ArtifactTypesInfo testSubject;
+ Integer heatDefaultTimeout = 0;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeatDefaultTimeout(heatDefaultTimeout);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+public class DistributionStatusListResponseTest {
+
+ private DistributionStatusListResponse createTestSubject() {
+ return new DistributionStatusListResponse();
+ }
+
+
+ @Test
+ public void testGetDistributionStatusList() throws Exception {
+ DistributionStatusListResponse testSubject;
+ List<DistributionStatusInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDistributionStatusList();
+ }
+
+
+ @Test
+ public void testSetDistributionStatusList() throws Exception {
+ DistributionStatusListResponse testSubject;
+ List<DistributionStatusInfo> distribStatusInfoList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDistributionStatusList(distribStatusInfoList);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class DistributionStatusOfServiceListResponceTest {
+
+ private DistributionStatusOfServiceListResponce createTestSubject() {
+ return new DistributionStatusOfServiceListResponce();
+ }
+
+
+ @Test
+ public void testGetDistributionStatusOfServiceList() throws Exception {
+ DistributionStatusOfServiceListResponce testSubject;
+ List<DistributionStatusOfServiceInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDistributionStatusOfServiceList();
+ }
+
+
+ @Test
+ public void testSetDistributionStatusOfServiceList() throws Exception {
+ DistributionStatusOfServiceListResponce testSubject;
+ List<DistributionStatusOfServiceInfo> distribStatusOfServiceInfoList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDistributionStatusOfServiceList(distribStatusOfServiceInfoList);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class ServicesWrapperTest {
+
+ private ServicesWrapper createTestSubject() {
+ return new ServicesWrapper();
+ }
+
+
+ @Test
+ public void testGetServices() throws Exception {
+ ServicesWrapper testSubject;
+ List<ServiceInfo> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServices();
+ }
+
+
+ @Test
+ public void testSetServices() throws Exception {
+ ServicesWrapper testSubject;
+ List<ServiceInfo> services = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServices(services);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.info;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class ToscaNodeTypeInterfaceTest {
+
+ private ToscaNodeTypeInterface createTestSubject() {
+ return new ToscaNodeTypeInterface();
+ }
+
+
+ @Test
+ public void testGetScripts() throws Exception {
+ ToscaNodeTypeInterface testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getScripts();
+ }
+
+
+ @Test
+ public void testSetScripts() throws Exception {
+ ToscaNodeTypeInterface testSubject;
+ List<String> scripts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setScripts(scripts);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.be.switchover.detector;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class SwitchoverDetectorTest {
+
+ private SwitchoverDetector createTestSubject() {
+ return new SwitchoverDetector();
+ }
+
+
+ @Test
+ public void testGetSiteMode() throws Exception {
+ SwitchoverDetector testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSiteMode();
+ }
+
+
+ @Test
+ public void testSetSiteMode() throws Exception {
+ SwitchoverDetector testSubject;
+ String mode = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSiteMode(mode);
+ }
+
+
+
+}
\ No newline at end of file
package org.openecomp.sdc.be.dao;
-import javax.annotation.Generated;
-
import org.junit.Test;
-
public class AccountTest {
private Account createTestSubject() {
return new Account();
}
-
@Test
public void testGetName() throws Exception {
Account testSubject;
result = testSubject.getName();
}
-
@Test
public void testSetName() throws Exception {
Account testSubject;
testSubject.setName(name);
}
-
@Test
public void testGetEmail() throws Exception {
Account testSubject;
result = testSubject.getEmail();
}
-
@Test
public void testSetEmail() throws Exception {
Account testSubject;
testSubject.setEmail(email);
}
-
@Test
public void testEquals() throws Exception {
Account testSubject;
result = testSubject.equals(other);
}
-
@Test
public void testHashCode() throws Exception {
Account testSubject;
--- /dev/null
+package org.openecomp.sdc.be.resources.exception;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.dao.api.ResourceUploadStatus;
+
+
+public class ResourceDAOExceptionTest {
+
+ private ResourceDAOException createTestSubject() {
+ return new ResourceDAOException("", null);
+ }
+
+
+ @Test
+ public void testGetStatus() throws Exception {
+ ResourceDAOException testSubject;
+ ResourceUploadStatus result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStatus();
+ }
+
+
+ @Test
+ public void testSetStatus() throws Exception {
+ ResourceDAOException testSubject;
+ ResourceUploadStatus status = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStatus(status);
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.fe;
+
+import javax.annotation.Generated;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+import org.junit.Test;
+
+
+public class GzipFilterTest {
+
+ private GzipFilter createTestSubject() {
+ return new GzipFilter();
+ }
+
+
+
+
+ @Test
+ public void testInit() throws Exception {
+ GzipFilter testSubject;
+ FilterConfig filterConfig = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.init(filterConfig);
+ }
+
+
+ @Test
+ public void testDestroy() throws Exception {
+ GzipFilter testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.destroy();
+ }
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.fe.client;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+import javax.net.ssl.HostnameVerifier;
+import javax.ws.rs.container.AsyncResponse;
+
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.eclipse.jetty.http.HttpGenerator.ResponseInfo;
+import org.junit.Test;
+import org.openecomp.sdc.fe.impl.HttpRequestInfo;
+
+
+public class BackendClientTest {
+
+ private BackendClient createTestSubject() {
+ return new BackendClient("", "", "");
+ }
+
+
+ @Test
+ public void testGetHostnameVerifier() throws Exception {
+ BackendClient testSubject;
+ HostnameVerifier result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHostnameVerifier();
+ }
+
+
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.fe.listen;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+
+public class MyObjectMapperProviderTest {
+
+ private MyObjectMapperProvider createTestSubject() {
+ return new MyObjectMapperProvider();
+ }
+
+
+ @Test
+ public void testGetContext() throws Exception {
+ MyObjectMapperProvider testSubject;
+ Class<?> type = null;
+ ObjectMapper result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getContext(type);
+ }
+
+
+
+}
\ No newline at end of file
--- /dev/null
+package org.openecomp.sdc.fe.servlets;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.junit.Test;
+import org.openecomp.sdc.common.impl.MutableHttpServletRequest;
+
+import io.netty.handler.codec.http2.Http2FrameReader.Configuration;
+
+
+public class PortalServletTest {
+
+ private PortalServlet createTestSubject() {
+ return new PortalServlet();
+ }
+
+
+ @Test
+ public void testDoGet() throws Exception {
+ PortalServlet testSubject;
+ HttpServletRequest request = null;
+ HttpServletResponse response = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.doGet(request, response);
+ }
+
+
+
+}
\ No newline at end of file
package org.openecomp.sdc.be.model.jsontitan.operations;
-import fj.data.Either;
-import org.apache.cassandra.cql3.CQL3Type;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
-import java.util.*;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import fj.data.Either;
/**
* Created by chaya on 6/12/2017.
--- /dev/null
+package org.openecomp.sdc.be.model.tosca;
+
+import javax.annotation.Generated;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+
+public class ToscaTypeTest {
+
+ private ToscaType createTestSubject() {
+ return ToscaType.BOOLEAN;
+ }
+
+
+ @Test
+ public void testFromYamlTypeName() throws Exception {
+ String typeName = "";
+ ToscaType result;
+
+ // test 1
+ typeName = null;
+ result = ToscaType.fromYamlTypeName(typeName);
+ Assert.assertEquals(null, result);
+
+ // test 2
+ typeName = "";
+ result = ToscaType.fromYamlTypeName(typeName);
+ Assert.assertEquals(null, result);
+ }
+
+
+ @Test
+ public void testIsValidValue() throws Exception {
+ ToscaType testSubject;
+ String value = "";
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isValidValue(value);
+ }
+
+
+
+ @Test
+ public void testConvert() throws Exception {
+ ToscaType testSubject;
+ String value = "";
+ Object result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.convert(value);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ ToscaType testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+}
\ No newline at end of file