diff options
author | Jim Hahn <jrh3@att.com> | 2021-05-24 20:51:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-24 20:51:53 +0000 |
commit | 41d130dd1bc967f8163ab2304ed4067254034151 (patch) | |
tree | 0f735b08dfff1f8004106a240d4ae1b875c7179e /integrity-monitor | |
parent | 57410a85a607f71d4094dae9d9e57dabb7b0b33a (diff) | |
parent | 601a09fd07960d3aadcf972ba7c72dcea9976aef (diff) |
Merge "Enhance toString methods in factory classes"
Diffstat (limited to 'integrity-monitor')
-rw-r--r-- | integrity-monitor/src/test/java/org/onap/policy/common/im/StateManagementTest.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/StateManagementTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/StateManagementTest.java index fb1df8c7..b1d7d5b4 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/StateManagementTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/StateManagementTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * Integrity Monitor * ================================================================================ - * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2020 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -287,16 +287,9 @@ public class StateManagementTest extends IntegrityMonitorTestBase { return null; } - final StringBuilder b = new StringBuilder(); - - b.append(sm.getAdminState()); - b.append(','); - b.append(sm.getOpState()); - b.append(','); - b.append(sm.getAvailStatus()); - b.append(','); - b.append(sm.getStandbyStatus()); - - return b.toString(); + return sm.getAdminState() + + ',' + sm.getOpState() + + ',' + sm.getAvailStatus() + + ',' + sm.getStandbyStatus(); } } |