diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2018-11-08 19:06:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-08 19:06:17 +0000 |
commit | 69aba39cbd866a1b611613a7b14db50d86944b94 (patch) | |
tree | 29fce066cce6de184bd7b4bb1962368d8593ca0e /controlloop/common/policy-yaml/src/test | |
parent | 830ede893c2a05ac1e7d69068c25d25fd7cc0049 (diff) | |
parent | 91fe0bcd2d0212f949587ec82d93109946491d63 (diff) |
Merge "Apply builder pattern for policy"
Diffstat (limited to 'controlloop/common/policy-yaml/src/test')
-rw-r--r-- | controlloop/common/policy-yaml/src/test/java/org/onap/policy/controlloop/policy/PolicyTest.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/controlloop/common/policy-yaml/src/test/java/org/onap/policy/controlloop/policy/PolicyTest.java b/controlloop/common/policy-yaml/src/test/java/org/onap/policy/controlloop/policy/PolicyTest.java index 6e13b326b..d903b1534 100644 --- a/controlloop/common/policy-yaml/src/test/java/org/onap/policy/controlloop/policy/PolicyTest.java +++ b/controlloop/common/policy-yaml/src/test/java/org/onap/policy/controlloop/policy/PolicyTest.java @@ -161,7 +161,17 @@ public class PolicyTest { Target target = new Target(); target.setResourceID("myresourceD"); - policy = new Policy("idD", "nameD", "descD", "actorD", payload, target, "recipeD", 301, 302); + policy = new Policy( + PolicyParam.builder().id("idD") + .name("nameD") + .description("descD") + .actor("actorD") + .payload(payload) + .target(target) + .recipe("recipeD") + .retries(301) + .timeout(302) + .build()); assertEquals("idD", policy.getId()); assertEquals("nameD", policy.getName()); assertEquals("descD", policy.getDescription()); |