diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
commit | d5ec7bf55217508e2b5cebe640d586598379f97a (patch) | |
tree | 4bbe052d2eb67c11c5fbc22998c95e55e7aef4d0 /vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java | |
parent | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (diff) |
Unit tests
Change-Id: Ib9f73b7ba5a509610896b8bbdc02c180e60ee959
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java b/vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java new file mode 100644 index 000000000..40f4c876f --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/utils/LoggingTest.java @@ -0,0 +1,43 @@ +package org.onap.vid.utils; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.poi.hssf.record.formula.functions.T; +import org.junit.Test; +import org.springframework.http.HttpMethod; + +import com.att.eelf.configuration.EELFLogger; + +public class LoggingTest { + + private Logging createTestSubject() { + return new Logging(); + } + + @Test + public void testGetMethodName() throws Exception { + String result; + + // default test + result = Logging.getMethodName(); + } + + @Test + public void testGetMethodCallerName() throws Exception { + String result; + + // default test + result = Logging.getMethodCallerName(); + } + + @Test + public void testGetRequestsLogger() throws Exception { + String serverName = ""; + EELFLogger result; + + // default test + result = Logging.getRequestsLogger(serverName); + } + + +}
\ No newline at end of file |