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/src/main/resources/META-INF/persistence.xml | 3 --- 1 file changed, 3 deletions(-) (limited to 'integrity-monitor/src/main/resources/META-INF/persistence.xml') diff --git a/integrity-monitor/src/main/resources/META-INF/persistence.xml b/integrity-monitor/src/main/resources/META-INF/persistence.xml index 7fbec098..f5089b12 100644 --- a/integrity-monitor/src/main/resources/META-INF/persistence.xml +++ b/integrity-monitor/src/main/resources/META-INF/persistence.xml @@ -30,9 +30,6 @@ NONE - - - -- cgit 1.2.3-korg