1
1
package org .audit4j .core .util ;
2
2
3
- import org .junit .*;
4
- import static org .junit .Assert .*;
3
+ import static org .junit .Assert .assertNotNull ;
4
+
5
+ import org .junit .After ;
6
+ import org .junit .Before ;
7
+ import org .junit .Test ;
5
8
6
9
/**
7
- * The class <code>LogTest</code> contains tests for the class <code>{@link Log}</code>.
8
- *
10
+ * The class <code>LogTest</code> contains tests for the class
11
+ * <code>{@link Log}</code>.
12
+ *
9
13
* @generatedBy CodePro at 2/4/15 9:26 AM
10
14
* @author JanithB
11
15
* @version $Revision: 1.0 $
12
16
*/
13
17
public class LogTest {
14
18
/**
15
19
* Run the Log() constructor test.
16
- *
20
+ *
17
21
* @generatedBy CodePro at 2/4/15 9:26 AM
18
22
*/
19
23
@ Test
20
- public void testLog_1 ()
21
- throws Exception {
24
+ public void testLog_1 () throws Exception {
22
25
Log result = new Log ();
23
26
assertNotNull (result );
24
27
// add additional test code here
25
28
}
26
29
27
30
/**
28
31
* Run the void error(Object) method test.
29
- *
32
+ *
30
33
* @throws Exception
31
- *
34
+ *
32
35
* @generatedBy CodePro at 2/4/15 9:26 AM
33
36
*/
34
37
@ Test
35
- public void testError_1 ()
36
- throws Exception {
38
+ public void testError_1 () throws Exception {
37
39
Object message = new Object ();
38
40
39
41
Log .error (message );
@@ -43,32 +45,27 @@ public void testError_1()
43
45
44
46
/**
45
47
* Run the void error(Object,Throwable) method test.
46
- *
48
+ *
47
49
* @throws Exception
48
- *
50
+ *
49
51
* @generatedBy CodePro at 2/4/15 9:26 AM
50
52
*/
51
53
@ Test
52
- public void testError_2 ()
53
- throws Exception {
54
+ public void testError_2 () {
54
55
Object message = new Object ();
55
56
Throwable t = new Throwable ();
56
-
57
57
Log .error (message , t );
58
-
59
- // add additional test code here
60
58
}
61
59
62
60
/**
63
61
* Run the void info(Object) method test.
64
- *
62
+ *
65
63
* @throws Exception
66
- *
64
+ *
67
65
* @generatedBy CodePro at 2/4/15 9:26 AM
68
66
*/
69
67
@ Test
70
- public void testInfo_1 ()
71
- throws Exception {
68
+ public void testInfo_1 () throws Exception {
72
69
Object message = new Object ();
73
70
74
71
Log .info (message );
@@ -78,14 +75,13 @@ public void testInfo_1()
78
75
79
76
/**
80
77
* Run the void warn(Object) method test.
81
- *
78
+ *
82
79
* @throws Exception
83
- *
80
+ *
84
81
* @generatedBy CodePro at 2/4/15 9:26 AM
85
82
*/
86
83
@ Test
87
- public void testWarn_1 ()
88
- throws Exception {
84
+ public void testWarn_1 () throws Exception {
89
85
Object message = new Object ();
90
86
91
87
Log .warn (message );
@@ -95,14 +91,13 @@ public void testWarn_1()
95
91
96
92
/**
97
93
* Run the void warn(Object,Throwable) method test.
98
- *
94
+ *
99
95
* @throws Exception
100
- *
96
+ *
101
97
* @generatedBy CodePro at 2/4/15 9:26 AM
102
98
*/
103
99
@ Test
104
- public void testWarn_2 ()
105
- throws Exception {
100
+ public void testWarn_2 () throws Exception {
106
101
Object message = new Object ();
107
102
Throwable t = new Throwable ();
108
103
@@ -113,37 +108,36 @@ public void testWarn_2()
113
108
114
109
/**
115
110
* Perform pre-test initialization.
116
- *
111
+ *
117
112
* @throws Exception
118
- * if the initialization fails for some reason
119
- *
113
+ * if the initialization fails for some reason
114
+ *
120
115
* @generatedBy CodePro at 2/4/15 9:26 AM
121
116
*/
122
117
@ Before
123
- public void setUp ()
124
- throws Exception {
118
+ public void setUp () throws Exception {
125
119
// add additional set up code here
126
120
}
127
121
128
122
/**
129
123
* Perform post-test clean-up.
130
- *
124
+ *
131
125
* @throws Exception
132
- * if the clean-up fails for some reason
133
- *
126
+ * if the clean-up fails for some reason
127
+ *
134
128
* @generatedBy CodePro at 2/4/15 9:26 AM
135
129
*/
136
130
@ After
137
- public void tearDown ()
138
- throws Exception {
131
+ public void tearDown () throws Exception {
139
132
// Add additional tear down code here
140
133
}
141
134
142
135
/**
143
136
* Launch the test.
144
- *
145
- * @param args the command line arguments
146
- *
137
+ *
138
+ * @param args
139
+ * the command line arguments
140
+ *
147
141
* @generatedBy CodePro at 2/4/15 9:26 AM
148
142
*/
149
143
public static void main (String [] args ) {
0 commit comments