Unit tests
[vid.git] / vid-app-common / src / test / java / org / onap / vid / controllers / LoggerControllerTest.java
1 package org.onap.vid.controllers;
2
3 import static org.junit.Assert.*;
4 import java.util.*;
5 import javax.servlet.http.HttpServletRequest;
6 import javax.ws.rs.NotAuthorizedException;
7
8 import org.junit.Assert;
9 import org.junit.Test;
10 import org.onap.vid.model.ExceptionResponse;
11
12
13 public class LoggerControllerTest {
14
15     private LoggerController createTestSubject() {
16         return new LoggerController();
17     }
18
19     /*@Test
20     public void testGetLog() throws Exception {
21         LoggerController testSubject;
22         String loggerName = "";
23         HttpServletRequest request = null;
24         Integer limit = 0;
25         String result;
26
27         // default test
28         testSubject = createTestSubject();
29         result = testSubject.getLog(loggerName, request, limit);
30     }*/
31
32    
33     @Test
34     public void testNotAuthorizedHandler() throws Exception {
35         LoggerController testSubject;
36         NotAuthorizedException e = null;
37         String result;
38
39         // default test
40         testSubject = createTestSubject();
41         result = testSubject.notAuthorizedHandler(e);
42     }
43
44     /*@Test
45     public void testIoExceptionHandler() throws Exception {
46         LoggerController testSubject;
47         Exception e = null;
48         ExceptionResponse result;
49
50         // default test
51         testSubject = createTestSubject();
52         result = testSubject.ioExceptionHandler(e);
53     }*/
54 }