12
12
import org .junit .Test ;
13
13
14
14
/**
15
- * The class <code>AuditEventTest</code> contains tests for the class <code>{@link AuditEvent}</code>.
15
+ * The class <code>AuditEventTest</code> contains tests for the class
16
+ * <code>{@link AuditEvent}</code>.
16
17
*
17
18
* @generatedBy CodePro at 2/4/15 9:27 AM
18
19
* @author JanithB
@@ -27,8 +28,7 @@ public class AuditEventTest {
27
28
* @generatedBy CodePro at 2/4/15 9:27 AM
28
29
*/
29
30
@ Test
30
- public void testAuditEvent_1 ()
31
- throws Exception {
31
+ public void testAuditEvent_1 () throws Exception {
32
32
33
33
AuditEvent result = new AuditEvent ();
34
34
@@ -38,7 +38,7 @@ public void testAuditEvent_1()
38
38
assertEquals (null , result .getAction ());
39
39
assertEquals (null , result .getActor ());
40
40
assertEquals (null , result .getAuditId ());
41
- assertEquals ( null , result .getUuid ());
41
+ assertNotNull ( result .getUuid ());
42
42
}
43
43
44
44
/**
@@ -49,8 +49,7 @@ public void testAuditEvent_1()
49
49
* @generatedBy CodePro at 2/4/15 9:27 AM
50
50
*/
51
51
@ Test
52
- public void testAuditEvent_2 ()
53
- throws Exception {
52
+ public void testAuditEvent_2 () throws Exception {
54
53
String actor = "" ;
55
54
String action = "" ;
56
55
@@ -62,7 +61,7 @@ public void testAuditEvent_2()
62
61
assertEquals ("" , result .getAction ());
63
62
assertEquals ("" , result .getActor ());
64
63
assertEquals (null , result .getAuditId ());
65
- assertEquals ( null , result .getUuid ());
64
+ assertNotNull ( result .getUuid ());
66
65
}
67
66
68
67
/**
@@ -73,8 +72,7 @@ public void testAuditEvent_2()
73
72
* @generatedBy CodePro at 2/4/15 9:27 AM
74
73
*/
75
74
@ Test
76
- public void testAuditEvent_3 ()
77
- throws Exception {
75
+ public void testAuditEvent_3 () throws Exception {
78
76
String actor = "" ;
79
77
String action = "" ;
80
78
@@ -86,8 +84,7 @@ public void testAuditEvent_3()
86
84
assertEquals ("" , result .getAction ());
87
85
assertEquals ("" , result .getActor ());
88
86
assertEquals (null , result .getAuditId ());
89
- assertEquals (null , result .getUuid ());
90
- }
87
+ assertNotNull (result .getUuid ()); }
91
88
92
89
/**
93
90
* Run the AuditEvent(String,String,String,Field[]) constructor test.
@@ -97,8 +94,7 @@ public void testAuditEvent_3()
97
94
* @generatedBy CodePro at 2/4/15 9:27 AM
98
95
*/
99
96
@ Test
100
- public void testAuditEvent_4 ()
101
- throws Exception {
97
+ public void testAuditEvent_4 () throws Exception {
102
98
String actor = "" ;
103
99
String action = "" ;
104
100
String origin = "" ;
@@ -111,7 +107,7 @@ public void testAuditEvent_4()
111
107
assertEquals ("" , result .getAction ());
112
108
assertEquals ("" , result .getActor ());
113
109
assertEquals (null , result .getAuditId ());
114
- assertEquals ( null , result .getUuid ());
110
+ assertNotNull ( result .getUuid ());
115
111
}
116
112
117
113
/**
@@ -122,8 +118,7 @@ public void testAuditEvent_4()
122
118
* @generatedBy CodePro at 2/4/15 9:27 AM
123
119
*/
124
120
@ Test
125
- public void testAuditEvent_5 ()
126
- throws Exception {
121
+ public void testAuditEvent_5 () throws Exception {
127
122
String actor = "" ;
128
123
String action = "" ;
129
124
String origin = "" ;
@@ -136,7 +131,7 @@ public void testAuditEvent_5()
136
131
assertEquals ("" , result .getAction ());
137
132
assertEquals ("" , result .getActor ());
138
133
assertEquals (null , result .getAuditId ());
139
- assertEquals ( null , result .getUuid ());
134
+ assertNotNull ( result .getUuid ());
140
135
}
141
136
142
137
/**
@@ -147,8 +142,7 @@ public void testAuditEvent_5()
147
142
* @generatedBy CodePro at 2/4/15 9:27 AM
148
143
*/
149
144
@ Test
150
- public void testAddField_1 ()
151
- throws Exception {
145
+ public void testAddField_1 () throws Exception {
152
146
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
153
147
fixture .setFields (new ReadMostlyVector ());
154
148
Field field = new Field ();
@@ -166,8 +160,7 @@ public void testAddField_1()
166
160
* @generatedBy CodePro at 2/4/15 9:27 AM
167
161
*/
168
162
@ Test
169
- public void testAddField_2 ()
170
- throws Exception {
163
+ public void testAddField_2 () throws Exception {
171
164
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
172
165
fixture .setFields (new ReadMostlyVector ());
173
166
String name = "" ;
@@ -186,8 +179,7 @@ public void testAddField_2()
186
179
* @generatedBy CodePro at 2/4/15 9:27 AM
187
180
*/
188
181
@ Test
189
- public void testAddField_3 ()
190
- throws Exception {
182
+ public void testAddField_3 () throws Exception {
191
183
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
192
184
fixture .setFields (new ReadMostlyVector ());
193
185
String name = "" ;
@@ -206,8 +198,7 @@ public void testAddField_3()
206
198
* @generatedBy CodePro at 2/4/15 9:27 AM
207
199
*/
208
200
@ Test
209
- public void testAddField_4 ()
210
- throws Exception {
201
+ public void testAddField_4 () throws Exception {
211
202
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
212
203
fixture .setFields (new ReadMostlyVector ());
213
204
String name = "" ;
@@ -227,8 +218,7 @@ public void testAddField_4()
227
218
* @generatedBy CodePro at 2/4/15 9:27 AM
228
219
*/
229
220
@ Test
230
- public void testAddField_5 ()
231
- throws Exception {
221
+ public void testAddField_5 () throws Exception {
232
222
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
233
223
fixture .setFields (new ReadMostlyVector ());
234
224
String name = "" ;
@@ -248,8 +238,7 @@ public void testAddField_5()
248
238
* @generatedBy CodePro at 2/4/15 9:27 AM
249
239
*/
250
240
@ Test
251
- public void testGetAction_1 ()
252
- throws Exception {
241
+ public void testGetAction_1 () throws Exception {
253
242
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
254
243
fixture .setFields (new ReadMostlyVector ());
255
244
@@ -267,8 +256,7 @@ public void testGetAction_1()
267
256
* @generatedBy CodePro at 2/4/15 9:27 AM
268
257
*/
269
258
@ Test
270
- public void testGetActor_1 ()
271
- throws Exception {
259
+ public void testGetActor_1 () throws Exception {
272
260
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
273
261
fixture .setFields (new ReadMostlyVector ());
274
262
@@ -286,8 +274,7 @@ public void testGetActor_1()
286
274
* @generatedBy CodePro at 2/4/15 9:27 AM
287
275
*/
288
276
@ Test
289
- public void testGetFields_1 ()
290
- throws Exception {
277
+ public void testGetFields_1 () throws Exception {
291
278
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
292
279
fixture .setFields (new ReadMostlyVector ());
293
280
@@ -306,8 +293,7 @@ public void testGetFields_1()
306
293
* @generatedBy CodePro at 2/4/15 9:27 AM
307
294
*/
308
295
@ Test
309
- public void testGetOrigin_1 ()
310
- throws Exception {
296
+ public void testGetOrigin_1 () throws Exception {
311
297
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
312
298
fixture .setFields (new ReadMostlyVector ());
313
299
@@ -325,8 +311,7 @@ public void testGetOrigin_1()
325
311
* @generatedBy CodePro at 2/4/15 9:27 AM
326
312
*/
327
313
@ Test
328
- public void testSetAction_1 ()
329
- throws Exception {
314
+ public void testSetAction_1 () throws Exception {
330
315
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
331
316
fixture .setFields (new ReadMostlyVector ());
332
317
String action = "" ;
@@ -344,8 +329,7 @@ public void testSetAction_1()
344
329
* @generatedBy CodePro at 2/4/15 9:27 AM
345
330
*/
346
331
@ Test
347
- public void testSetActor_1 ()
348
- throws Exception {
332
+ public void testSetActor_1 () throws Exception {
349
333
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
350
334
fixture .setFields (new ReadMostlyVector ());
351
335
String actor = "" ;
@@ -363,8 +347,7 @@ public void testSetActor_1()
363
347
* @generatedBy CodePro at 2/4/15 9:27 AM
364
348
*/
365
349
@ Test
366
- public void testSetFields_1 ()
367
- throws Exception {
350
+ public void testSetFields_1 () throws Exception {
368
351
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
369
352
fixture .setFields (new ReadMostlyVector ());
370
353
List <Field > fields = new ReadMostlyVector ();
@@ -382,8 +365,7 @@ public void testSetFields_1()
382
365
* @generatedBy CodePro at 2/4/15 9:27 AM
383
366
*/
384
367
@ Test
385
- public void testSetOrigin_1 ()
386
- throws Exception {
368
+ public void testSetOrigin_1 () throws Exception {
387
369
AuditEvent fixture = new AuditEvent ("" , "" , "" , new Field [] {});
388
370
fixture .setFields (new ReadMostlyVector ());
389
371
String origin = "" ;
@@ -397,34 +379,33 @@ public void testSetOrigin_1()
397
379
* Perform pre-test initialization.
398
380
*
399
381
* @throws Exception
400
- * if the initialization fails for some reason
382
+ * if the initialization fails for some reason
401
383
*
402
384
* @generatedBy CodePro at 2/4/15 9:27 AM
403
385
*/
404
386
@ Before
405
- public void setUp ()
406
- throws Exception {
387
+ public void setUp () throws Exception {
407
388
// add additional set up code here
408
389
}
409
390
410
391
/**
411
392
* Perform post-test clean-up.
412
393
*
413
394
* @throws Exception
414
- * if the clean-up fails for some reason
395
+ * if the clean-up fails for some reason
415
396
*
416
397
* @generatedBy CodePro at 2/4/15 9:27 AM
417
398
*/
418
399
@ After
419
- public void tearDown ()
420
- throws Exception {
400
+ public void tearDown () throws Exception {
421
401
// Add additional tear down code here
422
402
}
423
403
424
404
/**
425
405
* Launch the test.
426
406
*
427
- * @param args the command line arguments
407
+ * @param args
408
+ * the command line arguments
428
409
*
429
410
* @generatedBy CodePro at 2/4/15 9:27 AM
430
411
*/
0 commit comments