Fix typo error in code 69/3069/1
authorIsrael Lavi <il0695@intl.att.com>
Wed, 5 Apr 2017 13:23:14 +0000 (16:23 +0300)
committerIsrael Lavi <il0695@intl.att.com>
Wed, 5 Apr 2017 13:23:14 +0000 (16:23 +0300)
Change-Id: Iacd930f4222d0888597e010e33aac45adec88945
Signed-off-by: Israel Lavi <il0695@intl.att.com>
asdc-tests/src/main/java/org/openecomp/sdc/ci/tests/datatypes/ResourceInstanceAssetStructure.java
asdc-tests/src/main/java/org/openecomp/sdc/ci/tests/utils/rest/AssetRestUtils.java
catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/ServiceDistributionArtifactsBuilder.java
catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/AssetMetadataConverter.java
catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/representation/ResourceInstanceMetadata.java

index 6a69120..9172b8a 100644 (file)
@@ -28,7 +28,7 @@ public class ResourceInstanceAssetStructure {
        String resourceName;
        String resourceInvariantUUID;
        String resourceVersion;
-       String resoucreType;
+       String resourceType;
        String resourceUUID;
        List<ArtifactAssetStructure> artifacts;
 
@@ -37,14 +37,14 @@ public class ResourceInstanceAssetStructure {
        }
 
        public ResourceInstanceAssetStructure(String resourceInstanceName, String resourceName,
-                       String resourceInvariantUUID, String resourceVersion, String resoucreType, String resourceUUID,
+                       String resourceInvariantUUID, String resourceVersion, String resourceType, String resourceUUID,
                        List<ArtifactAssetStructure> artifacts) {
                super();
                this.resourceInstanceName = resourceInstanceName;
                this.resourceName = resourceName;
                this.resourceInvariantUUID = resourceInvariantUUID;
                this.resourceVersion = resourceVersion;
-               this.resoucreType = resoucreType;
+               this.resourceType = resourceType;
                this.resourceUUID = resourceUUID;
                this.artifacts = artifacts;
        }
@@ -81,12 +81,12 @@ public class ResourceInstanceAssetStructure {
                this.resourceVersion = resourceVersion;
        }
 
-       public String getResoucreType() {
-               return resoucreType;
+       public String getResourceType() {
+               return resourceType;
        }
 
-       public void setResoucreType(String resoucreType) {
-               this.resoucreType = resoucreType;
+       public void setResourceType(String resourceType) {
+               this.resourceType = resourceType;
        }
 
        public String getResourceUUID() {
@@ -109,7 +109,7 @@ public class ResourceInstanceAssetStructure {
        public String toString() {
                return "ResourceInstanceAssetStructure [resourceInstanceName=" + resourceInstanceName + ", resourceName="
                                + resourceName + ", resourceInvariantUUID=" + resourceInvariantUUID + ", resourceVersion="
-                               + resourceVersion + ", resoucreType=" + resoucreType + ", resourceUUID=" + resourceUUID + ", artifacts="
+                               + resourceVersion + ", resourceType=" + resourceType + ", resourceUUID=" + resourceUUID + ", artifacts="
                                + artifacts + "]";
        }
 
index 51bd216..3900140 100644 (file)
@@ -395,9 +395,9 @@ public class AssetRestUtils extends BaseRestUtils {
                                                                        .equals(resourceInstanceAssetStructure.getResourceVersion()));
                                        assertTrue(
                                                        "Expected RI asset resourceType is " + componentInstance.getOriginType() + " actual: "
-                                                                       + resourceInstanceAssetStructure.getResoucreType(),
+                                                                       + resourceInstanceAssetStructure.getResourceType(),
                                                        componentInstance.getOriginType().toString()
-                                                                       .equals(resourceInstanceAssetStructure.getResoucreType()));
+                                                                       .equals(resourceInstanceAssetStructure.getResourceType()));
                                        assertTrue(
                                                        "Expected RI asset resourceUUID is " + componentInstance.getComponentUid() + " actual: "
                                                                        + resourceInstanceAssetStructure.getResourceUUID(),
index da148ee..6e67e38 100644 (file)
@@ -147,7 +147,7 @@ public class ServiceDistributionArtifactsBuilder {
                List<JsonContainerResourceInstance> ret = new ArrayList<JsonContainerResourceInstance>();
                if (service.getComponentInstances() != null) {
                        for (ComponentInstance resourceInstance : service.getComponentInstances()) {
-                               String resoucreType = "VF";
+                               String resourceType = "VF";
                                List<ArtifactDefinition> artifactsDefList = getArtifactsWithPayload(resourceInstance);
                                List<ArtifactInfoImpl> artifacts = ArtifactInfoImpl.convertToArtifactInfoImpl(service, resourceInstance, artifactsDefList);
                                Either<String, StorageOperationStatus> responseResult = resourceOperation.getInvariantUUID(NodeTypeEnum.Resource, resourceInstance.getComponentUid(), false);
@@ -157,7 +157,7 @@ public class ServiceDistributionArtifactsBuilder {
                                } else {
                                        resourceInvariantUUID = responseResult.left().value();
                                }
-                               JsonContainerResourceInstance jsonContainer = new JsonContainerResourceInstance(resourceInstance, resourceInvariantUUID, resoucreType, artifacts);
+                               JsonContainerResourceInstance jsonContainer = new JsonContainerResourceInstance(resourceInstance, resourceInvariantUUID, resourceType, artifacts);
                                ret.add(jsonContainer);
                        }
 
index 20eac08..6623991 100644 (file)
@@ -345,7 +345,7 @@ public class AssetMetadataConverter {
                        metadata.setResourceInstanceName(componentInstance.getName());
                        metadata.setResourceName(componentInstance.getComponentName());
                        metadata.setResourceVersion(componentInstance.getComponentVersion());
-                       metadata.setResoucreType(componentInstance.getOriginType().getValue());
+                       metadata.setResourceType(componentInstance.getOriginType().getValue());
                        metadata.setResourceUUID(componentInstance.getComponentUid());
 
                        Collection<ArtifactDefinition> values = componentInstance.getDeploymentArtifacts().values();
index a53422f..547bb30 100644 (file)
@@ -27,7 +27,7 @@ public class ResourceInstanceMetadata {
        private String resourceName;
        private String resourceInvariantUUID;
        private String resourceVersion;
-       private String resoucreType;
+       private String resourceType;
        private String resourceUUID;
        private List<ArtifactMetadata> artifacts;
 
@@ -63,12 +63,12 @@ public class ResourceInstanceMetadata {
                this.resourceVersion = resourceVersion;
        }
 
-       public String getResoucreType() {
-               return resoucreType;
+       public String getResourceType() {
+               return resourceType;
        }
 
-       public void setResoucreType(String resoucreType) {
-               this.resoucreType = resoucreType;
+       public void setResourceType(String resourceType) {
+               this.resourceType = resourceType;
        }
 
        public String getResourceUUID() {