Upgrade sonar plugin
[vid.git] / vid-app-common / src / test / java / org / openecomp / vid / client / FakeHttpSessionTest.java
1 package org.openecomp.vid.client;
2
3 import java.util.Enumeration;
4
5 import javax.servlet.ServletContext;
6 import javax.servlet.http.HttpSessionContext;
7
8 import org.junit.Test;
9
10
11 public class FakeHttpSessionTest {
12
13         private FakeHttpSession createTestSubject() {
14                 return new FakeHttpSession();
15         }
16
17
18         @Test
19         public void testGetCreationTime() throws Exception {
20                 FakeHttpSession testSubject;
21                 long result;
22
23                 // default test
24                 testSubject = createTestSubject();
25                 result = testSubject.getCreationTime();
26         }
27
28
29         @Test
30         public void testGetId() throws Exception {
31                 FakeHttpSession testSubject;
32                 String result;
33
34                 // default test
35                 testSubject = createTestSubject();
36                 result = testSubject.getId();
37         }
38
39
40         @Test
41         public void testGetLastAccessedTime() throws Exception {
42                 FakeHttpSession testSubject;
43                 long result;
44
45                 // default test
46                 testSubject = createTestSubject();
47                 result = testSubject.getLastAccessedTime();
48         }
49
50
51         @Test
52         public void testGetServletContext() throws Exception {
53                 FakeHttpSession testSubject;
54                 ServletContext result;
55
56                 // default test
57                 testSubject = createTestSubject();
58                 result = testSubject.getServletContext();
59         }
60
61
62         @Test
63         public void testSetMaxInactiveInterval() throws Exception {
64                 FakeHttpSession testSubject;
65                 int maxInactiveInterval = 0;
66
67                 // default test
68                 testSubject = createTestSubject();
69                 testSubject.setMaxInactiveInterval(maxInactiveInterval);
70         }
71
72
73         @Test
74         public void testGetMaxInactiveInterval() throws Exception {
75                 FakeHttpSession testSubject;
76                 int result;
77
78                 // default test
79                 testSubject = createTestSubject();
80                 result = testSubject.getMaxInactiveInterval();
81         }
82
83
84         @Test
85         public void testGetSessionContext() throws Exception {
86                 FakeHttpSession testSubject;
87                 HttpSessionContext result;
88
89                 // default test
90                 testSubject = createTestSubject();
91                 result = testSubject.getSessionContext();
92         }
93
94
95         @Test
96         public void testGetAttribute() throws Exception {
97                 FakeHttpSession testSubject;
98                 String name = "";
99                 Object result;
100
101                 // default test
102                 testSubject = createTestSubject();
103                 result = testSubject.getAttribute(name);
104         }
105
106
107         @Test
108         public void testGetValue() throws Exception {
109                 FakeHttpSession testSubject;
110                 String name = "";
111                 Object result;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 result = testSubject.getValue(name);
116         }
117
118
119         @Test
120         public void testGetAttributeNames() throws Exception {
121                 FakeHttpSession testSubject;
122                 Enumeration<String> result;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 result = testSubject.getAttributeNames();
127         }
128
129
130         @Test
131         public void testGetValueNames() throws Exception {
132                 FakeHttpSession testSubject;
133                 String[] result;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 result = testSubject.getValueNames();
138         }
139
140
141         @Test
142         public void testSetAttribute() throws Exception {
143                 FakeHttpSession testSubject;
144                 String name = "";
145                 Object value = null;
146
147                 // default test
148                 testSubject = createTestSubject();
149                 testSubject.setAttribute(name, value);
150         }
151
152
153         @Test
154         public void testPutValue() throws Exception {
155                 FakeHttpSession testSubject;
156                 String name = "";
157                 Object value = null;
158
159                 // default test
160                 testSubject = createTestSubject();
161                 testSubject.putValue(name, value);
162         }
163
164
165         @Test
166         public void testRemoveAttribute() throws Exception {
167                 FakeHttpSession testSubject;
168                 String name = "";
169
170                 // default test
171                 testSubject = createTestSubject();
172                 testSubject.removeAttribute(name);
173         }
174
175
176         @Test
177         public void testRemoveValue() throws Exception {
178                 FakeHttpSession testSubject;
179                 String name = "";
180
181                 // default test
182                 testSubject = createTestSubject();
183                 testSubject.removeValue(name);
184         }
185
186
187         @Test
188         public void testInvalidate() throws Exception {
189                 FakeHttpSession testSubject;
190
191                 // default test
192                 testSubject = createTestSubject();
193                 testSubject.invalidate();
194         }
195
196
197         @Test
198         public void testIsNew() throws Exception {
199                 FakeHttpSession testSubject;
200                 boolean result;
201
202                 // default test
203                 testSubject = createTestSubject();
204                 result = testSubject.isNew();
205         }
206 }