Skip to content

Commit 3aa2204

Browse files
committed
Added changes
1 parent f51a44b commit 3aa2204

File tree

1 file changed

+37
-43
lines changed

1 file changed

+37
-43
lines changed

src/test/java/org/audit4j/core/util/LogTest.java

Lines changed: 37 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
package org.audit4j.core.util;
22

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;
58

69
/**
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+
*
913
* @generatedBy CodePro at 2/4/15 9:26 AM
1014
* @author JanithB
1115
* @version $Revision: 1.0 $
1216
*/
1317
public class LogTest {
1418
/**
1519
* Run the Log() constructor test.
16-
*
20+
*
1721
* @generatedBy CodePro at 2/4/15 9:26 AM
1822
*/
1923
@Test
20-
public void testLog_1()
21-
throws Exception {
24+
public void testLog_1() throws Exception {
2225
Log result = new Log();
2326
assertNotNull(result);
2427
// add additional test code here
2528
}
2629

2730
/**
2831
* Run the void error(Object) method test.
29-
*
32+
*
3033
* @throws Exception
31-
*
34+
*
3235
* @generatedBy CodePro at 2/4/15 9:26 AM
3336
*/
3437
@Test
35-
public void testError_1()
36-
throws Exception {
38+
public void testError_1() throws Exception {
3739
Object message = new Object();
3840

3941
Log.error(message);
@@ -43,32 +45,27 @@ public void testError_1()
4345

4446
/**
4547
* Run the void error(Object,Throwable) method test.
46-
*
48+
*
4749
* @throws Exception
48-
*
50+
*
4951
* @generatedBy CodePro at 2/4/15 9:26 AM
5052
*/
5153
@Test
52-
public void testError_2()
53-
throws Exception {
54+
public void testError_2() {
5455
Object message = new Object();
5556
Throwable t = new Throwable();
56-
5757
Log.error(message, t);
58-
59-
// add additional test code here
6058
}
6159

6260
/**
6361
* Run the void info(Object) method test.
64-
*
62+
*
6563
* @throws Exception
66-
*
64+
*
6765
* @generatedBy CodePro at 2/4/15 9:26 AM
6866
*/
6967
@Test
70-
public void testInfo_1()
71-
throws Exception {
68+
public void testInfo_1() throws Exception {
7269
Object message = new Object();
7370

7471
Log.info(message);
@@ -78,14 +75,13 @@ public void testInfo_1()
7875

7976
/**
8077
* Run the void warn(Object) method test.
81-
*
78+
*
8279
* @throws Exception
83-
*
80+
*
8481
* @generatedBy CodePro at 2/4/15 9:26 AM
8582
*/
8683
@Test
87-
public void testWarn_1()
88-
throws Exception {
84+
public void testWarn_1() throws Exception {
8985
Object message = new Object();
9086

9187
Log.warn(message);
@@ -95,14 +91,13 @@ public void testWarn_1()
9591

9692
/**
9793
* Run the void warn(Object,Throwable) method test.
98-
*
94+
*
9995
* @throws Exception
100-
*
96+
*
10197
* @generatedBy CodePro at 2/4/15 9:26 AM
10298
*/
10399
@Test
104-
public void testWarn_2()
105-
throws Exception {
100+
public void testWarn_2() throws Exception {
106101
Object message = new Object();
107102
Throwable t = new Throwable();
108103

@@ -113,37 +108,36 @@ public void testWarn_2()
113108

114109
/**
115110
* Perform pre-test initialization.
116-
*
111+
*
117112
* @throws Exception
118-
* if the initialization fails for some reason
119-
*
113+
* if the initialization fails for some reason
114+
*
120115
* @generatedBy CodePro at 2/4/15 9:26 AM
121116
*/
122117
@Before
123-
public void setUp()
124-
throws Exception {
118+
public void setUp() throws Exception {
125119
// add additional set up code here
126120
}
127121

128122
/**
129123
* Perform post-test clean-up.
130-
*
124+
*
131125
* @throws Exception
132-
* if the clean-up fails for some reason
133-
*
126+
* if the clean-up fails for some reason
127+
*
134128
* @generatedBy CodePro at 2/4/15 9:26 AM
135129
*/
136130
@After
137-
public void tearDown()
138-
throws Exception {
131+
public void tearDown() throws Exception {
139132
// Add additional tear down code here
140133
}
141134

142135
/**
143136
* Launch the test.
144-
*
145-
* @param args the command line arguments
146-
*
137+
*
138+
* @param args
139+
* the command line arguments
140+
*
147141
* @generatedBy CodePro at 2/4/15 9:26 AM
148142
*/
149143
public static void main(String[] args) {

0 commit comments

Comments
 (0)