diff options
author | 2018-04-04 16:31:11 +0300 | |
---|---|---|
committer | 2018-04-08 04:45:25 +0000 | |
commit | 6040ee42d045f4dfaaf29a4cdd9ed93c6f20cff9 (patch) | |
tree | 1fbdd5c2f903013348ee9b9f5df0f4d9e5591842 /openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java | |
parent | d6982006c27288936d8b0d9eee18068854036f45 (diff) |
Minor improvements in hostname for logging
Minor concurrency and naming improvements.
Change-Id: I14dfb6d83dd5b84d5a8bb5cb67eda9f490b0e85a
Issue-ID: SDC-772
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java')
-rw-r--r-- | openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressCacheTest.java (renamed from openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressTest.java) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressTest.java b/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressCacheTest.java index 319bf19dcc..6d7a636840 100644 --- a/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressTest.java +++ b/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-core/src/test/java/org/openecomp/sdc/logging/context/HostAddressCacheTest.java @@ -33,17 +33,17 @@ import org.testng.annotations.Test; * @since 28 Mar 2018 */ @PrepareForTest(InetAddress.class) -public class HostAddressTest extends PowerMockTestCase { +public class HostAddressCacheTest extends PowerMockTestCase { @Test public void hostAddressIsAlwaysPopulated() { - assertNotNull(new HostAddress().get()); + assertNotNull(new HostAddressCache().get()); } @Test public void cachedAddressRemainsTheSameWhenGotWithingRefreshInterval() throws UnknownHostException { mockInetAddress(1); - HostAddress addressCache = new HostAddress(1000); + HostAddressCache addressCache = new HostAddressCache(1000); addressCache.get(); addressCache.get(); } @@ -51,7 +51,7 @@ public class HostAddressTest extends PowerMockTestCase { @Test public void cachedAddressReplacedWhenGotAfterRefreshInterval() throws UnknownHostException { mockInetAddress(2); - HostAddress addressCache = new HostAddress(-1); + HostAddressCache addressCache = new HostAddressCache(-1); addressCache.get(); addressCache.get(); } |