StdPolicyEngine { public PolicyChangeResponse pushPolicy(final PushPolicyParameters pushPolicyParameters) throws PolicyException { return pushPolicyImpl(pushPolicyParameters); } StdPolicyEngine(final String propertyFilePath, final String clientKey);  StdPolicyEngine(final Properties properties, final String clientKey);  StdPolicyEngine(final String propertyFilePath, final NotificationScheme scheme,
            final NotificationHandler handler);  StdPolicyEngine(final String propertyFilePath, final NotificationScheme scheme); Collection<PolicyResponse> sendEvent(final Map<String, String> eventAttributes, final UUID requestID); Collection<PolicyResponse> sendEvent(final EventRequestParameters eventRequestParameters); Collection<PolicyConfig> getConfig(final ConfigRequestParameters configRequestParameters); Collection<String> listConfig(final ConfigRequestParameters listPolicyRequestParameters); Collection<String> listPolicy(final ConfigNameRequest listPolicyRequestParameters); DecisionResponse getDecision(final String onapName, final Map<String, String> decisionAttributes,
            final UUID requestID); DecisionResponse getDecision(final DecisionRequestParameters decisionRequestParameters); MetricsResponse getMetrics(final MetricsRequestParameters parameters); MetricsResponse getMetricsImpl(final MetricsRequestParameters parameters); PolicyChangeResponse pushPolicy(final PushPolicyParameters pushPolicyParameters); PolicyChangeResponse pushPolicyImpl(final PushPolicyParameters pushPolicyParameters); PolicyChangeResponse deletePolicy(final DeletePolicyParameters parameters); DictionaryResponse getDictionaryItem(final DictionaryParameters parameters); PolicyChangeResponse createDictionaryItem(final DictionaryParameters parameters); PolicyChangeResponse updateDictionaryItem(final DictionaryParameters parameters); PolicyChangeResponse policyEngineImport(final ImportParameters importParameters); PolicyChangeResponse createPolicy(final PolicyParameters policyParameters); PolicyChangeResponse updatePolicy(final PolicyParameters policyParameters); Collection<String> listPolicyImpl(final ConfigNameRequest listPolicyRequestParameters); void notification(final NotificationScheme scheme, final NotificationHandler handler); PDPNotification getNotification(); void setScheme(final NotificationScheme scheme); NotificationScheme getScheme(); NotificationHandler getNotificationHandler(); void stopNotification(); String pushPolicy(final String policyScope, final String policyName, final String policyType,
            final String pdpGroup, final UUID requestID); String createUpdateConfigPolicy(final String policyName, final String policyDescription,
            final String onapName, final String configName, final Map<String, String> configAttributes,
            final String configType, final String body, final String policyScope, final UUID requestID,
            final String riskLevel, final String riskType, final String guard, final String ttlDate,
            final boolean updateFlag); String createUpdateConfigFirewallPolicy(final String policyName, final JsonObject firewallJson,
            final String policyScope, final UUID requestID, final String riskLevel, final String riskType,
            final String guard, final String ttlDate, final boolean updateFlag); static void setClientKey(final String clientKey); static String getEnvironment(); static void rotatePDPList(); static String getPDPURL();  }
@Test(expected = PolicyException.class) public void testStdPolicyEnginPushPolicy_NullValues_Exception() throws Exception { final StdPolicyEngine spyPolicyEngine = getSpyPolicyEngine(); spyPolicyEngine.pushPolicy(null, null, null, null, null); }
@Test(expected = PolicyException.class) public void testStdPolicyEnginPushPolicy_EmptyPolicyScope_Exception() throws Exception { final StdPolicyEngine spyPolicyEngine = getSpyPolicyEngine(); spyPolicyEngine.pushPolicy("", null, null, null, null); }
@Test(expected = PolicyException.class) public void testStdPolicyEnginPushPolicy_EmptyPolicyName_Exception() throws Exception { final StdPolicyEngine spyPolicyEngine = getSpyPolicyEngine(); spyPolicyEngine.pushPolicy("POLICY_SCOPE", "", null, null, null); }