1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.logger;
17
18 import org.junit.Before;
19 import org.junit.Test;
20 import org.kuali.ole.BaseTestCase;
21
22
23
24
25
26
27
28
29 public class DocStoreLogger_UT
30 extends BaseTestCase {
31
32 @Before
33 public void setUp() throws Exception {
34 super.setUp();
35 }
36
37 @Test
38 public void testLog() throws Exception {
39 DocStoreLogger docStoreLogger = new DocStoreLogger(DocStoreLogger_UT.class.getName());
40 docStoreLogger.log("info message");
41 }
42
43 @Test
44 public void testLogWithException() throws Exception {
45 DocStoreLogger docStoreLogger = new DocStoreLogger(DocStoreLogger_UT.class.getName());
46 docStoreLogger.log("error message", new Exception("mock error exception"));
47
48 }
49
50 @Test
51 public void testDebug() throws Exception {
52 DocStoreLogger docStoreLogger = new DocStoreLogger(DocStoreLogger_UT.class.getName());
53 docStoreLogger.logDebugMsg("debug");
54 }
55 }