import org.junit.Test;\r
import org.junit.runner.RunWith;\r
import org.junit.runners.MethodSorters;\r
-import org.onap.ccsdk.features.data.adaptor.dao.ConfigResourceDao;\r
import org.onap.ccsdk.features.data.adaptor.domain.ConfigResource;\r
import org.onap.ccsdk.features.data.adaptor.domain.ResourceAssignmentData;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.junit.runner.RunWith;\r
import org.junit.runners.MethodSorters;\r
import org.onap.ccsdk.features.data.adaptor.DataAdaptorConstants;\r
-import org.onap.ccsdk.features.data.adaptor.dao.NamedQueryExecutorDao;\r
-import org.onap.ccsdk.features.data.adaptor.dao.TransactionLogDao;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.test.context.ContextConfiguration;\r
import org.junit.Test;\r
import org.junit.runner.RunWith;\r
import org.junit.runners.MethodSorters;\r
-import org.onap.ccsdk.features.data.adaptor.dao.QueryExecutorDao;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.test.context.ContextConfiguration;\r
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\r
import org.onap.ccsdk.features.data.adaptor.dao.NamedQueryExecutorDao;\r
import org.onap.ccsdk.features.data.adaptor.dao.QueryExecutorDao;\r
import org.onap.ccsdk.features.data.adaptor.dao.TransactionLogDao;\r
-import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceNode;\r
-import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
-import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceServiceImpl;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicException;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.onap.ccsdk.features.data.adaptor.domain.ConfigResource;\r
import org.onap.ccsdk.features.data.adaptor.domain.ResourceAssignmentData;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
-import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
-import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceServiceImpl;\r
import org.springframework.beans.factory.annotation.Autowired;\r
import org.springframework.test.context.ContextConfiguration;\r
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\r
import org.junit.Assert;\r
import org.junit.Before;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.rest.adaptor.service.ConfigRestClientServiceAdapter;\r
-import org.onap.ccsdk.features.rest.adaptor.service.GenericRestClientAdapterImpl;\r
-import org.onap.ccsdk.features.rest.adaptor.service.SSLRestClientAdapterImpl;\r
\r
public class AbstractConfigRestClientAdapterTest {\r
\r
import org.junit.runner.RunWith;\r
import org.mockito.Matchers;\r
import org.onap.ccsdk.features.rest.adaptor.ConfigRestAdaptorException;\r
-import org.onap.ccsdk.features.rest.adaptor.service.AbstractConfigRestClientAdapter;\r
-import org.onap.ccsdk.features.rest.adaptor.service.ConfigRestAdaptorService;\r
-import org.onap.ccsdk.features.rest.adaptor.service.ConfigRestAdaptorServiceImpl;\r
import org.powermock.core.classloader.annotations.PowerMockIgnore;\r
import org.powermock.core.classloader.annotations.PrepareForTest;\r
import org.powermock.modules.junit4.PowerMockRunner;\r
import org.junit.runner.RunWith;\r
import org.mockito.Matchers;\r
import org.onap.ccsdk.features.rest.adaptor.ConfigRestAdaptorException;\r
-import org.onap.ccsdk.features.rest.adaptor.service.AbstractConfigRestClientAdapter;\r
-import org.onap.ccsdk.features.rest.adaptor.service.ConfigRestAdaptorService;\r
-import org.onap.ccsdk.features.rest.adaptor.service.ConfigRestAdaptorServiceImpl;\r
import org.powermock.core.classloader.annotations.PowerMockIgnore;\r
import org.powermock.core.classloader.annotations.PrepareForTest;\r
import org.powermock.modules.junit4.PowerMockRunner;\r
import org.mockito.invocation.InvocationOnMock;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.mockito.stubbing.Answer;\r
-import org.onap.ccsdk.features.assignment.processor.DBResourceProcessor;\r
import org.onap.ccsdk.features.assignment.service.ConfigResourceAssignmentTestUtils;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.mockito.invocation.InvocationOnMock;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.mockito.stubbing.Answer;\r
-import org.onap.ccsdk.features.assignment.processor.DefaultResourceProcessor;\r
import org.onap.ccsdk.features.assignment.service.ConfigResourceAssignmentTestUtils;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.mockito.invocation.InvocationOnMock;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.mockito.stubbing.Answer;\r
-import org.onap.ccsdk.features.assignment.processor.InputResourceProcessor;\r
import org.onap.ccsdk.features.assignment.service.ConfigResourceAssignmentTestUtils;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.mockito.invocation.InvocationOnMock;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.mockito.stubbing.Answer;\r
-import org.onap.ccsdk.features.assignment.processor.MdsalResourceProcessor;\r
import org.onap.ccsdk.features.assignment.service.ConfigResourceAssignmentTestUtils;\r
import org.onap.ccsdk.features.model.ConfigModelConstant;\r
import org.onap.ccsdk.features.model.data.ResourceAssignment;\r
import org.mockito.MockitoAnnotations;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.onap.ccsdk.features.assignment.ConfigAssignmentConstants;\r
-import org.onap.ccsdk.features.assignment.service.ConfigAssignmentNode;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.onap.ccsdk.features.generator.service.ConfigGeneratorService;\r
import org.onap.ccsdk.features.generator.service.ConfigGeneratorServiceImpl;\r
import org.mockito.MockitoAnnotations;\r
import org.mockito.runners.MockitoJUnitRunner;\r
import org.onap.ccsdk.features.assignment.data.ResourceAssignmentData;\r
-import org.onap.ccsdk.features.assignment.service.ConfigPreviewService;\r
import org.onap.ccsdk.features.data.adaptor.domain.ConfigResource;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.onap.ccsdk.features.generator.service.ConfigGeneratorService;\r
import org.onap.ccsdk.features.data.adaptor.domain.TransactionLog;\r
import org.onap.ccsdk.features.data.adaptor.service.ConfigResourceService;\r
import org.onap.ccsdk.features.generator.ConfigGeneratorConstant;\r
-import org.onap.ccsdk.features.generator.service.ConfigGeneratorNode;\r
import org.onap.ccsdk.features.model.ConfigModelConstant;\r
import org.onap.ccsdk.features.model.service.ConfigModelService;\r
import org.onap.ccsdk.features.model.service.ConfigModelServiceImpl;\r
\r
import org.junit.Assert;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.generator.tool.EscapeUtils;\r
\r
public class EscapeUtilsTest {\r
\r
\r
@JsonIgnoreProperties(ignoreUnknown = true)\r
public class ResourceDefinition {\r
- private String tags;\r
\r
@JsonProperty(value = "name", required = true)\r
private String name;\r
\r
+ @JsonProperty(value = "tags")\r
+ private String tags;\r
+\r
@JsonProperty(value = "property")\r
private PropertyDefinition property;\r
\r
@JsonProperty(value = "updated-by")\r
private String updatedBy;\r
\r
- @JsonProperty(value = "resource-type", required = true)\r
- private String resourceType;\r
-\r
- @JsonProperty(value = "resource-path", required = true)\r
- private String resourcePath;\r
-\r
@JsonProperty(value = "sources", required = true)\r
private Map<String, SourcesDefinition> sourcesDefinition;\r
\r
this.updatedBy = updatedBy;\r
}\r
\r
- public String getResourceType() {\r
- return resourceType;\r
- }\r
-\r
- public void setResourceType(String resourceType) {\r
- this.resourceType = resourceType;\r
- }\r
-\r
- public String getResourcePath() {\r
- return resourcePath;\r
- }\r
-\r
- public void setResourcePath(String resourcePath) {\r
- this.resourcePath = resourcePath;\r
- }\r
-\r
public Map<String, SourcesDefinition> getSources() {\r
return sourcesDefinition;\r
}\r
\r
package org.onap.ccsdk.features.model.data.dict;\r
\r
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;\r
import com.fasterxml.jackson.annotation.JsonProperty;\r
\r
+@JsonIgnoreProperties(ignoreUnknown = true)\r
public class SourcesDefinition {\r
\r
@JsonProperty(value = "type", required = true)\r
\r
import java.util.List;\r
import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;\r
import com.fasterxml.jackson.annotation.JsonProperty;\r
\r
+@JsonIgnoreProperties(ignoreUnknown = true)\r
public class SourcesProperties {\r
\r
- @JsonProperty(value = "name")\r
- private String name;\r
-\r
- @JsonProperty(value = "base")\r
- private String base;\r
+ @JsonProperty(value = "key")\r
+ private String key;\r
\r
@JsonProperty(value = "type")\r
private String type;\r
@JsonProperty(value = "url-path")\r
private String urlPath;\r
\r
+ @JsonProperty(value = "expression-type")\r
+ private String expressionType;\r
+\r
@JsonProperty(value = "path")\r
private String path;\r
\r
@JsonProperty("key-dependencies")\r
private List<String> dependencies;\r
\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public String getBase() {\r
- return base;\r
+ public String getKey() {\r
+ return key;\r
}\r
\r
- public void setBase(String base) {\r
- this.base = base;\r
+ public void setKey(String key) {\r
+ this.key = key;\r
}\r
\r
public String getType() {\r
return path;\r
}\r
\r
+ public void setExpressionType(String expressionType) {\r
+ this.expressionType = expressionType;\r
+ }\r
+\r
+ public String getExpressionType() {\r
+ return expressionType;\r
+ }\r
+\r
public void setPath(String path) {\r
this.path = path;\r
}\r
import java.util.HashMap;\r
import org.junit.Assert;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.model.ValidTypes;\r
import org.onap.ccsdk.features.model.data.PropertyDefinition;\r
import org.onap.ccsdk.features.model.data.ResourceAssignment;\r
import org.onap.ccsdk.features.model.data.dict.ResourceDefinition;\r
\r
import org.junit.Assert;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.model.utils.JsonParserUtils;\r
import com.fasterxml.jackson.databind.JsonNode;\r
\r
public class JsonParserUtilsTest {\r
import static org.junit.Assert.assertTrue;\r
import org.junit.Test;\r
import org.onap.ccsdk.features.model.ValidTypes;\r
-import org.onap.ccsdk.features.model.utils.JsonUtils;\r
import com.fasterxml.jackson.databind.node.ArrayNode;\r
import com.fasterxml.jackson.databind.node.JsonNodeFactory;\r
import com.fasterxml.jackson.databind.node.ObjectNode;\r
import org.onap.ccsdk.features.model.data.PropertyDefinition;\r
import org.onap.ccsdk.features.model.data.ResourceAssignment;\r
import org.onap.ccsdk.features.model.data.dict.ResourceDefinition;\r
-import org.onap.ccsdk.features.model.utils.ResourceAssignmentUtils;\r
import com.fasterxml.jackson.core.type.TypeReference;\r
import com.fasterxml.jackson.databind.JsonNode;\r
import com.fasterxml.jackson.databind.ObjectMapper;\r
import org.onap.ccsdk.features.model.data.ArtifactDefinition;\r
import org.onap.ccsdk.features.model.data.CapabilityAssignment;\r
import org.onap.ccsdk.features.model.data.NodeTemplate;\r
-import org.onap.ccsdk.features.model.utils.ServiceTemplateUtils;\r
\r
public class ServiceTemplateUtilsTest {\r
\r
import java.util.HashMap;\r
import java.util.Map;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.model.utils.TransformationUtils;\r
import com.fasterxml.jackson.databind.JsonNode;\r
\r
public class TransformationUtilsTest {\r
import java.nio.charset.Charset;\r
import org.apache.commons.io.IOUtils;\r
import org.junit.Test;\r
-import org.onap.ccsdk.features.model.validator.ServiceTemplateValidator;\r
import com.att.eelf.configuration.EELFLogger;\r
import com.att.eelf.configuration.EELFManager;\r
\r