diff options
author | 2018-08-14 11:23:35 +0200 | |
---|---|---|
committer | 2018-08-14 11:23:35 +0200 | |
commit | 05dd5d2fd893f526eb6a807afb5725c8e426dd52 (patch) | |
tree | 780c4506ed6e69d053b49c5c116f5727648838d9 /vid-automation/src/test/java/org/opencomp/vid/model | |
parent | a55efc25f0ec1cca1a1accedb2bb7fce66d597a9 (diff) |
Renaming vid-automation #6
Change-Id: I0971c966ddcd76927bdf1a4c4d47afc900987ddf
Issue-ID: VID-205
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'vid-automation/src/test/java/org/opencomp/vid/model')
19 files changed, 0 insertions, 710 deletions
diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/aai/AaiResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/aai/AaiResponse.java deleted file mode 100644 index 3124ca40..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/aai/AaiResponse.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.opencomp.vid.model.aai; - -import com.google.common.base.MoreObjects; -import org.opencomp.vid.model.mso.ProxyResponse; - -/** - * Created by Oren on 7/10/17. - */ -public class AaiResponse<T> extends ProxyResponse { - - T t; - - public AaiResponse() { - } - - public AaiResponse(T t, String errorMessage, int aaiHttpCode) { - this.t = t; - this.errorMessage = errorMessage; - this.httpCode = aaiHttpCode; - } - - public T getT() { - return t; - } - - @Override - public String toString() { - return MoreObjects.toStringHelper(this) - .add("httpCode", httpCode) - .add("errorMessage", errorMessage) - .add("t", t) - .toString(); - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/JobAuditStatus.java b/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/JobAuditStatus.java deleted file mode 100644 index 254eb9c0..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/JobAuditStatus.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.opencomp.vid.model.asyncInstantiation; - -import com.google.common.collect.ImmutableList; -import org.apache.commons.lang3.builder.EqualsBuilder; -import org.apache.commons.lang3.builder.HashCodeBuilder; -import vid.automation.test.model.JobStatus; - -import java.util.Date; -import java.util.UUID; - - -public class JobAuditStatus { - - public JobAuditStatus(){} - - - public JobAuditStatus(UUID jobId, String jobStatus, SourceStatus source){ - this.jobId = jobId; - this.jobStatus = jobStatus; - this.source = source; - this.isFinal = isFinal(); - } - - public JobAuditStatus(UUID jobId, String jobStatus, SourceStatus source, UUID requestId, String additionalInfo, Boolean isFinal) { - this(jobId, jobStatus, source); - this.requestId = requestId; - this.additionalInfo = additionalInfo; - this.isFinal = isFinal; - } - - - - public enum SourceStatus { - MSO, - VID - } - - private UUID jobId; - private String jobStatus; - private SourceStatus source; - private UUID requestId; - private String additionalInfo; - - - - private Boolean isFinal; - - public String getJobStatus() { - return jobStatus; - } - - public UUID getJobId() { - return jobId; - } - - public SourceStatus getSource() { - return source; - } - - public String getAdditionalInfo() { - return additionalInfo; - } - - public UUID getRequestId() { - return requestId; - } - - - - public Boolean isFinal(){ - return isFinal; - } - - public void setFinal(Boolean aFinal) { - isFinal = aFinal; - } - - @Override - public String toString() { - return "JobAuditStatus{" + - "jobId=" + jobId + - ", jobStatus='" + jobStatus + '\'' + - ", source=" + source + - ", requestId=" + requestId + - ", additionalInfo='" + additionalInfo + '\'' + - ", isFinal=" + isFinal + - '}'; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - - if (o == null || getClass() != o.getClass()) return false; - - JobAuditStatus that = (JobAuditStatus) o; - - return new EqualsBuilder() - .append(jobId, that.jobId) - .append(jobStatus, that.jobStatus) - .append(source, that.source) - .append(requestId, that.requestId) - .append(additionalInfo, that.additionalInfo) - .append(isFinal, that.isFinal) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37) - .append(jobId) - .append(jobStatus) - .append(source) - .append(requestId) - .append(additionalInfo) - .append(isFinal) - .toHashCode(); - } - - - - - -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/ServiceInfo.java b/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/ServiceInfo.java deleted file mode 100644 index ee3cd7a7..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/asyncInstantiation/ServiceInfo.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.opencomp.vid.model.asyncInstantiation; - - -import vid.automation.test.model.JobStatus; - -import java.util.Date; - -public class ServiceInfo { - - public String jobId; - public String templateId; - public String userId; - public JobStatus jobStatus; - public Date statusModifiedDate; - public boolean hidden; - public boolean pause; - public String owningEntityId; - public String owningEntityName; - public String project; - public String aicZoneId; - public String aicZoneName; - public String tenantId; - public String tenantName; - public String regionId; - public String regionName; - public String serviceType; - public String subscriberName; - public String serviceInstanceId; - public String serviceInstanceName; - public String serviceModelId; - public String serviceModelName; - public String serviceModelVersion; - public Date createdBulkDate; - - public ServiceInfo(){ - - } - - public ServiceInfo(String userId, JobStatus jobStatus, boolean pause, String owningEntityId, String owningEntityName, String project, String aicZoneId, String aicZoneName, String tenantId, String tenantName, String regionId, String regionName, String serviceType, String subscriberName, String serviceInstanceId, String serviceInstanceName, String serviceModelId, String serviceModelName, String serviceModelVersion, String jobId, String templateId) { - this.userId = userId; - this.jobStatus = jobStatus; - this.pause = pause; - this.owningEntityId = owningEntityId; - this.owningEntityName = owningEntityName; - this.project = project; - this.aicZoneId = aicZoneId; - this.aicZoneName = aicZoneName; - this.tenantId = tenantId; - this.tenantName = tenantName; - this.regionId = regionId; - this.regionName = regionName; - this.serviceType = serviceType; - this.subscriberName = subscriberName; - this.serviceInstanceId = serviceInstanceId; - this.serviceInstanceName = serviceInstanceName; - this.serviceModelId = serviceModelId; - this.serviceModelName = serviceModelName; - this.serviceModelVersion = serviceModelVersion; - this.jobId = jobId; - this.templateId = templateId; - } - - public JobStatus getJobStatus() { - return jobStatus; - } - - public String getServiceInstanceName() { - return serviceInstanceName; - } - - public String getJobId() { - return jobId; - } - -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionResponse.java deleted file mode 100644 index 9cfaec95..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionResponse.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.opencomp.vid.model.category; - -import org.opencomp.vid.model.workflow.ListOfErrorsResponse; - -import java.util.List; - -public class AddCategoryOptionResponse extends ListOfErrorsResponse { - - public AddCategoryOptionResponse() { - } - - public AddCategoryOptionResponse(List<String> errors) { - super(errors); - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionsRequest.java b/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionsRequest.java deleted file mode 100644 index 2c3edfde..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/category/AddCategoryOptionsRequest.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.opencomp.vid.model.category; - -import java.util.ArrayList; -import java.util.List; - -public class AddCategoryOptionsRequest { - - public List<String> options; - - public AddCategoryOptionsRequest() { - options = new ArrayList<>(); - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOption.java b/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOption.java deleted file mode 100644 index 2aa83924..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOption.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.opencomp.vid.model.category; - -public class CategoryParameterOption { - - private String appId; - private String name; - - - public CategoryParameterOption() { - } - - public CategoryParameterOption(String appId, String name) { - setAppId(appId); - setName(name); - } - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOptionRep.java b/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOptionRep.java deleted file mode 100644 index 27b42e66..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParameterOptionRep.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.opencomp.vid.model.category; - -public class CategoryParameterOptionRep { - - private String id; - private String name; - - public CategoryParameterOptionRep() { - } - - public CategoryParameterOptionRep(String id, String name) { - this.id = id; - this.name = name; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParametersResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParametersResponse.java deleted file mode 100644 index 9b9cc840..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/category/CategoryParametersResponse.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.opencomp.vid.model.category; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.List; -import java.util.Map; - -public class CategoryParametersResponse { - - private Map<String, List<CategoryParameterOptionRep>> categoryParameters; - - public CategoryParametersResponse() { - } - - public CategoryParametersResponse(Map<String, List<CategoryParameterOptionRep>> categoryParameters) { - this.categoryParameters = categoryParameters; - } - - @JsonProperty("categoryParameters") - public Map<String, List<CategoryParameterOptionRep>> getCategoryParameters() { - return categoryParameters; - } - - public void setCategoryParameters(Map<String, List<CategoryParameterOptionRep>> categoryParameters) { - this.categoryParameters = categoryParameters; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/probe/ExternalComponentStatus.java b/vid-automation/src/test/java/org/opencomp/vid/model/probe/ExternalComponentStatus.java deleted file mode 100644 index 8d548842..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/probe/ExternalComponentStatus.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.opencomp.vid.model.probe; - -public class ExternalComponentStatus { - public enum Component {AAI, MSO} - private Component component; - private boolean available; - private HttpRequestMetadata metadata; - - public ExternalComponentStatus(){} - - public ExternalComponentStatus(Component component, boolean isAvailable, HttpRequestMetadata metadata) { - this.component = component; - this.available = isAvailable; - this.metadata = metadata; - } - - public Component getComponent() { - return component; - } - - public boolean isAvailable() { - return available; - } - - public HttpRequestMetadata getMetadata() { - return metadata; - } -}
\ No newline at end of file diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/probe/HttpRequestMetadata.java b/vid-automation/src/test/java/org/opencomp/vid/model/probe/HttpRequestMetadata.java deleted file mode 100644 index 4ab5ae4a..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/probe/HttpRequestMetadata.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.opencomp.vid.model.probe; - -import org.springframework.http.HttpMethod; - -public class HttpRequestMetadata { - - - public HttpMethod getHttpMethod() { - return httpMethod; - } - - public int getHttpCode() { - return httpCode; - } - - public String getUrl() { - return url; - } - - public String getRawData() { - return rawData; - } - - public float getDuration() { - return duration; - } - - public String getDescription() { - return description; - } - - private HttpMethod httpMethod; - private int httpCode; - private String url; - private String rawData; - private String description; - private float duration; - - public HttpRequestMetadata(){ - } - - public HttpRequestMetadata(HttpMethod httpMethod,int httpCode, String url, String rawData, String description) { - this.httpMethod = httpMethod; - this.httpCode = httpCode; - this.url = url; - this.rawData = rawData; - this.description = description; - } -}
\ No newline at end of file diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetVnfWorkflowRelationRequest.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetVnfWorkflowRelationRequest.java deleted file mode 100644 index e2f15ba9..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetVnfWorkflowRelationRequest.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.List; - -public class GetVnfWorkflowRelationRequest { - - public GetVnfWorkflowRelationRequest() { - } - - public GetVnfWorkflowRelationRequest(List<VnfDetails> vnfsDetails) { - this.vnfsDetails = vnfsDetails; - } - - @JsonProperty("vnfsDetails") - private List<VnfDetails> vnfsDetails; - - @JsonProperty("vnfsDetails") - public List<VnfDetails> getVnfDetails() { - return vnfsDetails; - } - - @JsonProperty("vnfsDetails") - public void setVnfDetails(List<VnfDetails> vnfDetails) { - this.vnfsDetails = vnfDetails; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetWorkflowsResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetWorkflowsResponse.java deleted file mode 100644 index f1005b2a..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/GetWorkflowsResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import java.util.List; - -public class GetWorkflowsResponse { - private List<String> workflows; - - public GetWorkflowsResponse() { - } - - public GetWorkflowsResponse(List<String> workflows) { - this.workflows = workflows; - } - - public List<String> getWorkflows() { - return workflows; - } - - public void setWorkflows(List<String> workflows) { - this.workflows = workflows; - } - - -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/ListOfErrorsResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/ListOfErrorsResponse.java deleted file mode 100644 index 60b733fe..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/ListOfErrorsResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import java.util.ArrayList; -import java.util.List; - -public class ListOfErrorsResponse { - protected List<String> errors; - - public ListOfErrorsResponse() { - this.errors = new ArrayList<>(); - } - - public ListOfErrorsResponse(List<String> errors) { - this.errors = errors; - } - - public List<String> getErrors() { - return errors; - } - - public void setErrors(List<String> errors) { - this.errors = errors; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetails.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetails.java deleted file mode 100644 index a7b27356..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetails.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class VnfDetails { - - public VnfDetails() { - } - - public VnfDetails(String UUID, String invariantUUID) { - this.UUID = UUID; - this.invariantUUID = invariantUUID; - } - - @JsonProperty("UUID") - private String UUID; - - @JsonProperty("invariantUUID") - private String invariantUUID; - - @JsonProperty("UUID") - public String getUUID() { - return UUID; - } - - @JsonProperty("UUID") - public void setUUID(String uUID) { - UUID = uUID; - } - - @JsonProperty("invariantUUID") - public String getInvariantUUID() { - return invariantUUID; - } - - @JsonProperty("invariantUUID") - public void setInvariantUUID(String invariantUUID) { - this.invariantUUID = invariantUUID; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - VnfDetails that = (VnfDetails) o; - - if (getUUID() != null ? !getUUID().equals(that.getUUID()) : that.getUUID() != null) return false; - return getInvariantUUID() != null ? getInvariantUUID().equals(that.getInvariantUUID()) : that.getInvariantUUID() == null; - } - - @Override - public int hashCode() { - int result = getUUID() != null ? getUUID().hashCode() : 0; - result = 31 * result + (getInvariantUUID() != null ? getInvariantUUID().hashCode() : 0); - return result; - } - - @Override - public String toString() { - return "VnfDetails{" + - "UUID='" + UUID + '\'' + - ", invariantUUID='" + invariantUUID + '\'' + - '}'; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetailsWithWorkflows.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetailsWithWorkflows.java deleted file mode 100644 index 953e25b7..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfDetailsWithWorkflows.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.opencomp.vid.model.workflow; - - -import java.util.List; - -public class VnfDetailsWithWorkflows extends VnfDetails { - - private List<String> workflows; - - public VnfDetailsWithWorkflows() { - } - - - @SuppressWarnings("WeakerAccess") - public VnfDetailsWithWorkflows(String UUID, String invariantUUID, List<String> workflows) { - super(UUID, invariantUUID); - this.workflows = workflows; - } - - public List<String> getWorkflows() { - return workflows; - } - - public void setWorkflows(List<String> workflows) { - this.workflows = workflows; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationAllResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationAllResponse.java deleted file mode 100644 index 3f0cc3ef..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationAllResponse.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import java.util.List; - -public class VnfWorkflowRelationAllResponse { - - private List<VnfDetailsWithWorkflows> vnfs; - - public VnfWorkflowRelationAllResponse() { - } - - public VnfWorkflowRelationAllResponse(List<VnfDetailsWithWorkflows> vnfs) { - this.vnfs = vnfs; - } - - public List<VnfDetailsWithWorkflows> getVnfs() { - return vnfs; - } - - public void setVnfs(List<VnfDetailsWithWorkflows> vnfs) { - this.vnfs = vnfs; - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationRequest.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationRequest.java deleted file mode 100644 index 86ac2b40..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationRequest.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.List; - -public class VnfWorkflowRelationRequest { - - public VnfWorkflowRelationRequest() { - } - - public VnfWorkflowRelationRequest(List<WorkflowsDetail> workflowsDetails) { - this.workflowsDetails = workflowsDetails; - } - - @JsonProperty("workflowsDetails") - private List<WorkflowsDetail> workflowsDetails; - - @JsonProperty("workflowsDetails") - public List<WorkflowsDetail> getWorkflowsDetails() { - return workflowsDetails; - } - - @JsonProperty("workflowsDetails") - public void setWorkflowsDetails(List<WorkflowsDetail> workflowsDetails) { - this.workflowsDetails = workflowsDetails; - } - - - -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationResponse.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationResponse.java deleted file mode 100644 index fdc57ad1..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/VnfWorkflowRelationResponse.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.opencomp.vid.model.workflow; - - -import java.util.List; - -public class VnfWorkflowRelationResponse extends ListOfErrorsResponse { - - public VnfWorkflowRelationResponse() { - } - - public VnfWorkflowRelationResponse(List<String> errors) { - super(errors); - } -} diff --git a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/WorkflowsDetail.java b/vid-automation/src/test/java/org/opencomp/vid/model/workflow/WorkflowsDetail.java deleted file mode 100644 index a67f724c..00000000 --- a/vid-automation/src/test/java/org/opencomp/vid/model/workflow/WorkflowsDetail.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.opencomp.vid.model.workflow; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class WorkflowsDetail { - - public WorkflowsDetail() { - } - - public WorkflowsDetail(VnfDetails vnfDetails, String workflowName) { - this.vnfDetails = vnfDetails; - this.workflowName = workflowName; - } - - @JsonProperty("vnfDetails") - private VnfDetails vnfDetails; - - @JsonProperty("workflowName") - private String workflowName; - - @JsonProperty("vnfDetails") - public VnfDetails getVnfDetails() { - return vnfDetails; - } - @JsonProperty("vnfDetails") - public void setVnfDetails(VnfDetails vnfDetails) { - this.vnfDetails = vnfDetails; - } - @JsonProperty("workflowName") - public String getWorkflowName() { - return workflowName; - } - @JsonProperty("workflowName") - public void setWorkflowName(String workflowName) { - this.workflowName = workflowName; - } - - @Override - public String toString() { - return vnfDetails + - ", workflowName='" + workflowName; - } -} |