Convert models to JUnit 5
[policy/models.git] / models-pdp / src / main / java / org / onap / policy / models / pdp / concepts / PdpSubGroup.java
index 0e9554d..e35e4a3 100644 (file)
@@ -26,6 +26,7 @@ import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import lombok.Data;
+import lombok.NoArgsConstructor;
 import lombok.NonNull;
 import org.onap.policy.common.parameters.BeanValidationResult;
 import org.onap.policy.common.parameters.ValidationResult;
@@ -40,6 +41,7 @@ import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifier;
  * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
  */
 @Data
+@NoArgsConstructor
 public class PdpSubGroup {
     private String pdpType;
     private List<ToscaConceptIdentifier> supportedPolicyTypes;
@@ -49,13 +51,6 @@ public class PdpSubGroup {
     private Map<String, String> properties;
     private List<Pdp> pdpInstances;
 
-    /**
-     * Constructs the object.
-     */
-    public PdpSubGroup() {
-        super();
-    }
-
     /**
      * Constructs the object, making a deep copy from the source.
      *
@@ -80,7 +75,7 @@ public class PdpSubGroup {
      * @return the validation result
      */
     public ValidationResult validatePapRest(boolean updateGroupFlow) {
-        BeanValidationResult result = new BeanValidationResult("group", this);
+        var result = new BeanValidationResult("group", this);
 
         result.validateNotNull("pdpType", pdpType);
         // When doing PdpGroup Update operation, supported policy types and policies doesn't have to be validated.