diff options
author | Jim Hahn <jrh3@att.com> | 2019-07-11 18:05:01 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-07-15 09:27:49 -0400 |
commit | c82cc454fe4f08da7e27af31ac9c0a0ef9cf153b (patch) | |
tree | 51a3d058bf46877543dd370b4a87f4e03c8c7176 /integrity-monitor/src/test/java | |
parent | 7b5f7f8627d6e3cc267b4f7eefeb73d2efb31f96 (diff) |
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 <jrh3@att.com>
Diffstat (limited to 'integrity-monitor/src/test/java')
-rw-r--r-- | integrity-monitor/src/test/java/org/onap/policy/common/im/StateTransitionTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |