You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reformat code according to Spring Data style. Add test for authenticated use. Add JavaDoc to newly introduced methods. Allow configuration of an authentication database. Update reference documentation.
Original pull request: spring-projects#419.
Copy file name to clipboardExpand all lines: spring-data-mongodb-log4j/src/test/java/org/springframework/data/mongodb/log4j/MongoLog4jAppenderIntegrationTests.java
+28-26
Original file line number
Diff line number
Diff line change
@@ -15,19 +15,24 @@
15
15
*/
16
16
packageorg.springframework.data.mongodb.log4j;
17
17
18
-
importcom.mongodb.*;
18
+
importstaticorg.hamcrest.Matchers.*;
19
+
importstaticorg.junit.Assert.*;
20
+
21
+
importjava.util.Calendar;
22
+
23
+
importorg.apache.log4j.LogManager;
19
24
importorg.apache.log4j.Logger;
20
25
importorg.apache.log4j.MDC;
26
+
importorg.apache.log4j.PropertyConfigurator;
21
27
importorg.junit.After;
22
28
importorg.junit.Before;
23
29
importorg.junit.Test;
24
30
25
-
importjava.net.UnknownHostException;
26
-
importjava.util.Calendar;
27
-
importjava.util.Collections;
28
-
29
-
importstaticorg.hamcrest.Matchers.is;
30
-
importstaticorg.junit.Assert.assertThat;
31
+
importcom.mongodb.BasicDBObject;
32
+
importcom.mongodb.DB;
33
+
importcom.mongodb.DBCursor;
34
+
importcom.mongodb.MongoClient;
35
+
importcom.mongodb.ServerAddress;
31
36
32
37
/**
33
38
* Integration tests for {@link MongoLog4jAppender}.
0 commit comments