From 6505fa1c845c34d59c44a40f87b66ef79f3e911c Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 14 Aug 2018 09:45:44 -0400 Subject: Fixes for checkstyle issues More fixes for spacing, adding comments, adding period at the end, and move code closer to usage. Issue-ID: POLICY-881 Change-Id: Ife99eaf627a221e87d65d24dfd145b0ee4e06d21 Signed-off-by: Pamela Dragosh --- .../test/java/org/onap/policy/common/im/IntegrityMonitorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java') diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java index f7ffa217..3c4fba23 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/IntegrityMonitorTest.java @@ -23,6 +23,7 @@ package org.onap.policy.common.im; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; + import java.util.Date; import java.util.List; import java.util.Properties; @@ -645,8 +646,6 @@ public class IntegrityMonitorTest extends IntegrityMonitorTestBase { myProp.put(IntegrityMonitorProperties.MAX_FPC_UPDATE_INTERVAL, "5"); myProp.put(IntegrityMonitorProperties.CHECK_DEPENDENCY_INTERVAL, "5"); - IntegrityMonitor im = makeMonitor(resourceName, myProp); - // Note: do ***NOT*** do waitStep() here // Add a group1 dependent resources to put an entry in the forward @@ -663,6 +662,8 @@ public class IntegrityMonitorTest extends IntegrityMonitorTestBase { new StateManagement(emf, "group1_dep1"); + IntegrityMonitor im = makeMonitor(resourceName, myProp); + assertNoException(im, imx -> { imx.evaluateSanity(); }); -- cgit 1.2.3-korg