diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-11-13 13:55:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-13 13:55:40 +0000 |
commit | 2461d8507c22c7e46b46578f98e5fe916032ee4d (patch) | |
tree | 0304b4d847749db22a34fe6803f2048149b32eb0 /applications/optimization | |
parent | 8d28c6fc936eb4bd95ad1ebd013996cff4787e0e (diff) | |
parent | fe3a8ec467beae89bca9d10b8b5b39f98c81ca01 (diff) |
Merge "Implement closest match algorithm"
Diffstat (limited to 'applications/optimization')
-rw-r--r-- | applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java index 1bcb5222..b77f301f 100644 --- a/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java +++ b/applications/optimization/src/test/java/org/onap/policy/xacml/pdp/application/optimization/OptimizationPdpApplicationTest.java @@ -255,7 +255,7 @@ public class OptimizationPdpApplicationTest { // DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(3); // Should be 1 + assertThat(response.getPolicies().size()).isEqualTo(2); // // Validate it // @@ -275,7 +275,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(6); // should be 1 + assertThat(response.getPolicies().size()).isEqualTo(4); // // Validate it // @@ -286,7 +286,7 @@ public class OptimizationPdpApplicationTest { @Test public void test07OptimizationDefaultGeographyAndServiceAndResource() throws CoderException { // - // Add vCPE to the service list + // Add vG to the resource list // ((List<String>)baseRequest.getResource().get("resources")).add("vG"); // @@ -295,7 +295,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(11); // should be 4 + assertThat(response.getPolicies().size()).isEqualTo(8); // // Validate it // @@ -315,7 +315,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(12); // should be 1 + assertThat(response.getPolicies().size()).isEqualTo(8); // // Validate it // @@ -335,7 +335,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(14); // should be 3 + assertThat(response.getPolicies().size()).isEqualTo(10); // // Validate it // @@ -355,7 +355,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(13); // should be 2 + assertThat(response.getPolicies().size()).isEqualTo(9); // // Validate it // @@ -375,7 +375,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(4); // should be 1 + assertThat(response.getPolicies().size()).isEqualTo(1); // // Validate it // @@ -395,7 +395,7 @@ public class OptimizationPdpApplicationTest { DecisionResponse response = makeDecision(); assertThat(response).isNotNull(); - assertThat(response.getPolicies().size()).isEqualTo(6); // should be 2 + assertThat(response.getPolicies().size()).isEqualTo(2); // // Validate it // |