diff options
author | 2018-03-09 10:00:26 +0000 | |
---|---|---|
committer | 2018-03-09 10:00:26 +0000 | |
commit | f3b28a0aafd83a57d42afbf23c9f6fbe6f546db3 (patch) | |
tree | 5ecb2b2a78ab3139828db18de5f2a76d76c77519 /common/src/test/java/org/openecomp/mso/utils | |
parent | 8d0b9eb56af520d28c423da76c0f0be02cb453c7 (diff) | |
parent | 327b17ab250b4c17cf3f91f5e4cd9bffd89f3d1e (diff) |
Merge "Reduce log noise/warnings format to conventions"
Diffstat (limited to 'common/src/test/java/org/openecomp/mso/utils')
-rw-r--r-- | common/src/test/java/org/openecomp/mso/utils/CheckResultsTest.java | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/common/src/test/java/org/openecomp/mso/utils/CheckResultsTest.java b/common/src/test/java/org/openecomp/mso/utils/CheckResultsTest.java index eeb7342d50..d81a885f4b 100644 --- a/common/src/test/java/org/openecomp/mso/utils/CheckResultsTest.java +++ b/common/src/test/java/org/openecomp/mso/utils/CheckResultsTest.java @@ -32,25 +32,25 @@ public class CheckResultsTest { * Test method for {@link org.openecomp.mso.utils.CheckResults#getResults()}. */ @Test - public final void testGetResults () { - CheckResults cr = new CheckResults (); - cr.addHostCheckResult ("host1", 0, "output"); - cr.addHostCheckResult ("host2", 2, "output2"); - cr.addServiceCheckResult ("host1", "service1", 0, "outputServ"); - cr.addServiceCheckResult ("host1", "service2", 2, "outputServ2"); - cr.addServiceCheckResult ("host2", "service1", 0, "output2Serv"); - cr.addServiceCheckResult ("host2", "service2", 2, "output2Serv2"); - List <CheckResult> res = cr.getResults (); - assert(res.size () == 6); - assert(res.get (0).getHostname ().equals ("host1")); - assert(res.get (1).getHostname ().equals ("host2")); - assert(res.get (2).getHostname ().equals ("host1")); - assert(res.get (3).getHostname ().equals ("host1")); - assert(res.get (4).getHostname ().equals ("host2")); - assert(res.get (5).getHostname ().equals ("host2")); - assert(res.get (0).getServicename () == null); - assert(res.get (3).getServicename ().equals ("service2")); - assert(res.get (5).getState () == 2); + public final void testGetResults() { + CheckResults cr = new CheckResults(); + cr.addHostCheckResult("host1", 0, "output"); + cr.addHostCheckResult("host2", 2, "output2"); + cr.addServiceCheckResult("host1", "service1", 0, "outputServ"); + cr.addServiceCheckResult("host1", "service2", 2, "outputServ2"); + cr.addServiceCheckResult("host2", "service1", 0, "output2Serv"); + cr.addServiceCheckResult("host2", "service2", 2, "output2Serv2"); + List<CheckResult> res = cr.getResults(); + assert(res.size() == 6); + assert(res.get(0).getHostname().equals("host1")); + assert(res.get(1).getHostname().equals("host2")); + assert(res.get(2).getHostname().equals("host1")); + assert(res.get(3).getHostname().equals("host1")); + assert(res.get(4).getHostname().equals("host2")); + assert(res.get(5).getHostname().equals("host2")); + assert(res.get(0).getServicename() == null); + assert(res.get(3).getServicename().equals("service2")); + assert(res.get(5).getState() == 2); } } |