File tree Expand file tree Collapse file tree 5 files changed +14
-3
lines changed
main/java/org/audit4j/core
test/java/org/audit4j/core Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ static ConfigurationStream resolveConfigFileAsStream(String configFilePath) thro
119
119
fileStream = getClasspathResourceAsStream (CONFIG_FILE_NAME + "." + XML_EXTENTION );
120
120
fileExtention = XML_EXTENTION ;
121
121
} else {
122
+
122
123
String defaultConfigDir = System .getProperty ("user.dir" );
123
124
String defaultConfigPath = scanConfigFile (defaultConfigDir );
124
125
fileExtention = FilenameUtils .getExtension (defaultConfigPath );
Original file line number Diff line number Diff line change 3
3
import java .lang .reflect .Method ;
4
4
5
5
import org .audit4j .core .AuditManager ;
6
+ import org .audit4j .core .Configuration ;
6
7
import org .audit4j .core .IAuditManager ;
7
8
import org .audit4j .core .Mock .MethodAnnotationMock ;
8
9
import org .junit .After ;
@@ -13,7 +14,7 @@ public class DeIdentifyAnnotationTest {
13
14
14
15
@ Before
15
16
public void setup () {
16
-
17
+ AuditManager . startWithConfiguration ( Configuration . DEFAULT );
17
18
}
18
19
19
20
@ Test
Original file line number Diff line number Diff line change 3
3
import java .lang .reflect .Method ;
4
4
5
5
import org .audit4j .core .AuditManager ;
6
+ import org .audit4j .core .Configuration ;
6
7
import org .audit4j .core .IAuditManager ;
7
8
import org .audit4j .core .Mock .ClassAnnotationMock ;
8
9
import org .audit4j .core .util .Log ;
@@ -15,7 +16,7 @@ public class IgnoreAuditAnnotationTest {
15
16
16
17
@ Before
17
18
public void setup () {
18
-
19
+ AuditManager . startWithConfiguration ( Configuration . DEFAULT );
19
20
}
20
21
21
22
@ Test
Original file line number Diff line number Diff line change 3
3
import java .lang .reflect .Method ;
4
4
5
5
import org .audit4j .core .AuditManager ;
6
+ import org .audit4j .core .Configuration ;
6
7
import org .audit4j .core .Mock .MethodAnnotationMock ;
7
8
import org .audit4j .core .util .Log ;
8
9
import org .audit4j .core .util .StopWatch ;
@@ -14,7 +15,7 @@ public class MethodAnnotationTest {
14
15
15
16
@ Before
16
17
public void setup () {
17
- AuditManager .getInstance ( );
18
+ AuditManager .startWithConfiguration ( Configuration . DEFAULT );
18
19
}
19
20
20
21
@ Test
Original file line number Diff line number Diff line change 3
3
import java .util .concurrent .TimeUnit ;
4
4
5
5
import org .audit4j .core .AuditManager ;
6
+ import org .audit4j .core .Configuration ;
6
7
import org .audit4j .core .IAuditManager ;
7
8
import org .audit4j .core .dto .AuditEvent ;
8
9
import org .audit4j .core .dto .EventBuilder ;
9
10
import org .audit4j .core .util .Log ;
10
11
import org .audit4j .core .util .StopWatch ;
12
+ import org .junit .Before ;
11
13
import org .junit .Test ;
12
14
13
15
public class SmokeTest {
14
16
17
+ @ Before
18
+ public void setup () {
19
+ AuditManager .startWithConfiguration (Configuration .DEFAULT );
20
+ }
21
+
15
22
@ Test
16
23
public void smokeTestAuditEvent () throws InterruptedException {
17
24
StopWatch watch = new StopWatch ();
You can’t perform that action at this time.
0 commit comments