From bf2cc29bf766feabca8ef633926f5fce00a5fe2e Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 13 Feb 2018 09:19:43 -0500 Subject: Add test coverage to integrity-monitor Removed "test" from package name. Refactored tests, creating common IntegrityMonitorTestBase. Turned log/print statements into assertEquals in StateTransitionTest. Turned log/print statements into assertEquals in StateManagementTest. Modified AllSeemsWellTest to use IntegrityMonitorTestBase. Modified IntegrityMonitorTest to use IntegrityMonitorTestBase. Added several hooks to IntegrityMonitor to control timers at a finer granularity. Added hooks to IntegrityMonitor to control the FPManager thread. Remove hooks for refresh timer, as property suffices. Added assertException() and assertNoException() methods to IntegrityMonitorTestBase, and then replaced most "try/catch" blocks with calls to those methods. Updated StateManagement to close EntityManagers. Modify pom to remove scope from utils dependency. Fix some comments and remove an unneeded EntityTransaction variable. Change-Id: Ic0789d26f985a40a35f618343fa4e88aa473b2b3 Issue-ID: POLICY-582 Signed-off-by: Jim Hahn --- integrity-monitor/pom.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'integrity-monitor/pom.xml') diff --git a/integrity-monitor/pom.xml b/integrity-monitor/pom.xml index 67b035aa..4e69ccea 100644 --- a/integrity-monitor/pom.xml +++ b/integrity-monitor/pom.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP Policy Engine - Common Modules ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -41,6 +41,11 @@ log4j 1.2.17 + + org.onap.policy.common + utils + ${project.version} + junit junit @@ -50,7 +55,7 @@ org.onap.policy.common utils-test - ${project.version} + ${project.version} test -- cgit 1.2.3-korg