diff options
author | isaac <isaac.adorno@att.com> | 2022-01-04 16:34:20 -0600 |
---|---|---|
committer | Isaac Adorno <isaac.adorno@att.com> | 2022-01-07 14:51:17 +0000 |
commit | 9de4055ab950735268e037a1e9cc41d998df7252 (patch) | |
tree | f344fecf4be1f806145dc465e50747ab98e6a8b6 /main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java | |
parent | 4694c152f69380f4d3d64bde0a13d15fb59a71f3 (diff) |
Adding totalPolicyDeployCounts updates to PapStasticsManager
Issue-ID: POLICY-3836
Signed-off-by: isaac <isaac.adorno@att.com>
Change-Id: Ia4ed2595984f68bf75ca9dacb6aa76f04a306224
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java b/main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java index f5798fd5..26e44d80 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/ProviderSuper.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP PAP * ================================================================================ - * Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2022 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2021 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -81,7 +81,7 @@ public class ProviderSuper { protected PdpModifyRequestMap reqmap; protected PolicyModelsProviderFactoryWrapper daofact; protected ToscaPolicy policy1; - + protected PapStatisticsManager statsmanager; /** * Configures DAO, captors, and various mocks. @@ -98,6 +98,7 @@ public class ProviderSuper { lockit = new Object(); daofact = mock(PolicyModelsProviderFactoryWrapper.class); policy1 = loadPolicy("policy.json"); + statsmanager = mock(PapStatisticsManager.class); when(daofact.create()).thenReturn(dao); @@ -112,6 +113,7 @@ public class ProviderSuper { Registry.register(PapConstants.REG_PDP_MODIFY_MAP, reqmap); Registry.register(PapConstants.REG_PAP_DAO_FACTORY, daofact); Registry.register(PapConstants.REG_POLICY_NOTIFIER, notifier); + Registry.register(PapConstants.REG_STATISTICS_MANAGER, statsmanager); } protected void assertGroup(List<PdpGroup> groups, String name) { |