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