From c82cc454fe4f08da7e27af31ac9c0a0ef9cf153b Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 11 Jul 2019 18:05:01 -0400 Subject: Combine lines in IM state transition table Rewrote the code to generate the Integrity Monitor state transition table, eliminating duplicate lines. Output the table, before and after the change, and verified that they were identical, with one exception: there were two places where the original code had "StandbyStateException", while all of the others had "StandbyStatusException". Guessing that the original code was incorrect in these two cases, I changed the new code to always use "StandbyStatusException" instead. Change-Id: Ibe3044eb1ac398a0bc8f328f4e14305d4bdeb380 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn --- .../src/test/java/org/onap/policy/common/im/StateTransitionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'integrity-monitor/src/test') diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/StateTransitionTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/StateTransitionTest.java index 5926bd8f..6d11b30b 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/StateTransitionTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/StateTransitionTest.java @@ -1185,7 +1185,7 @@ public class StateTransitionTest { logger.info("??? StateTransition testcase 279"); se = st.getEndingState(LOCKED, ENABLED, "null", HOTSTANDBY, PROMOTE); - assertEquals("coldstandby,locked,enabled,null,StandbyStateException", makeString(se)); + assertEquals("coldstandby,locked,enabled,null,StandbyStatusException", makeString(se)); logger.info("??? StateTransition testcase 280"); se = st.getEndingState(LOCKED, ENABLED, "null", HOTSTANDBY, DEMOTE); @@ -1217,7 +1217,7 @@ public class StateTransitionTest { logger.info("??? StateTransition testcase 287"); se = st.getEndingState(LOCKED, ENABLED, "null", PROVIDINGSERVICE, PROMOTE); - assertEquals("coldstandby,locked,enabled,null,StandbyStateException", makeString(se)); + assertEquals("coldstandby,locked,enabled,null,StandbyStatusException", makeString(se)); logger.info("??? StateTransition testcase 288"); se = st.getEndingState(LOCKED, ENABLED, "null", PROVIDINGSERVICE, DEMOTE); -- cgit 1.2.3-korg