From 6387653c4058694b0cb6bf53efc64e79918b87e2 Mon Sep 17 00:00:00 2001 From: xuegao Date: Thu, 11 Mar 2021 20:04:46 +0100 Subject: Adding unit tests Adding unit tests to improve test coverage. Issue-ID: SDC-3428 Signed-off-by: xuegao Change-Id: I685f01886b314dea9b8507afd93937e070d7501d --- .../types/ConfigurationDataDto.java | 37 +++++++--------------- 1 file changed, 11 insertions(+), 26 deletions(-) (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/application-config-rest') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/application-config-rest/application-config-rest-types/src/main/java/org/openecomp/sdcrests/applicationconfiguration/types/ConfigurationDataDto.java b/openecomp-be/api/openecomp-sdc-rest-webapp/application-config-rest/application-config-rest-types/src/main/java/org/openecomp/sdcrests/applicationconfiguration/types/ConfigurationDataDto.java index 2a523783ab..75aaf756d5 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/application-config-rest/application-config-rest-types/src/main/java/org/openecomp/sdcrests/applicationconfiguration/types/ConfigurationDataDto.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/application-config-rest/application-config-rest-types/src/main/java/org/openecomp/sdcrests/applicationconfiguration/types/ConfigurationDataDto.java @@ -7,9 +7,9 @@ * 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. @@ -20,34 +20,19 @@ package org.openecomp.sdcrests.applicationconfiguration.types; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + /** * Created by Talio on 8/9/2016. */ +@Getter +@Setter +@AllArgsConstructor +@NoArgsConstructor public class ConfigurationDataDto { private String value; private long timeStamp; - - public ConfigurationDataDto(String value, long timeStamp) { - this.value = value; - this.timeStamp = timeStamp; - } - - public ConfigurationDataDto() { - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public long getTimeStamp() { - return timeStamp; - } - - public void setTimeStamp(long timeStamp) { - this.timeStamp = timeStamp; - } } -- cgit 1.2.3-korg