41f4b951817de7804baab17ef502c5af0771a606
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-adapter-bundle / src / test / java / org / onap / appc / adapter / netconf / jsch / TestJSchLogger.java
1 package org.onap.appc.adapter.netconf.jsch;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5
6 import java.io.IOException;
7
8 public class TestJSchLogger {
9
10
11     @Test
12     public void testIsEnabled() throws IOException {
13         JSchLogger jSchLogger = new JSchLogger();
14
15         boolean response = jSchLogger.isEnabled(2);
16
17         Assert.assertEquals(true, response);
18     }
19
20     @Test
21     public void testLog() throws IOException {
22         JSchLogger jSchLogger = new JSchLogger();
23
24         jSchLogger.log(0, "test-debug");
25         jSchLogger.log(1, "test-info");
26         jSchLogger.log(2, "test-warn");
27         jSchLogger.log(3, "test-error");
28         jSchLogger.log(4, "test-fatal");
29         jSchLogger.log(5, "test-other");
30
31     }
32 }